..cool, we will make a new module and not just some new module, nope let's make a fully automatic injection script! This tutorial is the first step into making this. Let's first explain..
xAnalyze is a module that can search through corrupt data and configuration files in order to find the exact position of errors
<?php
session_cache_limiter('nocache');
header('Expires: '.gmdate('r',0));
header('Content-type: text/html');
$_DYNAMIC_ROOT = "../..";
include_once("../../header.php");
include_once("convertopt.php");
// find function
$bExists = false;
$aOptions = array();
$sFields = "";
for($x=0;$x<count($_CONVERT);$x++){
if($_CONVERT[$x]['function']==$_POST['function']){
$bExists = true;
for($y=0;$y<count($_CONVERT[$x]['fieldnames']);$y++){
// make fields
$sFields .= " <div class=\"modrow\" id=\"temp\">\n";
$sFields .= " <div class=\"modleft\">".$_CONVERT[$x]['fieldnames'][$y]."</div>\n";
$sFields .= " <div class=\"modright\">";
switch($_CONVERT[$x]['type'][$y]){
// input
case 0:
$sFields .= "<input type=\"text\" name=\"sInput".$y."\" value=\"\" size=\"35\" />";
break;
// textarea
case 1:
$sFields .= "<textarea rows=\"5\" cols=\"35\" name=\"sInput".$y."\"></textarea>";
break;
// input
default:
$sFields .= "<input type=\"text\" name=\"sInput".$y."\" value=\"\" size=\"35\" />";
}
$sFields .= " </div>\n";
$sFields .= " </div>\n";
}
break;
}
}
echo $sFields;
?>