[actionscript] yeet

Viewer

  1. <html>
  2. <head>
  3. <style>
  4. #goback {
  5. background-color: black;
  6. padding: 15px;
  7. position: fixed;
  8. z-index : 1;
  9. }
  10. </style>
  11. </head>
  12. <body>
  13. <div id="goback">
  14. <center>
  15. <FORM METHOD="LINK" ACTION="index.html">
  16. <INPUT TYPE="submit" VALUE="Go Back">
  17. </FORM>
  18. </center>
  19. </div>
  20. <BR>
  21.  
  22. <?php
  23. session_start();
  24.  
  25. $ipaddress = $_SERVER["REMOTE_ADDR"];
  26. date_default_timezone_set('Europe/London');
  27. $date = date('m/d/Y h:i:s a'time());
  28.  
  29.     function get_web_page( $url )
  30.     {
  31.         $user_agent='Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36';
  32.  
  33.         $options = array(
  34.  
  35.             CURLOPT_CUSTOMREQUEST  =>"GET",        //set request type post or get
  36.             CURLOPT_POST           =>false,        //set to GET
  37.             CURLOPT_USERAGENT      => $user_agent, //set user agent
  38.             CURLOPT_COOKIEFILE     =>"cookie.txt"//set cookie file
  39.             CURLOPT_COOKIEJAR      =>"cookie.txt"//set cookie jar
  40.             CURLOPT_RETURNTRANSFER => true,     // return web page
  41.             CURLOPT_HEADER         => false,    // don't return headers
  42.             CURLOPT_FOLLOWLOCATION => true,     // follow redirects
  43.             CURLOPT_ENCODING       => "",       // handle all encodings
  44.             CURLOPT_AUTOREFERER    => true,     // set referer on redirect
  45.             CURLOPT_CONNECTTIMEOUT => 120,      // timeout on connect
  46.             CURLOPT_TIMEOUT        => 120,      // timeout on response
  47.             CURLOPT_MAXREDIRS      => 10,       // stop after 10 redirects
  48.         );
  49.  
  50.         $ch      = curl_init( $url );
  51.         curl_setopt_array( $ch, $options );
  52.         $content = curl_exec( $ch );
  53.         $err     = curl_errno( $ch );
  54.         $errmsg  = curl_error( $ch );
  55.         $header  = curl_getinfo( $ch );
  56.         curl_close( $ch );
  57.  
  58.         $header['errno']   = $err;
  59.         $header['errmsg']  = $errmsg;
  60.         $header['content'] = $content;
  61.         return $header;
  62.     }
  63.        
  64.  
  65. $msg='';
  66. if($_SERVER["REQUEST_METHOD"] == "POST")
  67. {
  68. $recaptcha=$_POST['g-recaptcha-response'];
  69. if(!empty($recaptcha))
  70. {
  71. include("getCurlData.php");
  72. $google_url="https://www.google.com/recaptcha/api/siteverify";
  73. $secret='6LepRwITAAAAAElgu44jDcz4l3T_sVhD8AeZ7sV_';
  74. $ip=$_SERVER['REMOTE_ADDR'];
  75. $url=$google_url."?secret=".$secret."&response=".$recaptcha."&remoteip=".$ip;
  76. $res=getCurlData($url);
  77. $res= json_decode($res, true);
  78. //reCaptcha success check 
  79. if($res['success'])
  80. {
  81. $URL = "http://".$_POST["URL"];
  82.  
  83. //Read a web page and check for errors:
  84.  
  85. $result = get_web_page($URL);
  86. error_log("\r\n<IP> " . $ipaddress . " <URL> " . $URL . " <DATE> ". $date . " <CAPTCHA> TRUE"3"/var/www/projects/URLUnblocker/logs/main.log");
  87.  
  88. if ( $result['errno'] !0 )
  89.     echo ('Error: Incorrect URL or timed out');
  90.  
  91. if ( $result['http_code'] !200 )
  92.     echo ('Error: Invalid Page or no Permission');
  93.  
  94. $page = $result['content'];
  95.  
  96. echo ($page);
  97.  
  98. }
  99. else
  100. {
  101. $msg="Please re-enter your reCAPTCHA.";
  102. error_log("\r\n<IP> " . $ipaddress . " <URL> " . $URL . " <DATE> ". $date . " <CAPTCHA> FALSE"3"/var/www/projects/URLUnblocker/logs/main.log");
  103. }
  104.  
  105. }
  106. else
  107. {
  108. $msg="Please re-enter your reCAPTCHA.";
  109. error_log("\r\nURL: " . $URL . " IP: " . $ipaddress . " DATE: ". $date . " CAPTCHA: FALSE"3"/var/www/projects/URLUnblocker/logs/main.log");
  110. }
  111.  
  112. }
  113.  
  114. echo $msg;
  115. ?>
  116. </body>
  117. </html>

Editor

You can edit this paste and save as new:


File Description
  • yeet
  • Paste Code
  • 16 Oct-2021
  • 3.35 Kb
You can Share it: