Remove '.exe' from share name

GSoC/Meterpreter_Web_Console
Jacob Robles 2018-08-23 14:38:46 -05:00
parent fd6880d0d0
commit 7ceae8df58
No known key found for this signature in database
GPG Key ID: 3EC9F18F2B12401C
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class MetasploitModule < Msf::Exploit::Remote
end
def pdfdoc
share = datastore['SHARE'].empty? ? "#{Rex::Text.rand_text_alpha_lower(1)}.exe" : datastore['SHARE']
share = datastore['SHARE'].empty? ? "#{Rex::Text.rand_text_alpha_lower(1)}" : datastore['SHARE']
fname = datastore['EXENAME'].empty? ? "#{Rex::Text.rand_text_alpha_lower(1)}.exe" : datastore['EXENAME']
fname << '.exe' unless fname.ends_with?('.exe')