Use parseInt for integer options
This commit is contained in:
@@ -9,9 +9,9 @@ beef.execute(function() {
|
||||
var ips = new Array();
|
||||
var ipRange = "<%= @ipRange %>";
|
||||
var ports = "<%= @ports %>";
|
||||
var timeout = "<%= @timeout %>";
|
||||
var wait = "<%= @wait %>";
|
||||
var threads = "<%= @threads %>";
|
||||
var threads = parseInt("<%= @threads %>", 10);
|
||||
var timeout = parseInt("<%= @timeout %>", 10)*1000;
|
||||
var wait = parseInt("<%= @wait %>", 10)*1000;
|
||||
|
||||
if (ports != null) {
|
||||
ports = ports.split(',');
|
||||
@@ -304,7 +304,7 @@ beef.execute(function() {
|
||||
dom.contentWindow.document.execCommand("Stop", false);
|
||||
}
|
||||
document.body.removeChild(dom);
|
||||
}, timeout*1000);
|
||||
}, timeout);
|
||||
}
|
||||
|
||||
WorkerQueue = function(frequency) {
|
||||
@@ -338,7 +338,7 @@ beef.execute(function() {
|
||||
// create worker queue
|
||||
var workers = new Array();
|
||||
for (w=0; w < threads; w++) {
|
||||
workers.push(new WorkerQueue(wait*1000));
|
||||
workers.push(new WorkerQueue(wait));
|
||||
}
|
||||
|
||||
// for each URI signature
|
||||
|
||||
Reference in New Issue
Block a user