Search This Blog

Wednesday, November 30, 2016

How to use pyobfuscate?

Here are the steps on how to hide the python scripts using pyobfuscate package:

Steps:


  • Get the source distribution from git.
                $ git clone https://github.com/astrand/pyobfuscate.

  • Enter into the pyobfuscate directory.
                $ cd pyobfuscate

  • Install pyobfuscate package
                 $ python setup.py install

         The above step will install pyobfuscate binary executable file in /usr/bin.


      Considering the actual python file is in /home/Desktop/userfile.py.
  • Run command:
                $ ./pyobfuscate '/home/Desktop/userfile.py' > /home/Documents/obfuscate.py

  • Go to the path where obfuscate.py is created.
               $ cd /home/Documents/

  • Allow execute permission for others to obfuscate.py 
               $ sudo chmod +x obfuscate.py

  • Run the obfusacte.py, the interpreter will be able to interpret the script.
               $ python obfucate.py

No comments:

Post a Comment