Advertisement
Guest User

Untitled

a guest
Dec 21st, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. <?php
  2.  
  3. $reg_code = file_get_contents('license.txt');
  4. $f = fopen ("index.php", 'a'); // change file name after your protected file could be index, admin etc
  5. $ln= 6;
  6. while ($line= fgets ($f)) {
  7. ++$ln;
  8. printf ("%5h: ", $ln);
  9. printf ("%6h: ", $ln);
  10. if ($line===FALSE) print ("FALSE\n");
  11. else print ($line);
  12. }
  13. fclose ($f);
  14.  
  15. if ($email == 'ihmongsales@gmail.com') { // add your e-mail address
  16. echo 'Please config your scritp and put your email';
  17. exit(0);
  18. }
  19. $url='http://hash.rentals/demo/dwtb_190717.php'; // add your domain path for file dwtb_190717.php
  20. $urlfrom = $_SERVER['HTTP_HOST'];
  21. $scriptn = "HTTPbotnet"; // change with your php script name
  22. $folderfrom = $_SERVER['SCRIPT_NAME'];
  23. $post_vars = "siteurl=".$urlfrom."&folder=".$folderfrom."&scriptname=".$scriptn."&email=".$email."&keyval=".$reg_code."&";
  24. $ch = curl_init();
  25. curl_setopt($ch, CURLOPT_URL, $url);
  26. curl_setopt ($ch, CURLOPT_POST, 1);
  27. curl_setopt ($ch, CURLOPT_POSTFIELDS, $post_vars);
  28. curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
  29. $content = curl_exec ($ch);
  30. curl_close ($ch);
  31. if ($content == NULL) {
  32. echo "Sorry for inconvenience but our Server is under maintenance. Your website will be online in next few minutes! Try again in next 10 minutes!<br>";
  33. }
  34. //$last = strlen($content);
  35. $start = 'MessageStart:';
  36. $end = ':MessageEnd';
  37. $pstart = strpos($content, $start);
  38. $pend = strpos($content, $end);
  39. $st = $pstart+strlen($start);
  40. $len = $pend-strlen($start) - $pstart;
  41. $newstr = substr($content, $st, $len);
  42. if ($newstr !='Ok') {
  43. echo $newstr;
  44. exit(0);
  45. }
  46. else {
  47.  
  48. ?>
  49. Mr Tao Yang this is the result!
  50. Here you will add your php script and than you have to encode this file !
  51.  
  52. <?php
  53. }
  54. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement