Skip to content

Commit af90c64

Browse files
committed
Sanity Changes
Reverted failure behaviour on line 70 Removed a space that prevented line 98 from working as intended
1 parent 27c4123 commit af90c64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/unix/webapp/sugarcrm_unserialize_exec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def on_new_session(client)
6767
client.fs.file.rm(f)
6868
print_good("#{peer} - #{f} removed to stay ninja")
6969
rescue
70-
fail_with(Failure::Unknown, "#{peer} - Unable to remove #{f}")
70+
print_warning("#{peer} - Unable to remove #{f}")
7171
end
7272
end
7373
end
@@ -95,7 +95,7 @@ def exploit
9595
'data' => data
9696
})
9797

98-
if res.nil? || res.headers['Location'].include? ('action=Login') || res.get_cookies.empty?
98+
if res.nil? || res.headers['Location'].include?('action=Login') || res.get_cookies.empty?
9999
fail_with(Failure::NoAccess, "#{peer} - Login failed with \"#{username}:#{password}\"")
100100
end
101101

0 commit comments

Comments
 (0)