Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
h00die committed Mar 18, 2017
1 parent face944 commit f88a522
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def login(ip)
#grab Canon sessionid cookie
idcookie = res.nil? ? nil : res.get_cookies

if res.code == 301 || res.code == 302 && res.headers.include?('Location')
if res && (res.code == 301 || res.code == 302 && res.headers.include?('Location'))
print_good("#{rhost} - SUCCESSFUL login with USER='#{datastore['USER']}' : PASSWORD='#{datastore['PASSWD']}'")

#grab Canon IR= session cookie
Expand Down

0 comments on commit f88a522

Please sign in to comment.