Replace $jwterm.ajax with jQuery.ajax

This commit is contained in:
Brendan Coles
2019-02-25 13:59:03 +00:00
parent f707bf66f3
commit 41cfeedc9a
2 changed files with 37 additions and 37 deletions

View File

@@ -45,7 +45,7 @@ if(typeof beefwui === 'undefined' && typeof window.beefwui === 'undefined') {
*/
get_hb_id: function(sess){
var id = "";
$jwterm.ajax({
jQuery.ajax({
type: 'GET',
url: "/api/hooks/?token=" + this.get_rest_token(),
async: false,
@@ -77,7 +77,7 @@ if(typeof beefwui === 'undefined' && typeof window.beefwui === 'undefined') {
*/
get_info_from_id: function(id) {
var info = {};
$jwterm.ajax({
jQuery.ajax({
type: 'GET',
url: "/api/hooks/?token=" + this.get_rest_token(),
async: false,
@@ -89,7 +89,7 @@ if(typeof beefwui === 'undefined' && typeof window.beefwui === 'undefined') {
}
}
if ($jwterm.isEmptyObject(info)) {
if (jQuery.isEmptyObject(info)) {
for (var k in data['hooked-browsers']['offline']) {
if (data['hooked-browsers']['offline'][k].id === id) {
info = data['hooked-browsers']['offline'][k];

View File

@@ -18,7 +18,7 @@ ZombieTab_Network = function(zombie) {
// get module ID from name
var get_module_id = function(name){
var id = "";
$jwterm.ajax({
jQuery.ajax({
type: 'GET',
url: "/api/modules/search/" + name + "?token=" + token,
async: false,
@@ -50,7 +50,7 @@ ZombieTab_Network = function(zombie) {
var hosts = null;
var url = '/api/network/hosts/'+zombie.session+'?token='+token;
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
dataType: 'json',
type: 'GET',
@@ -213,7 +213,7 @@ ZombieTab_Network = function(zombie) {
handler: function() {
var mod_id = get_module_id("get_internal_ip_webrtc");
commands_statusbar.update_sending('Identifying zombie network adapters ...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({}),
dataType: 'json',
@@ -235,7 +235,7 @@ ZombieTab_Network = function(zombie) {
handler: function() {
var mod_id = get_module_id("get_proxy_servers_wpad");
commands_statusbar.update_sending('Scanning for WPAD proxies ...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({}),
dataType: 'json',
@@ -257,7 +257,7 @@ ZombieTab_Network = function(zombie) {
handler: function() {
var mod_id = get_module_id("fingerprint_routers");
commands_statusbar.update_sending('Scanning commonly used local area network IP addresses for routers ...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({}),
dataType: 'json',
@@ -290,7 +290,7 @@ ZombieTab_Network = function(zombie) {
return;
}
commands_statusbar.update_sending('Favicon scanning commonly used local area network IP addresses for web servers [ports: '+ports+'] ...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"rhosts":"common","ports":ports}),
dataType: 'json',
@@ -323,7 +323,7 @@ ZombieTab_Network = function(zombie) {
var mod_name = "get_http_servers";
var mod_id = get_module_id(mod_name);
commands_statusbar.update_sending('Favicon scanning ' + ip_range + ' for web servers...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"rhosts":ip_range,"ports":ports}),
dataType: 'json',
@@ -353,7 +353,7 @@ ZombieTab_Network = function(zombie) {
var mod_name = "internal_network_fingerprinting";
var mod_id = get_module_id(mod_name);
commands_statusbar.update_sending('Fingerprinting commonly used local area network IP addresses...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"ipRange":"common"}),
dataType: 'json',
@@ -381,7 +381,7 @@ ZombieTab_Network = function(zombie) {
var mod_name = "internal_network_fingerprinting";
var mod_id = get_module_id(mod_name);
commands_statusbar.update_sending('Fingerprinting ' + ip_range + '...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"ipRange":ip_range}),
dataType: 'json',
@@ -416,7 +416,7 @@ ZombieTab_Network = function(zombie) {
return;
}
commands_statusbar.update_sending('CORS scanning commonly used local area network IP addresses [ports: '+ports+'] ...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"ipRange":"common","ports":ports}),
dataType: 'json',
@@ -449,7 +449,7 @@ ZombieTab_Network = function(zombie) {
var mod_name = "cross_origin_scanner_cors";
var mod_id = get_module_id(mod_name);
commands_statusbar.update_sending('CORS scanning ' + ip_range + ' [ports: ' + ports + '] ...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"ipRange":ip_range,"ports":ports}),
dataType: 'json',
@@ -484,7 +484,7 @@ ZombieTab_Network = function(zombie) {
return;
}
commands_statusbar.update_sending('Flash cross-origin scanning commonly used local area network IP addresses [ports: '+ports+'] ...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"ipRange":"common","ports":ports}),
dataType: 'json',
@@ -517,7 +517,7 @@ ZombieTab_Network = function(zombie) {
var mod_name = "cross_origin_scanner_flash";
var mod_id = get_module_id(mod_name);
commands_statusbar.update_sending('Flash cross-origin scanning ' + ip_range + ' [ports: ' + ports + '] ...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"ipRange":ip_range,"ports":ports}),
dataType: 'json',
@@ -564,7 +564,7 @@ ZombieTab_Network = function(zombie) {
return;
}
commands_statusbar.update_sending('Favicon scanning ' + ip + ' for HTTP servers [ports: '+ports+'] ...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"rhosts":ip,"ports":ports}),
dataType: 'json',
@@ -586,7 +586,7 @@ ZombieTab_Network = function(zombie) {
handler: function() {
var mod_id = get_module_id("internal_network_fingerprinting");
commands_statusbar.update_sending('Fingerprinting ' + ip + '...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"ipRange":ip+'-'+ip}),
dataType: 'json',
@@ -613,7 +613,7 @@ ZombieTab_Network = function(zombie) {
return;
}
commands_statusbar.update_sending('CORS scanning ' + ip + ' [ports: '+ports+'] ...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"ipRange":ip+'-'+ip,"ports":ports}),
dataType: 'json',
@@ -640,7 +640,7 @@ ZombieTab_Network = function(zombie) {
return;
}
commands_statusbar.update_sending('Flash cross-origin scanning ' + ip + ' [ports: '+ports+'] ...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"ipRange":ip+'-'+ip,"ports":ports}),
dataType: 'json',
@@ -668,7 +668,7 @@ ZombieTab_Network = function(zombie) {
var mod_id = get_module_id("port_scanner");
var ports = '21,22,23,25,80,81,443,445,1080,8080,8081,8090,8443,3000,3128,3389,3306,5432,6379,10000,10443';
commands_statusbar.update_sending('Port scanning ' + ip + '...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"ipHost":ip,"ports":ports}),
dataType: 'json',
@@ -695,7 +695,7 @@ ZombieTab_Network = function(zombie) {
return;
}
commands_statusbar.update_sending('Port scanning ' + ip + '...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"ipHost":ip,"ports":ports}),
dataType: 'json',
@@ -735,7 +735,7 @@ ZombieTab_Network = function(zombie) {
return;
}
commands_statusbar.update_sending('Favicon scanning ' + ip + ' for HTTP servers [ports: '+ports+'] ...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"rhosts":ip,"ports":ports}),
dataType: 'json',
@@ -762,7 +762,7 @@ ZombieTab_Network = function(zombie) {
}
var mod_id = get_module_id("get_http_servers");
commands_statusbar.update_sending('Favicon scanning ' + ip_range + ' for HTTP servers [ports: '+ports+'] ...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"rhosts":ip_range,"ports":ports}),
dataType: 'json',
@@ -791,7 +791,7 @@ ZombieTab_Network = function(zombie) {
handler: function() {
var mod_id = get_module_id("internal_network_fingerprinting");
commands_statusbar.update_sending('Fingerprinting ' + ip + '...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"ipRange":ip+'-'+ip}),
dataType: 'json',
@@ -813,7 +813,7 @@ ZombieTab_Network = function(zombie) {
handler: function() {
var mod_id = get_module_id("internal_network_fingerprinting");
commands_statusbar.update_sending('Fingerprinting ' + ip_range + '...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"ipRange":ip_range}),
dataType: 'json',
@@ -847,7 +847,7 @@ ZombieTab_Network = function(zombie) {
return;
}
commands_statusbar.update_sending('CORS scanning ' + ip + ' [ports: '+ports+'] ...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"ipRange":ip+'-'+ip,"ports":ports}),
dataType: 'json',
@@ -874,7 +874,7 @@ ZombieTab_Network = function(zombie) {
return;
}
commands_statusbar.update_sending('CORS scanning ' + ip_range + ' [ports: '+ports+'] ...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"ipRange":ip_range,"ports":ports}),
dataType: 'json',
@@ -908,7 +908,7 @@ ZombieTab_Network = function(zombie) {
return;
}
commands_statusbar.update_sending('Flash cross-origin scanning ' + ip + ' [ports: '+ports+'] ...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"ipRange":ip+'-'+ip,"ports":ports}),
dataType: 'json',
@@ -935,7 +935,7 @@ ZombieTab_Network = function(zombie) {
return;
}
commands_statusbar.update_sending('Flash cross-origin scanning ' + ip_range + ' [ports: '+ports+'] ...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"ipRange":ip_range,"ports":ports}),
dataType: 'json',
@@ -965,7 +965,7 @@ ZombieTab_Network = function(zombie) {
var mod_id = get_module_id("port_scanner");
var ports = '21,22,23,25,80,81,443,445,1080,8080,8081,8090,8443,3000,3128,3389,3306,5432,6379,10000,10443';
commands_statusbar.update_sending('Port scanning ' + ip + '...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"ipHost":ip,"ports":ports}),
dataType: 'json',
@@ -992,7 +992,7 @@ ZombieTab_Network = function(zombie) {
return;
}
commands_statusbar.update_sending('Port scanning ' + ip + '...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"ipHost":ip,"ports":ports}),
dataType: 'json',
@@ -1023,7 +1023,7 @@ ZombieTab_Network = function(zombie) {
}
commands_statusbar.update_sending('Removing network host [id: '+ host_id +', ip: '+ ip +'] ...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
dataType: 'json',
type: 'DELETE',
@@ -1148,7 +1148,7 @@ ZombieTab_Network = function(zombie) {
handler: function () {
var mod_id = get_module_id("internal_network_fingerprinting");
commands_statusbar.update_sending('Fingerprinting ' + ip + '...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"ipRange": ip + '-' + ip, "ports": port}),
dataType: 'json',
@@ -1170,7 +1170,7 @@ ZombieTab_Network = function(zombie) {
handler: function () {
var mod_id = get_module_id("cross_origin_scanner_cors");
commands_statusbar.update_sending('CORS scanning ' + ip + ' [port: '+port+'] ...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({"ipRange": ip + '-' + ip, "ports": port}),
dataType: 'json',
@@ -1203,7 +1203,7 @@ ZombieTab_Network = function(zombie) {
}
alert("Now start your reverse shell handler on " + lhost + ':' + lport);
commands_statusbar.update_sending('Shellshock scanning ' + ip + '...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({
"rproto": proto,
@@ -1242,7 +1242,7 @@ ZombieTab_Network = function(zombie) {
}
alert("Now start your reverse shell handler on " + lhost + ':' + lport);
commands_statusbar.update_sending('Shellshock scanning ' + ip + '...');
$jwterm.ajax({
jQuery.ajax({
contentType: 'application/json',
data: JSON.stringify({
"rproto": proto,