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

[addtool] RunAsPasswd #1153

Closed
piyush-security opened this issue May 7, 2023 · 2 comments
Closed

[addtool] RunAsPasswd #1153

piyush-security opened this issue May 7, 2023 · 2 comments
Labels
enhancement New feature or request refused

Comments

@piyush-security
Copy link

[link]
https://github.com/Sq00ky/RunAsPasswd
[/link]

[tags]
windows, runas
[/tags]

[short_descr]
A RunAs.exe clone with the ability to specify the password as an argument.
[/short_descr]

[long_descr]

Overview

This is a simple "RunAs.exe" clone that has the ability to specify a -p || --password flag. There has been several instances where I have not been in a fully interactive command prompt and have needed to use the runas.exe command. Mimikatz's sekurlsa::pth command is great, but obfuscating Mimikatz is not! Sometimes I just need a simple solution. Why bring a sledge hammer when all you need is a normal hammer? So, that's why I built RunAsPasswd. One day I hope to implement a -h | --hash mechanism for passing a NTLM hash, though I need to do a bit more research on how to actually implement that first.

Technical Details

This clone utilizies the CreateProcessWithLogonW Windows API and supports LOGON_NETCREDENTIALS_ONLY and the default (which I believe is LOGON_WITH_PROFILE). You can control which is used by passing with -n || --netonly flag. If the flag is provided, it with run the program with LOGON_NETCREDENTIALS_ONLY, else, the default.

Help & Changes

The program is fairly similar to the runas.exe command on Windows, just with a few minor changes. Flags are now passed in a unix stlye vs the windows /arg style, so /user: is now -u or --username
[/long_descr]

[image]
image
[/image]

[image]
image

[/image]

@gwen001
Copy link
Owner

gwen001 commented May 7, 2023

Issue correctly handled, tool is waiting for human validation.

@gwen001 gwen001 added the enhancement New feature or request label May 7, 2023
@gwen001 gwen001 added the pending label Dec 7, 2023
@gwen001
Copy link
Owner

gwen001 commented May 4, 2024

Tool has been refused by the team, feel free to get in touch if you have any question.

Thank you!

@gwen001 gwen001 closed this as completed May 4, 2024
@gwen001 gwen001 added refused and removed pending labels May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refused
Projects
None yet
Development

No branches or pull requests

2 participants