Advertisement
Guest User

govnokod

a guest
Feb 24th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.65 KB | None | 0 0
  1. <?php
  2. $options = array(
  3.     CURLOPT_URL => 'http://audiotag.info/index.php',
  4.     CURLOPT_RETURNTRANSFER => true,
  5.     CURLOPT_POST => true,
  6.     CURLOPT_POSTFIELDS => http_build_query(array('URL' => $_GET['url'], 'step' => '22')),
  7. );
  8. $myCurl = curl_init();
  9. curl_setopt_array($myCurl, $options);
  10. $response = curl_exec($myCurl);
  11. curl_close($myCurl);
  12. $pos = strpos($response, '<form action=');
  13. $content = substr($response, $pos);
  14. $pos = strpos($content, '" alt="code');
  15. $content = substr($response, 0, $pos);
  16. $pos = strpos($content, 'name" value="');
  17. $fname = substr($response, $pos);
  18. $pos = strpos($fname, '"');
  19. $fname = substr($fname, 0, $pos);
  20. echo $fname;
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement