Add exploit module windows persistent service#10822
Conversation
h00die
left a comment
There was a problem hiding this comment.
All I had time to check this evening. I <3 that cleanup script!!!
Interesting idea, (didn't review this far in code) should it just print the rc location, or should it be saved some where? Loot doesn't feel right, but a screen can close or log lost. If this was databased somewhere it would be easier to find after say a 30 day engagement
|
Thanks for your review! @h00die! |
|
Would this be easier if the module was a windows/local exploit? You wouldn't have to worry about handler. |
|
@wchen-r7 I see a lot of persistence modules, some locate I am a little confused, for I thought the all I just joined the Metasploit team for not long, forgive my ignorance. |
|
I agree this should be an exploit module. In general if your module has a payload it should be an exploit module. If it uses a session but no payload it should be a post module. Neither is auxiliary. |
|
@github is broken |
sempervictus
left a comment
There was a problem hiding this comment.
I think this is the most complete metasm SVC template I've seen. Awesome, thank you. Will test this weekend.
Placed contents of request_post into execute_command Randomized fingerprint with rand_text_alpha(12) Spaces at EOL fixed Normalized target URI
Co-Authored-By: carmaa <carsten@carmaa.com>
|
I'm getting an error when I run the module. Are additional header files needed for this module? |
|
After merging in master locally, I'm getting the following error |
|
@jrobles-r7 So when I was merging #10821, I might have skipped |
|
I found this commit, remove it on account of the crash. I am not very sure which way to achieve it for do not know how it crashed. |
|
@Green-m I opened a new PR for these changes since merging in master caused the page to shows lots of commits and files changed. |
Note:
This PR rely on #10821, please merge that before merge this.Could be merged now.resolved #10385
Verification steps
use post/windows/manage/persistence_serviceset payload <payload>set lport <lport>set lhost <lhost>set handler truerunUsage
Enjoy it!