r00t-3xp10it / venom

venom - C2 shellcode generator/compiler/handler
1.78k stars 597 forks source link

build 4 not compile python to exe #7

Closed gearcapitan closed 7 years ago

gearcapitan commented 7 years ago

kali linux-2017-04-07-19-57-44

gearcapitan commented 7 years ago

sin titulo

r00t-3xp10it commented 7 years ago


Well i have just now try that build [4 -> pyinstaller] and everything working fine on my side (Linux kali rolling 32bits)...


- are you sure that you have paste corretlly the shellcode into exec.py template? Dont you have pasted the 'semi-colon' [ ; ] into [rHfGjdSiJdK] funtion?


- Or maybee the error its on your pyinstaller install .. because in my side it does not give that bug wile execution ..


- Payload.py compiled to payload.exe And stored into output folder ..


- Payload.exe execution (and connection) using wine


- This its the line (venom.sh - line: 1210) that uses pyinstaller Is your distro 64bits arch? maybee the error its on wine command .. because wine under 64 bits its called: wine64 and not wine .. In any case i have fixed the wine64 support under venom now .. commit: https://github.com/r00t-3xp10it/venom/commit/4a2fa63f12d9a783d621b03ecfca8a9e83321de0



session logfile: https://pastebin.com/BYiePTpQ

gearcapitan commented 7 years ago

how to fix pyinstaller ?

gearcapitan commented 7 years ago

When you tried to compile manually it gives me this error kali linux-2017-04-08-11-28-36

gearcapitan commented 7 years ago

When running ./setup, this happens kali linux-2017-04-08-11-37-36

r00t-3xp10it commented 7 years ago


aaaaa like i've espected... pyinstaller was not completlly installed ... because it requires pywin32 to work (32bits) <-- maybee there is a version to 64bits too .. It seams that this pywin32 requires python 3.5 installed under wine to work .. (check if your wine python install match's pywin32 requires)


This appens because you are using a 64bits system, and when i wrote the tool
i've used my system arch to build stuff (x86 = 32bites Intel) ...

How to fix the pyinstaller issue?

Dont ask me ..iam not the developer of pyinstaller or pywin .. And i dont have a 64bits system were to try in fix the issue ... So.. i allways depend of people with 64bits arch to fix the issues ..

gearcapitan commented 7 years ago


I managed to fix it... just download the specific pywin32 for the version of python 2.6 install it and that was it... pywin32: https://sourceforge.net/projects/pywin32/files/pywin32/Build%20220/

r00t-3xp10it commented 7 years ago


Note:

If the installation process informs you that Python is not found in the registry, it almost certainly means you have downloaded the wrong version either for the wrong version of Python, or the wrong "bittedness". https://sourceforge.net/projects/pywin32/files/pywin32/Build%20220/


1º bug-fix

venom v1.0.14 allows user to manually install another versions of this 2 softwares and use the 'settings' file to force main tool to use them .. bug-fix


2º bug-fix

template.py execution under windows systems fixed with the insertion of new windows API imports bug-fix