..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..
THC xConverter is a tool that makes use of (php) functions in order to calculate, fetch, convert and encrypt data
<?php
/* Fetches data from files
Fetches data from a local or remote file.
PARAMETERS:
$sFile: file to fetch
RETURNS:
FALSE: failed to fetch filedata
STRING: data from specified file
Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 12-11-2014
*/
function GetFileData($sFile){
global $_CONTEXT;
if(false===($rPointer = @fopen($sFile,"r"))){
$_CONTEXT['errors'][] = "Failed to open location <b>".$sFile."</b>";
return(false);
}
$sBuffer = "";
while(!feof($rPointer)){
$sBuffer .= fgets($rPointer,128);
}
fclose($rPointer);
return($sBuffer);
}
?>