Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dbhost = "snip";
- $dbname = "snip";
- $dbuser = "snip";
- $dbpass = "snip";
- $sha256h = $_GET['h'];
- $sha256u = $_GET['u'];
- $alpha = array("1","2","3","4","5","6","7","8","9","0");
- $logfile = "premiumlogs.txt"
- $ip = $_SERVER["REMOTE_ADDR"];
- $date = date("m/d/Y h:i:s a", time());
- $sha256geoip = json_decode(file_get_contents("https://freegeoip.net/json/" . $IP),true);
- $geoip = $geoip . "Country: " . $geoipjson["country_name"] . ", Region: " . $geoipjson["region_name"] . ", City: " . $geoipjson["city"] . ", Zip/Postal Code: " . $geoipjson["zip_code"];
- $con = mysqli_connect($dbhost, $dbuser, $dbpass)or die("ip logged, " . $ip . "\n");
- $verb = mysqli_select_db($con, $dbname);
- $strlen = strlen( $sha256h );
- for( $i = 0; $i <= $strlen - 1; $i++ ) {
- $char = substr( $hwid, $i, 1 );
- if (!in_array($char, $alpha)) {
- die("Your IP is logged, and all of your information. Here is something cool I found on the internet! " . $IP . "\n");
- }
- }
- if ( $verb ) {
- $sql = "SELECT * FROM auth WHERE hwid='$hwid'";
- $quer = mysqli_query($con, $sql);
- $num = mysqli_num_rows($quer);
- if ( $num == 0 ) {
- echo("iiiiilllll!!!!!");
- file_put_contents($logfile, file_get_contents($logfile) . " Date: " . $date . " || Location: " . $geoip . " || IP: " . $ip . " || HWID: " . $sha256h . " || Whitelisted: No" . "\n\");
- exit();
- }
- elseif ( $num == 1 ) {
- echo("iiiiillllll!!!!!");
- file_put_contents($logfile, file_get_contents($logfile) . " Date: " . $date . " || Location: " . $geoip . " || IP: " . $ip . " || HWID: " . $sha256h . " || Whitelisted: Yes" . "\n\");
- }
- else {
- file_put_contents($logfile, file_get_contents($logfile) . " Date: " . $date . " || Location: " . $geoip . " || IP: " . $ip . " || HWID: " . $sha256h . " || Whitelisted: Unkown" . "\n\");
- }
- }
- mysqli_close( $con );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement