-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Remove errant write_log call and swap to the all-in-one psh_exec rath… #20412
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
Conversation
…er than execute_script
Win 10x64 21H2 with admin Meterpreter Session
|
As a question to the powershellers out there..... what is the difference between this script and https://github.com/rapid7/metasploit-framework/blob/master/modules/post/windows/manage/exec_powershell.rb ? |
So I think |
This is waiting on me to add timeout stuff...... |
So it appears I added the timeout stuff nearly a month ago, but never pushed it. Oooops. |
Do you need anything form me on this? |
Nope, I'll do some more testing and land it today. Thank you! |
Release NotesThis updates |
In playing with #20208, I wondered why we did not just run the PowerShell script directly in memory, so I tried it, and it failed:
I pulled the
write_to_log
out and replaced the call toexecute_script
withpsh_exec
since that method seemed to do everything automagically.If anyone knows where the
write_to_log
method went or a better way to getexecute_sccript
to work.The script I used for testing was WinPEASS: