Skip to content

Commit 564488a

Browse files
committed
Changed and to &&
1 parent 280e10d commit 564488a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/linux/http/vap2500_tools_command_exec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def exploit
9090
'Cookie' => "p=1b3231655cebb7a1f783eddf27d254ca", # md5("super")
9191
}
9292
})
93-
if res and res.code == 200 and res.body.to_s =~ /TOOLS - COMMAND/
93+
if res && res.code == 200 && res.body.to_s =~ /TOOLS - COMMAND/
9494
print_good("#{peer} - Command sent successfully")
9595
else
9696
fail_with(Failure::UnexpectedReply, "#{peer} - Command execution failed")

0 commit comments

Comments
 (0)