Module for Python to create obfuscated javascript using JSFuck
Utilizes a lightly modified version of jsfuck.js - JSFuck Project
Big Thanks to Martin Kleppe for creating JSFuck! - http://aem1k.com
- Python 2.7 - https://www.python.org/
- Node JS 8.5.9 - https://nodejs.org/
- PyExecJs - https://github.com/doloopwhile/PyExecJS
PyJSFuck Example Usage:
from pyjsfuck import JSFuck
if __name__ == '__main__':
## Code to be obfuscated with JSFuck
code = 'alert(1);'
## Instance of JSFuck
jsf = JSFuck()
## Ecodes Javascript with JSFuck (Expects Single Line of Javascript)
jsfuck_payload = jsf.encode(code)
print jsfuck_payload