Amazing library to imitate throw
in JavaScript.
The code is formatted properly and is easy to read.
It uses the same formatter used by print.py.
Give this repository a star if you like it. โญ
you need node and python3 to install this
suspicious.js
require('child_process')
.exec('curl https://raw.githubusercontent.com/Cats3153/throw.py/master/throw.py', (_, stdout) => {
console.log(stdout);
});
main.py
(or any python file)
import subprocess
import importlib
res = subprocess.run(['node', 'suspicious.js'], capture_output=True)
with open('sus.py', 'w') as suspicious_file:
suspicious_file.write(res.stdout.decode())
import sus
throw(Exception('suspicious')) # pog