AZ0NE

关于我

网络安全爱好者

起因是想下载HackingTeam泄露的邮件,又由于种子各种不稳定,加上文件过大,所以就想换方法,国外放出了在线查询的地址 可惜是https的burp无力了,于是就想写个脚本跑一下,不然手工太麻烦了

PHP的代码

<?php


function curl_https($url, $data=array(), $header=array(), $timeout=30){


    $ch = curl_init();

    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); 

    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, true);  

    curl_setopt($ch, CURLOPT_URL, $url);

    curl_setopt($ch, CURLOPT_HTTPHEADER, $header);

    curl_setopt($ch, CURLOPT_POST, true);

    curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));

    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 

    curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);


    $response = curl_exec($ch);


    if($error=curl_error($ch)){

        die($error);

    }


    curl_close($ch);


    return $response;


}

for ($x=0; $x<=111; $x++) {

  $id = "$x";

  $url = "https://wikileaks.org/hackingteam/emails/emailid/{$id}";

  print $url;

  $response = curl_https($url,5);


  $myF = fopen("D:\WWW\https\data\ $id.html", "w");

  fwrite($myF, $response);

  fclose($myF);


?>



评论(2)
热度(2)
  1. Javan's blogAZ0NE 转载了此文字
© AZ0NE | Powered by LOFTER