Advertisement
Guest User

Deobfuscator

a guest
Jun 9th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ABAP 0.62 KB | None | 0 0
  1. #!/usr/bin/bash
  2.  
  3. wget -O out https://pastebin.com/raw/YWSVusPJ
  4.  
  5. while true
  6. do
  7.     d=$(grep -oP "(?<=').*?(?=')" out)
  8.     cat <<__eol__ > 1.py
  9. import zlib
  10. import base64
  11. with open('1.pyc','wb') as f:
  12.     f.write('\x03\xf3\x0d\x0a\xeb\x56\x92\x5a' + zlib.decompress(base64.b64decode('$d')))
  13. __eol__
  14.  
  15.     python 1.py
  16.     uncompyle6 1.pyc > out
  17.     head out
  18.     read -p "[?] lanjutkan? " tanya
  19.  
  20.     if [ [ "$tanya" == "n" || "$tanya" == "N" ] ]
  21.     then
  22.         echo "[+] cleanup..."
  23.         rm 1.py 1.pyc
  24.         mv out deobfuscated.py
  25.         echo "[+] silakan cek file deobfuscated.py"
  26.         break
  27.     fi
  28. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement