We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe66d24 commit 0718c27Copy full SHA for 0718c27
modules/auxiliary/admin/http/synology_dsm_sliceupload_exec_noauth.rb
@@ -123,7 +123,7 @@ def run
123
'data' => post_body
124
})
125
126
- if !res or res.code != 200 or !res.body.include?('error_noprivilege')
+ unless res and res.code == 200 and res.body.include?('error_noprivilege')
127
print_error("#{peer} - Unexpected response, probably the exploit failed")
128
return
129
end
@@ -134,7 +134,7 @@ def run
134
'uri' => '/redirect.cgi'
135
136
137
- if !res or res.code != 200
+ unless res and res.code == 200
138
139
140
0 commit comments