Initial Import
git-svn-id: https://beef.googlecode.com/svn/trunk@2 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
42
modules/standard/detect_java/index.php
Normal file
42
modules/standard/detect_java/index.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?
|
||||
// Copyright (c) 2006-2009, Wade Alcorn
|
||||
// All Rights Reserved
|
||||
// wade@bindshell.net - http://www.bindshell.net
|
||||
|
||||
require_once("../../../include/common.inc.php"); // included for get_b64_file()
|
||||
DEFINE('JS_FILE', './template.js');
|
||||
?>
|
||||
|
||||
<script>
|
||||
|
||||
function get_b64_code_je() {
|
||||
// javascript is loaded from a file - it could be hard coded
|
||||
var b64code = '<? echo get_b64_file(JS_FILE); ?>';
|
||||
|
||||
return b64code;
|
||||
}
|
||||
|
||||
Element.Methods.set_autorun = function() {
|
||||
ar.enable('Detect Java', get_b64_code_je());
|
||||
}
|
||||
|
||||
Element.Methods.send_now = function() {
|
||||
do_send(get_b64_code_je());
|
||||
}
|
||||
|
||||
// add construct code to DOM
|
||||
Element.addMethods();
|
||||
|
||||
</script>
|
||||
|
||||
<!-- PAGE CONTENT -->
|
||||
<div id="module_header">Detect Java</div>
|
||||
This module will detect if Java is available in the selected zombie browsers.<br><br>
|
||||
<div id="module_subsection">
|
||||
<form name="myform">
|
||||
<div id="module_subsection_header"></div>
|
||||
<input class="button" type="button" value=" Set Autorun " onClick="javascript:set_autorun()"/>
|
||||
<input class="button" type="button" value=" Send Now " onClick="javascript:send_now()"/>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
1
modules/standard/detect_java/name.txt
Normal file
1
modules/standard/detect_java/name.txt
Normal file
@@ -0,0 +1 @@
|
||||
Detect Java
|
||||
17
modules/standard/detect_java/template.js
Normal file
17
modules/standard/detect_java/template.js
Normal file
@@ -0,0 +1,17 @@
|
||||
function do_main(){
|
||||
|
||||
// https://developer.mozilla.org/en/DOM/window.navigator.javaEnabled
|
||||
// bug in XP SP2
|
||||
if( window.navigator.javaEnabled() ) {
|
||||
result = "Java is available in browser";
|
||||
} else {
|
||||
result = "Java is NOT available in browser";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var result = null;
|
||||
|
||||
do_main();
|
||||
|
||||
return_result(result_id, result);
|
||||
Reference in New Issue
Block a user