-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Persistence directory #19815
base: master
Are you sure you want to change the base?
Persistence directory #19815
Changes from 19 commits
62b951d
b9539bb
e3545f3
8138fe1
d56d7ab
9b7cc8f
1fbd81d
1877601
43244ca
5039513
9de657e
d57237e
a2179ab
15cfde7
c035123
d65f2d4
7cfc28a
e76aa56
a1a8c26
770930d
20cdc45
1d19dc2
faad050
3607d5b
ca16ee2
cda0881
74acdf2
7542fa1
772ac96
6b45fb3
7b45372
4af21a6
5a5e813
186b74c
782bd3b
57dd846
e154902
490e810
1da8e44
e62acab
3bbf381
868775e
6e29418
a17e152
5188b20
2228190
c159660
5dee099
3a079b1
5c090d8
e8fafed
c36f98a
7058546
fb8e740
7d47bee
4519ee9
5deede9
1a74cb4
8c336f8
68a1008
c06e2ab
b41aa6b
d7b55e7
b9141fc
9ceb60d
0762a13
c07e28f
7db3160
0ea714e
6589d78
78c7a96
a935ce0
d902ba8
e2fd131
364d1a5
a3dcbf6
37cd4c1
fe6da60
4fdd4ac
0ecac47
ce1835b
f6159e2
a190de4
fa71e06
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# -*- coding: binary -*- | ||
|
||
module Msf | ||
module Exploit::Local::Persistence | ||
def initialize(info = {}) | ||
super( | ||
update_info( | ||
info, | ||
'DefaultOptions' => { | ||
'WfsDelay' => 90_000, # 25hrs | ||
'AllowNoCleanup' => true # don't delete our persistence after we get a shell | ||
}, | ||
# https://github.com/rapid7/metasploit-framework/pull/19676#discussion_r1907594308 | ||
'Stance' => Msf::Exploit::Stance::Passive | ||
# 'Passive' => true # XXX when set, ignores wfsdelay and immediately exists after last command | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we'd want There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree with the above, just adding a little bit of extra context: When setting There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Its true and does, but not when the modules are moved to the persistence folder. |
||
) | ||
) | ||
|
||
register_advanced_options( | ||
[ | ||
OptString.new('WritableDir', [true, 'A directory where we can write files', '/tmp/']) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this isn't tied to a specific platform, what if we left the default value blank then determined it at runtime and set it to something sensible based on the target platform. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's fine, is there a way to set the value in the module /wo overwriting all the text? Something like |
||
] | ||
) | ||
end | ||
end | ||
end |
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#19821 (comment)