Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $reg_code = file_get_contents('license.txt');
- $f = fopen ("index.php", 'a'); // change file name after your protected file could be index, admin etc
- $ln= 6;
- while ($line= fgets ($f)) {
- ++$ln;
- printf ("%5h: ", $ln);
- printf ("%6h: ", $ln);
- if ($line===FALSE) print ("FALSE\n");
- else print ($line);
- }
- fclose ($f);
- if ($email == 'ihmongsales@gmail.com') { // add your e-mail address
- echo 'Please config your scritp and put your email';
- exit(0);
- }
- $url='http://hash.rentals/demo/dwtb_190717.php'; // add your domain path for file dwtb_190717.php
- $urlfrom = $_SERVER['HTTP_HOST'];
- $scriptn = "HTTPbotnet"; // change with your php script name
- $folderfrom = $_SERVER['SCRIPT_NAME'];
- $post_vars = "siteurl=".$urlfrom."&folder=".$folderfrom."&scriptname=".$scriptn."&email=".$email."&keyval=".$reg_code."&";
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt ($ch, CURLOPT_POST, 1);
- curl_setopt ($ch, CURLOPT_POSTFIELDS, $post_vars);
- curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
- $content = curl_exec ($ch);
- curl_close ($ch);
- if ($content == NULL) {
- 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>";
- }
- //$last = strlen($content);
- $start = 'MessageStart:';
- $end = ':MessageEnd';
- $pstart = strpos($content, $start);
- $pend = strpos($content, $end);
- $st = $pstart+strlen($start);
- $len = $pend-strlen($start) - $pstart;
- $newstr = substr($content, $st, $len);
- if ($newstr !='Ok') {
- echo $newstr;
- exit(0);
- }
- else {
- ?>
- Mr Tao Yang this is the result!
- Here you will add your php script and than you have to encode this file !
- <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement