loolzec / plusobf Goto Github PK
View Code? Open in Web Editor NEWPython Obfuscator
Python Obfuscator
i made an issue on your other post about armoring you're scripts, now you armor your entire account? at that point it gets a bit suspicious that you just copy and pasted the code and don't want anyone to look at it or you might be taken for copy write
bit annoying to see someone who wants to be a developer hide every program they have ever written
import random,sys,logging
logging.basicConfig(level=logging.INFO)
banner="""
[ plusobf by deray ]
"""
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="""
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("""
[!] ussage: plusobf.py 'string'
Example:
python plusobf.py myscript.py '+'
""")
hello sir can i ask about something i have source code i want to protected him from thief and i will rent them for people and i want to be control at him like make him working by every ip never access with any one without make the ip access from me if try any other ip to using my code without make him access from me say can't access talk to owner
thank you i hope help me sir
I want to make more option for this. Extra obfuscatiob like marshal, base64
It's a simple program, easy to deobfuscate I wouldn't recommend it.
``
import random,sys,logging
logging.basicConfig(level=logging.INFO)
banner="""
\t[ plusobf by deray ]\n"""
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="""
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("""
[!] ussage: plusobf.py 'string'
Example:
python plusobf.py myscript.py '+'
""")
``
And you may be asking how to deobfuscate this. Well, all you have to do is change the exec statement to print. To automate it it would be like this
``
script = """
Script here
"""
exec(script.replace("exec","print"))
``
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.