Advertisement
shutdown57

decode.org auto submit

Oct 20th, 2016
484
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.72 KB | None | 0 0
  1. <?php
  2. /**
  3. c0ded by : shutdown57 a.k.a alinko
  4. http://alinkoproject.com
  5. **/
  6. function a_cover(){
  7.     $m="\033[1;31m";
  8.     $h="\033[1;32m";
  9.     $n="\033[1;37m";
  10.     echo "+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+\\\n";
  11.     echo "|    decode.org auto submit   | |\n";
  12.     echo "|    c0ded by :$m shutdown57 $n   | |\n";
  13.     echo "|   $h http://alinkoproject.com$n | |\n";
  14.     echo "+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ |\n";
  15.     echo "\\~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\\\n";
  16. }
  17. if(empty($argv[1])){
  18. a_cover();
  19. $m="\033[1;31m";
  20.     $h="\033[1;32m";
  21.     $n="\033[1;37m";
  22. echo "$h USAGE   :$n php ".$argv[0]." file.txt\n";
  23. echo "\n===================================\n";
  24. }else{
  25.     $m="\033[1;31m";
  26.     $h="\033[1;32m";
  27.     $n="\033[1;37m";
  28.     a_cover();
  29.     echo "$m [+] $n Waiting for you...\n";
  30. function a_ngntd($url){
  31.     $c=curl_init();
  32.     curl_setopt($c,CURLOPT_RETURNTRANSFER,1);
  33.     curl_setopt($c,CURLOPT_URL,$url);
  34.     curl_setopt($c,CURLOPT_HEADER,0);
  35.     $e=curl_exec($c);
  36.     return $e;
  37. }
  38. function a_pisah($pemisah,$string){
  39.     return explode(chr(1),str_replace($pemisah,chr(1),$string));
  40. }
  41. $res =a_ngntd("http://decode.org/?q=".urlencode(file_get_contents($argv[1])));
  42. $pecah = a_pisah(array('<blockquote>','</blockquote>'),$res);
  43. $filename="decode-".date('d-m-Y').".html";
  44. $isi="<html><head><title>: decode.org auto decode & encode :</title></head><body><center><h1>decode.org | c0ded by : shutdown57</h1><hr>";
  45. $isi.="<hr><h3>Asli : </h3>";
  46. $isi.=file_get_contents($argv[1]);
  47. $isi.="<hr><h3>Result :</h1>";
  48. $isi.=$pecah[1];
  49. $isi.="</body></html>";
  50. $fp=fopen($filename,"w");
  51. if(fwrite($fp,$isi)){
  52.     echo "$h [+] $n DONE...\n";
  53.     echo "$h [!] $n saved at $m $filename $n\n\n";
  54. }else{
  55.     echo "$m [-] $n FAILED...\n";
  56.     echo "$m [!] $n Check Your Connection.\n\n";
  57. }
  58. fclose($fp);
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement