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

Missing Argument error #5

Open
mfaerevaag opened this issue Sep 21, 2019 · 5 comments
Open

Missing Argument error #5

mfaerevaag opened this issue Sep 21, 2019 · 5 comments

Comments

@mfaerevaag
Copy link

Hi,

I am having an issue when specifying the CLSID:

C:\Users\asdf\Desktop> ./JuicyPotato.exe -l 1337 -z -t * -c {90F18417-F0F1-484E-9D3C-59DCEEE5DBD8}          
Wrong Argument: -                                                                                                
JuicyPotato v0.1                                                                                                 
Mandatory args:                                                                                                  
-t createprocess call: <t> CreateProcessWithTokenW, <u> CreateProcessAsUser, <*> try both                        
-p <program>: program to launch                                                                                  
-l <port>: COM server listen port                                                                                
Optional args:                                                                                                   
-m <ip>: COM server listen address (default 127.0.0.1)                                                           
-a <argument>: command line argument to pass to program (default NULL)                                           
-k <ip>: RPC server ip address (default 127.0.0.1)                                                               
-n <port>: RPC server listen port (default 135)                                                                  
-c <{clsid}>: CLSID (default BITS:{4991d34b-80a1-4291-83b6-3328366b9097})                                        
-z only test CLSID and print token's user  

Works fine if I omit the -c {..} option.

Have you experienced this?

@ohpe
Copy link
Owner

ohpe commented Sep 21, 2019

-p is a mandatory argument, maybe it's that the problem.

@mfaerevaag
Copy link
Author

I'm not sure that is true, as the test-clsid.bat script manages fine without it: https://github.com/ohpe/juicy-potato/blob/master/Test/test_clsid.bat#L8

@SagiSatish
Copy link

I got the same error. For some reason, it worked when i called it with "cmd /c".

PS C:\users\test\Desktop> .\jp.exe -t * -p C:\users\test\Desktop\test.bat -l 9001 -c {8BC3F05E-D86B-11D0-A075-00C04FB68820}

Wrong Argument: -
JuicyPotato v0.1 

Mandatory args: 
-t createprocess call: <t> CreateProcessWithTokenW, <u> CreateProcessAsUser, <*> try both
-p <program>: program to launch
-l <port>: COM server listen port


Optional args: 
-m <ip>: COM server listen address (default 127.0.0.1)
-a <argument>: command line argument to pass to program (default NULL)
-k <ip>: RPC server ip address (default 127.0.0.1)
-n <port>: RPC server listen port (default 135)
-c <{clsid}>: CLSID (default BITS:{4991d34b-80a1-4291-83b6-3328366b9097})
-z only test CLSID and print token's user

PS C:\users\test\Desktop> cmd /c "jp.exe -t * -p C:\users\test\Desktop\test.bat -l 9001 -c {8BC3F05E-D86B-11D0-A075-00C04FB68820}"
Testing {8BC3F05E-D86B-11D0-A075-00C04FB68820} 9001
......
[+] authresult 0
{8BC3F05E-D86B-11D0-A075-00C04FB68820};NT AUTHORITY\SYSTEM

[+] CreateProcessWithTokenW OK

@Pusher91
Copy link

If you are using this with powershell (i.e PS C:\users\test\Desktop>) you will get this error. cmd /c does it make it work within a powershell command prompt though.

@Esra11
Copy link

Esra11 commented Sep 13, 2023

You should put the CLSID betweeb double quotations, like this: "{90F18417-F0F1-484E-9D3C-59DCEEE5DBD8}"
Although I see not everyone had to do this

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

5 participants