mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
look for the dot, too
git-svn-id: file:///home/svn/framework3/trunk@9219 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
2e926a1c22
commit
1fe426bcf5
@ -27,7 +27,7 @@ def upload(session,file,trgloc = "")
|
||||
end
|
||||
begin
|
||||
ext = file[file.rindex(".") .. -1]
|
||||
if ext and ext.downcase == "exe"
|
||||
if ext and ext.downcase == ".exe"
|
||||
fileontrgt = "#{location}\\svhost#{rand(100)}.exe"
|
||||
else
|
||||
fileontrgt = "#{location}\\TMP#{rand(100)}#{ext}"
|
||||
|
Loading…
Reference in New Issue
Block a user