Skip to content

Commit

Permalink
Add file checking to printer_upload_file
Browse files Browse the repository at this point in the history
  • Loading branch information
wvu committed Feb 26, 2015
1 parent ed9213e commit dc3ba40
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/auxiliary/scanner/printer/printer_upload_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,13 @@ def run_host(ip)
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

0 comments on commit dc3ba40

Please sign in to comment.