Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

here is the source code lol #2

Open
moongazer07 opened this issue Feb 16, 2023 · 1 comment
Open

here is the source code lol #2

moongazer07 opened this issue Feb 16, 2023 · 1 comment

Comments

@moongazer07
Copy link

moongazer07 commented Feb 16, 2023

import sys
import random
import logging

yellow = '\033[93m'
lgreen = '\033[92m'
clear  = '\033[0m'
bold   = '\033[01m'
cyan   = '\033[96m'
red    = "\033[91m"

logging.basicConfig(level=logging.INFO)

__banner__ = yellow+"""
\t
+-------------------------------------------------------------------+
│                                                                   │ 
│  █ █ █ █▄█ ▀█▀ ▀█▀ █▀▀   █▀█ █▄▄ █▀▀ █ █ █▀▀ █▀▀ ▄▀▄ ▀█▀ █▀▀      │
│  ▀▄▀▄▀ █ █ ▄█▄  █  ██▄   █▄█ █▄█ █▀  █▄█ ▄██ █▄▄ █▀█  █  ██▄      │
│                                                                   │
│ 𝗔𝘂𝘁𝗵𝗼𝗿 : 𝘄𝗵𝗶𝘁𝗲 𝗲𝗮𝗴𝗹𝗲       𝗧𝗲𝗹𝗲𝗴𝗿𝗮𝗺 : 𝗵𝘁𝘁𝗽𝘀://𝘁.𝗺𝗲/𝗞𝗮_𝗞𝘀𝗛𝗶_𝗛𝗮𝗧𝗮𝗞𝗲 
│                                                                   │
+-------------------------------------------------------------------+

\n"""+clear


def main(files, string):
    s = open(files).read()
    z = []
    for i in s:
        z.append(ord(i))
    pea = []
    for i in z:
        pea.append(string.replace("'", "").replace('"', '')*i)
    file = """
# coding=utf-8
# obfuscated with white obfuscate : https://github.com/WH1T3-E4GL3/white-obfuscate



d={};exec("".join([chr(len(i)) for i in d]))
        """.format(pea)
    open(files.replace(".py", "encypt.py"), "w").write(file)
    logging.info(" saved as "+files.replace(".py", "encrypt.py"))


try:
    print(__banner__)
    logging.info(" obfuscating "+sys.argv[1]+"....")
    main(sys.argv[1], sys.argv[2])
except:
    print("""+-------------------------------------------------------------------+
    """)
    print(red+"""[ERROR!]
    """+clear, end=' ')
    print("""
Usage   : python white-obsf.py <filename> 'string'

Example : python white-obfs.py pythoncode.py '#' 


This will modify your full python script with '+' symbol.
""")
    print("""+-------------------------------------------------------------------+""

lol
@WH1T3-E4GL3
Copy link
Owner

import sys
import random
import logging

yellow = '\033[93m'
lgreen = '\033[92m'
clear  = '\033[0m'
bold   = '\033[01m'
cyan   = '\033[96m'
red    = "\033[91m"

logging.basicConfig(level=logging.INFO)

__banner__ = yellow+"""
\t
+-------------------------------------------------------------------+
│                                                                   │ 
│  █ █ █ █▄█ ▀█▀ ▀█▀ █▀▀   █▀█ █▄▄ █▀▀ █ █ █▀▀ █▀▀ ▄▀▄ ▀█▀ █▀▀      │
│  ▀▄▀▄▀ █ █ ▄█▄  █  ██▄   █▄█ █▄█ █▀  █▄█ ▄██ █▄▄ █▀█  █  ██▄      │
│                                                                   │
│ 𝗔𝘂𝘁𝗵𝗼𝗿 : 𝘄𝗵𝗶𝘁𝗲 𝗲𝗮𝗴𝗹𝗲       𝗧𝗲𝗹𝗲𝗴𝗿𝗮𝗺 : 𝗵𝘁𝘁𝗽𝘀://𝘁.𝗺𝗲/𝗞𝗮_𝗞𝘀𝗛𝗶_𝗛𝗮𝗧𝗮𝗞𝗲 
│                                                                   │
+-------------------------------------------------------------------+

\n"""+clear


def main(files, string):
    s = open(files).read()
    z = []
    for i in s:
        z.append(ord(i))
    pea = []
    for i in z:
        pea.append(string.replace("'", "").replace('"', '')*i)
    file = """
# coding=utf-8
# obfuscated with white obfuscate : https://github.com/WH1T3-E4GL3/white-obfuscate



d={};exec("".join([chr(len(i)) for i in d]))
        """.format(pea)
    open(files.replace(".py", "encypt.py"), "w").write(file)
    logging.info(" saved as "+files.replace(".py", "encrypt.py"))


try:
    print(__banner__)
    logging.info(" obfuscating "+sys.argv[1]+"....")
    main(sys.argv[1], sys.argv[2])
except:
    print("""+-------------------------------------------------------------------+
    """)
    print(red+"""[ERROR!]
    """+clear, end=' ')
    print("""
Usage   : python white-obsf.py <filename> 'string'

Example : python white-obfs.py pythoncode.py '#' 


This will modify your full python script with '+' symbol.
""")
    print("""+-------------------------------------------------------------------+""

lol

What lol? The script is to get basic understanding about python obfuscation. And i already mentioned everything in the README. You lol came by changing the exec to print🤣🤣. Every intermediates know that and there is no need of being proud yourself lol🤣. Your attittude is like you reverse engineered NASA. First read everything in the page of the script and then try comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants