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

runAs tool using Psexec #6

Open
Th3LionH3ad opened this issue May 7, 2020 · 4 comments
Open

runAs tool using Psexec #6

Th3LionH3ad opened this issue May 7, 2020 · 4 comments

Comments

@Th3LionH3ad
Copy link

hello, i tried to understand how to use runAs with psexec but i always get:
"Starting cmd on X ...n X...ing to Y...
cmd exited on Y with error code 0.

and i didnt get the shell.

i'm using command:

JetBrains.runAs.exe -p:[PASS] -u:[DOMAIN][USER] PsExec.exe [Destination IP] cmd

thanks.

@NikolayPianikov
Copy link
Contributor

@Th3LionH3ad could you add '-l:debug` and attach the output?

@Th3LionH3ad
Copy link
Author

Th3LionH3ad commented May 19, 2020 via email

@NikolayPianikov
Copy link
Contributor

@Th3LionH3ad Try using a full path for you executable

@BiatuAutMiahn
Copy link

BiatuAutMiahn commented Feb 7, 2023

Also I dont believe your going to have much luck running psexec with RunAs if you are attempting to run psexec on remote host with credentials supplied to RunAs. I think you would have more luck running psexec with the -c (copy) command to pass RunAs to the target and tell it to run cmd.exe as your user. ie; psexec.exe \\[target] -u[user] -p[pass] -c -f JetBrains.runAs.exe -p:[PASS] -u:[DOMAIN]\[USER] cmd.exe

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

3 participants