random gallery image
random tutorial
preview

..or more modules you must have seen the iframes used for realtime result display. In this tutorial I'm going to show you how to insert them into your module and how they function. what..

read more

random vulnerability assesment
THC AntiEvil

Attempts to find suspicious and evil files or code

more about this module
more of this category
more modules

HackSuite File Library
File Library
Here you can find the latest files and structure of the THC HackSuite, note that if you have an earlier version of the suite it's not recommended to update files manually. Instead you should overwrite your existing HackSuite environment.
<?php
/* THC xMap GUI

Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 30-03-2015
*/
if(!defined("IN_SCRIPT")){
    exit;
}
$sDest "Modules/".$_CONTEXT['module_current']."/profiles.php";
(!
IsThere($sDest) ? include_once($_PATHS['end']) : include_once($sDest));
$sCode = (isset($sCode) ? $sCode "");
$_CONTEXT['headers'] = (isset($_CONTEXT['headers']) ? $_CONTEXT['headers'] : "")."<script type=\"text/javascript\" src=\"".$_PATHS['module_default_root_http']."/handler.js\"></script>\n";
$iProfiles = @count($_CONTEXT['blueprints']);
$_CONTEXT['mfs'] = array();
/* keeps track of the current row when defining properties, which makes it easier to add and remove new rows */
$_CONTEXT['mfs']['currentrow'] = 0;
/* form properties */
$_CONTEXT['mfs']['module'] = $_CONTEXT['module_current'];
$_CONTEXT['mfs']['form'] = array();
$_CONTEXT['mfs']['form']['method'] = "post";
$_CONTEXT['mfs']['form']['class'] = "sendform";
/* table */
$_CONTEXT['mfs']['table'] = array();
/* table header */
$_CONTEXT['mfs']['table']['header'] = array();
$_CONTEXT['mfs']['table']['header']['name'] = $_CONTEXT['modules'][$_CONTEXT['mfs']['module']]['name'];
$_CONTEXT['mfs']['table']['header']['description'] = $_CONTEXT['modules'][$_CONTEXT['mfs']['module']]['description'];
/* table rows */
$_CONTEXT['mfs']['table']['rows'] = array();
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']] = array();
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['class'] = "modrow";
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['id'] = "def";
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['value'] = "What do you want to do?<br />\n<a href=\"#\" class=\"lb\">create blueprint</a>".($iProfiles>"<br />\n<a href=\"#\" class=\"lc\">compare blueprint</a><br />\n<a href=\"#\" class=\"cfglink\">manage maps</a>" "");
$_CONTEXT['mfs']['currentrow']++;
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']] = array();
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['class'] = "modrow";
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['id'] = "makebp";
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'] = array();
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][0] = array();
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][0]['class'] = "modleft";
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][0]['value'] = "start folder";
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][1] = array();
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][1]['class'] = "modright";
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][1]['value'] = "<input type=\"text\" name=\"sBluePrintFolder\" value=\"".$_SERVER['DOCUMENT_ROOT']."\" size=\"55\" />";
$_CONTEXT['mfs']['currentrow']++;
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']] = array();
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['class'] = "modrow";
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['id'] = "makebp";
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'] = array();
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][0] = array();
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][0]['class'] = "modleft";
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][0]['value'] = "save as";
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][1] = array();
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][1]['class'] = "modright";
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][1]['value'] = "<input type=\"text\" name=\"sFileZ\" value=\"\" size=\"55\" /><i>enter a filename, the .map extension will be added automatically</i>";
$_CONTEXT['mfs']['currentrow']++;
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']] = array();
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['class'] = "modrow";
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['id'] = "makebp";
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'] = array();
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][0] = array();
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][0]['class'] = "modleft";
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][0]['value'] = "profile";
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][1] = array();
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][1]['class'] = "modright";
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][1]['value'] = "<input type=\"text\" name=\"sName\" value=\"\" size=\"55\" />";
$_CONTEXT['mfs']['currentrow']++;
if(
$iProfiles!=0){
    
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']] = array();
    
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['class'] = "modrow";
    
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['id'] = "prof";
    
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'] = array();
    
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][0] = array();
    
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][0]['class'] = "modleft";
    
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][0]['value'] = "profiles";
    
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][1] = array();
    
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][1]['class'] = "modright";
    
$sSelect "<select name=\"sProfile\">\n";
    for(
$x=0;$x<$iProfiles;$x++){
        
$sSelect .= "    <option value=\"".$_CONTEXT['blueprints'][$x][1]."\">".$_CONTEXT['blueprints'][$x][0]." - ".$_CONTEXT['blueprints'][$x][1]."</option>\n";
    }
    
$sSelect .= "</select>\n";
    
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['cells'][1]['value'] = $sSelect;
    
$_CONTEXT['mfs']['currentrow']++;
}
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']] = array();
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['class'] = "modrow";
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['id'] = "subm";
$_CONTEXT['mfs']['table']['rows'][$_CONTEXT['mfs']['currentrow']]['value'] = "<div class=\"modrowleft mt5\"><input type=\"submit\" name=\"submit\" class=\"bprint\" value=\"Create BluePrint\" /> ".($iProfiles>"<input type=\"submit\" class=\"cbprint\" name=\"submit\" value=\"Compare BluePrint\" />" "")."</div>";
// create output form
$sCode ModForm($_CONTEXT['mfs']);
// js
$sCode .= "<script type=\"text/javascript\">\n";
$sCode .= "\$(document).ready(function(){\n";
$sCode .= "    \$('.modrow#def').show();\n";
$sCode .= "    \$('.modrow#makebp').hide();\n";
$sCode .= "    \$('.modrow#prof').hide();\n";
$sCode .= "    \$('.modrow#subm').hide();\n";
$sCode .= "    \$('a.lc').click(function(e){\n";
$sCode .= "        e.preventDefault();\n";
$sCode .= "        \$('.modrow#def').remove();\n";
$sCode .= "        \$('.modrow#makebp').remove();\n";
$sCode .= "        \$('.modrow#prof').show();\n";
$sCode .= "        \$('.modrow#subm').show();\n";
$sCode .= "        \$('input.cbprint').show();\n";
$sCode .= "        \$('input.bprint').remove();\n";
$sCode .= "    });\n";
$sCode .= "    \$('a.lb').click(function(e){\n";
$sCode .= "        e.preventDefault();\n";
$sCode .= "        \$('.modrow#def').remove();\n";
$sCode .= "        \$('.modrow#makebp').show();\n";
$sCode .= "        \$('.modrow#prof').remove();\n";
$sCode .= "        \$('.modrow#subm').show();\n";
$sCode .= "        \$('input.cbprint').remove();\n";
$sCode .= "        \$('input.bprint').show();\n";
$sCode .= "    });\n";
$sCode .= "});\n";
$sCode .= "\$(\".cfglink\").click(function(e){\n";
$sCode .= "    e.preventDefault();\n";
$sCode .= "    var form = \$('<form action=\"configuration.php\" method=\"post\">' + '<input type=\"hidden\" name=\"iCFG\" value=\"16\" />' + '</form>');\n";
$sCode .= "    \$('body').append(form);\n";
$sCode .= "    \$(form).submit();\n";
$sCode .= "});\n";
$sCode .= "</script>\n";
?>
powered by
site stats
cms statistics:
version: 0.6.0
downloads: 3938
native: 26
modules: 21
apps: 2
support development
It takes lots of calories in order to create new things for the hacksuite, so it would be grand if you could buy me a protein shake or extra energy to keep me going. Thanks!
disclaimer
We are not responsible for any direct or indirect damage caused by abusing the tools provided on hacksuite.com. The suite is developed for educational purposes, use at your own risk!
Created by Remco Kouw. Powered by protein shakes and a high calorie diet.