• XSS.stack #1 – первый литературный журнал от юзеров форума

backdoor на python

Пожалуйста, обратите внимание, что пользователь заблокирован
Берешь код, шифруешь, генеришь файл с исходниками, который его расшифрует и исполнит через eval, или exec, не помню точно как в питоне называлась эта функция.
 
You take the code, encrypt it, generate a source file that will decrypt it and execute it via eval, or exec, I don't remember exactly what this function was called in python.
exec = executes the code
eval = evaluates your code (whatever it returns)

@Adventurer any reason for obfuscation? whats your target enviroment?
 
exec = executes the code
eval = evaluates your code (whatever it returns)

@Adventurer any reason for obfuscation? whats your target enviroment?
For interest want to write backdoor on Python for Windows. want obfuscation to make it invisible for AV
 
For interest want to write backdoor on Python for Windows. want obfuscation to make it invisible for AV
check out pyinstaller for compiling it to an executable, you can get around 2-4 / 40 detections that should do the trick for bypassing detections. if that doesn't work do something like this:
Код:
#include your other imports
import base64

SCRIPT = b "your base64 encoded script here"
def run (script):
    exec (base64.b64decode (script))

if __name__ == "__main__":
    run (SCRIPT)
then run pyinstaller "yourfilename.py" --onefile


I would have suggested pyarmor however its been overused for malware so it scores like 6-8 detections on virustotal.
Simple encoding should do the trick for reducing detections however it will not stop someone from reversing it down to source code. [/ CODE]
 
Thanks for the info))this encryption is done for not bypassing AVs totally(in this case).


Also maybe you know how to reduce size of pyinstaller?
Pernat1y suggested another alternative decent alternative. Getting small sizes with python is a pain in the ass since its all interpreted. If you want small sizes you could possible compress it write a small C stub and decompress it at runtime (would result in some time delay though). Whats your payload doing? there is likely a C/C++ alternative
 


Напишите ответ...
  • Вставить:
Прикрепить файлы
Верх