Skip to content

Commit 2796459

Browse files
Fixed bug with pull request and added a new improved fingerprint for the RT-N66U :)
1 parent d398f10 commit 2796459

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

fingerprint_db.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
var fingerprints = [
55
{
66
'name': "ASUS RT-N66U",
7-
'fingerprints': ["/images/New_ui/asustitle.png","/images/loading.gif","/images/alertImg.png","/images/New_ui/networkmap/line_one.png","/images/New_ui/networkmap/lock.png","/images/New_ui/networkmap/line_two.png","/index_style.css","/form_style.css","/NM_style.css","/other.css"],
7+
'fingerprints': [["/images/New_ui/networkmap/linetwo2.png",270,2],["/images/alertImg.png",92,92],["/switcherplugin/iphone_switch_container_off.png",75,32],"/NM_style.css","/form_style.css","/general.js","/device-map/formcontrol.js","/ajax.js","/state.js","/jquery.js","/switcherplugin/jquery.iphone-switch.js","/device-map/router.asp",["/images/New_ui/asustitle.png",218,54],["/images/loading.gif",66,66],["/images/New_ui/networkmap/line_one.png",7,22],["/images/New_ui/networkmap/lock.png",23,23],["/images/New_ui/networkmap/line_two.png",180,57],"/index_style.css","/other.css","/md5.js","/popup.js","/disk_functions.js","/client_function.js","/help.js","/detect.js"],
88
'callback': function( ip ) {
99
// Insert exploit here
1010
},

sonar_fingerprint_generator/src/browser_action/js/main.js

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,17 @@ function copycode() {
1313
}
1414
document.getElementById("copy2clipboardbutton").addEventListener("click", copycode);
1515

16-
function remove_duplicates(arr) {
17-
var prims = {"boolean":{}, "number":{}, "string":{}}, objs = [];
18-
19-
return arr.filter(function(item) {
20-
var type = typeof item;
21-
if(type in prims)
22-
return prims[type].hasOwnProperty(item) ? false : (prims[type][item] = true);
23-
else
24-
return objs.indexOf(item) >= 0 ? false : objs.push(item);
25-
});
26-
}
16+
function remove_duplicates(array){
17+
if ($.isArray(array)){
18+
var dupes = {}; var len, i;
19+
for (i=0,len=array.length;i<len;i++){
20+
var test = array[i].toString();
21+
if (dupes[test]) { array.splice(i,1); len--; i--; } else { dupes[test] = true; }
22+
}
23+
}
24+
else {
25+
if (window.console) console.log('Not passing an array to uniqueArray, returning whatever you sent it - not filtered!');
26+
return(array);
27+
}
28+
return(array);
29+
}

0 commit comments

Comments
 (0)