..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..
THC xConverter is a tool that makes use of (php) functions in order to calculate, fetch, convert and encrypt data
<?php
/* Fetches a webpage through proxy
Opens a connection with a proxy and fetches a location.
PARAMETERS:
$sUrl: url of the page to fetch
$sProxyUrl: location of the proxy
$iPort: port where the proxy service listens on
$sPass: username:password
RETURNS:
STRING: output of curl_exec()
Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 12-11-2014
*/
function ProxyConnect($sUrl,$sProxyUrl,$iPort="",$sPass=""){
$ch = curl_init($sUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_PROXY, $sProxyUrl);
if($iPort!=""){
curl_setopt($ch, CURLOPT_PROXYPORT, $iPort);
}
if($sPass!=""){
// user:password
curl_setopt($ch, CURLOPT_PROXYUSERPWD, $sPass);
}
return(curl_exec($ch));
}
?>