Add file checking to printer_upload_file

bug/bundler_fix
William Vu 2015-02-25 17:44:45 -06:00
parent ed9213eb4c
commit dc3ba40e5d
1 changed files with 4 additions and 3 deletions

View File

@ -49,12 +49,13 @@ class Metasploit4 < Msf::Auxiliary
pjl.begin_job
pjl.fsinit(rpath[0..1])
file = pjl.fsdownload(lpath, rpath)
if pjl.fsdownload(lpath, rpath)
print_good("#{rhost}:#{rport} - Saved #{lpath} to #{rpath}")
end
pjl.end_job
disconnect
print_good("#{rhost}:#{rport} - Saved #{lpath} to #{rpath}")
end
end