random gallery image
random tutorial
preview

..we are going to create a new app for the hacksuite. We're not going to do anything fancy here, we will make a simple app to get familiar how to write compatible scripts for the..

read more

random other
xConverter

THC xConverter is a tool that makes use of (php) functions in order to calculate, fetch, convert and encrypt data

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 xConverter GUI

Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 29-03-2015
*/
if(!defined('IN_SCRIPT')){
    exit;
}
// include conversion options
include_once($_PATHS['module_default_root']."/convertopt.php");
// include select menu
include_once($_PATHS['module_default_root']."/xcselect.php");
$sCode = (isset($sCode) ? $sCode "");
$_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']['class'] = "devform";
$_CONTEXT['mfs']['form']['method'] = "post";
/* 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']]['value'] = "<div class=\"display rasterbg boxr5 borderr5 border1pxstrans pad5 overflw\">&nbsp;</div>";
$_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'] = "optionselect";
$_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'] = "select option";
$_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'] = $_CONTEXT['xcselect'];
$_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']]['value'] = "<div class=\"modrowleft\" id=\"mvtop\"><input type=\"submit\" name=\"submit\" value=\"Send\" /></div>";
// create output form
$sCode ModForm($_CONTEXT['mfs']);
// js
$sCode .= "\n<script type=\"text/javascript\">\n";
$sCode .= "    \$(function(){\n";
$sCode .= "        \$('select.sOption').change(function(){\n";
$sCode .= "            \$('.modrow#temp').remove();\n";
$sCode .= "            \$.ajax({\n";
$sCode .= "                type: \"POST\",\n";
$sCode .= "                url: \"Modules/thc_xc/function_summary.php\",\n";
$sCode .= "                data: \"function=\"+$(this).val(),\n";
$sCode .= "                dataType: \"html\",\n";
$sCode .= "                success: function(html){\n";
$sCode .= "                    \$('.modrow#optionselect').after(html);\n";
$sCode .= "                }\n";
$sCode .= "            });\n";
$sCode .= "        });\n";
$sCode .= "    });\n";
$sCode .= "    $(document).on(\"submit\",\"form.devform\",function(e){\n";
$sCode .= "        e.preventDefault();\n";
$sCode .= "        dataString = \$(\"form.devform\").serialize();\n";
$sCode .= "        \$.ajax({\n";
$sCode .= "            type: \"POST\",\n";
$sCode .= "            url: \"Modules/thc_xc/screen.php\",\n";
$sCode .= "            data: dataString,\n";
$sCode .= "            dataType: \"html\",\n";
$sCode .= "            beforeSend: function(html){\n";
$sCode .= "                \$('.rmvme').remove();\n";
$sCode .= "            },\n";
$sCode .= "            success: function(html){\n";
$sCode .= "                \$('div.display').html(html);\n";
$sCode .= "                if(\$('div.display').text().length>500){\n";
$sCode .= "                    \$('.modrowleft#mvtop').append('<div class=\"rmvme\"><a href=\"#top\">[ top ]</a></div>');\n";
$sCode .= "                }\n";
$sCode .= "                else{\n";
$sCode .= "                    \$('.rmvme').remove();\n";
$sCode .= "                }\n";
$sCode .= "            }\n";
$sCode .= "        });\n";
$sCode .= "    });\n";
$sCode .= "</script>\n";
// template it
include_once($_PATHS['style_root']."/index.php");
?>
powered by
site stats
cms statistics:
version: 0.6.0
downloads: 3840
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.