Proxy Detektovanje 3 PHP skriptice
Results 1 to 4 of 4
  1. #1
    Junior Member Array
    Join Date
    Feb 2019
    Karma
    0

    Lightbulb Proxy Detektovanje 3 PHP skriptice

    Video sam da se riste zalepio oko para na proslom postu "pošto su jako dugačke skripte za detektovanje i teške da se odrade"

    Da napomenem treći način nije najsigurniji

    Prvi preko API-ja:

    Code:
    <?php
        $url = 'http://www.shroomery.org/ythan/proxycheck.php?ip=' . $ip . '';
        $ch  = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
        curl_setopt($ch, CURLOPT_ENCODING, 'gzip,deflate');
        curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
        curl_setopt($ch, CURLOPT_REFERER, "https://google.com");
        $rootsec = curl_exec($ch);
        curl_close($ch);
        
        if ($rootsec == "Y") {
                echo "Detektovan je proxy";
        }
    ?>
    Drugi:

    Code:
    <?php
        $proxy_headers = array(
            'HTTP_VIA',
            'HTTP_X_FORWARDED_FOR',
            'HTTP_FORWARDED_FOR',
            'HTTP_X_FORWARDED',
            'HTTP_FORWARDED',
            'HTTP_FORWARDED_FOR_IP',
            'HTTP_PROXY_CONNECTION'
        );
        foreach ($proxy_headers as $x) {
            if (isset($_SERVER[$x])) {
                echo "Detektovan je proxy";
         }
        }
    ?>
    i treći način:

    Code:
    <?php
    $ports = array(
            8080,
            80,
            81,
            1080,
            6588,
            8000,
            3128,
            553,
            554,
            4480
        );
        foreach ($ports as $port) {
            if (@fsockopen($_SERVER['REMOTE_ADDR'], $port, $errno, $errstr, 30)) {
                echo "Detektovan je proxy";
             }
        }
    ?>
    Last edited by RootSec; 02-07-2019 at 11:31.
    RootSec HUB - Archive & Hacking Community

    Join Now



  2. #2
    Senior Member Array
    Join Date
    Aug 2010
    Location
    Nis, Cair, Jamajka
    Karma
    14

    Default

    Pa ovo onda se moze ubaci u MOTD i komotno zabrani ulazak igraca na server..ako lepo detektuje ��
    PUB + DM Rank Klase (click me)

    PrimeKZ innovative kz main plugin
    PrimeBAN new method of banning players

    Deathrun Timer (click me)

  3. #3
    Senior Member Array
    Join Date
    Dec 2013
    Karma
    0

    Default

    Quote Originally Posted by RootSec View Post
    Video sam da se riste zalepio oko para na proslom postu "pošto su jako dugačke skripte za detektovanje i teške da se odrade"

    Da napomenem treći način nije najsigurniji

    Prvi preko API-ja:

    Code:
    <?php
        $url = 'http://www.shroomery.org/ythan/proxycheck.php?ip=' . $ip . '';
        $ch  = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
        curl_setopt($ch, CURLOPT_ENCODING, 'gzip,deflate');
        curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
        curl_setopt($ch, CURLOPT_REFERER, "https://google.com");
        $rootsec = curl_exec($ch);
        curl_close($ch);
        
        if ($rootsec == "Y") {
                echo "Detektovan je proxy";
        }
    ?>
    Drugi:

    Code:
    <?php
        $proxy_headers = array(
            'HTTP_VIA',
            'HTTP_X_FORWARDED_FOR',
            'HTTP_FORWARDED_FOR',
            'HTTP_X_FORWARDED',
            'HTTP_FORWARDED',
            'HTTP_FORWARDED_FOR_IP',
            'HTTP_PROXY_CONNECTION'
        );
        foreach ($proxy_headers as $x) {
            if (isset($_SERVER[$x])) {
                echo "Detektovan je proxy";
         }
        }
    ?>
    i treći način:

    Code:
    <?php
    $ports = array(
            8080,
            80,
            81,
            1080,
            6588,
            8000,
            3128,
            553,
            554,
            4480
        );
        foreach ($ports as $port) {
            if (@fsockopen($_SERVER['REMOTE_ADDR'], $port, $errno, $errstr, 30)) {
                echo "Detektovan je proxy";
             }
        }
    ?>
    Kada sam napomenuo pravljenje skriptu, nisam mislio da ti koristis usluge tipa tog sajta vec da ti sam stvoris detekciju i svoj api za takav vid. A ti slobodno koristi ovo dok se taj sajt ne zatvori ili konacno umetnu zabranu , onda ces traziti drugi sajt a do tada ti nece raditi ono sto si iskodirao xD.

    Ja sam ponudio samo, a on ako hoce nek prihvati ako ne dovidjenja, nikom nista. Ja svoj trud cenim i nemam bas slobodnog vremena za bacanje za dzaba.

  4. #4
    Senior Member Array
    Join Date
    Sep 2017
    Location
    Aleksinac - SRB
    Karma
    0

    Default

    Quote Originally Posted by RootSec View Post
    Video sam da se riste zalepio oko para na proslom postu "pošto su jako dugačke skripte za detektovanje i teške da se odrade"

    Da napomenem treći način nije najsigurniji

    Prvi preko API-ja:

    Code:
    <?php
        $url = 'http://www.shroomery.org/ythan/proxycheck.php?ip=' . $ip . '';
        $ch  = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
        curl_setopt($ch, CURLOPT_ENCODING, 'gzip,deflate');
        curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
        curl_setopt($ch, CURLOPT_REFERER, "https://google.com");
        $rootsec = curl_exec($ch);
        curl_close($ch);
        
        if ($rootsec == "Y") {
                echo "Detektovan je proxy";
        }
    ?>
    Drugi:

    Code:
    <?php
        $proxy_headers = array(
            'HTTP_VIA',
            'HTTP_X_FORWARDED_FOR',
            'HTTP_FORWARDED_FOR',
            'HTTP_X_FORWARDED',
            'HTTP_FORWARDED',
            'HTTP_FORWARDED_FOR_IP',
            'HTTP_PROXY_CONNECTION'
        );
        foreach ($proxy_headers as $x) {
            if (isset($_SERVER[$x])) {
                echo "Detektovan je proxy";
         }
        }
    ?>
    i treći način:

    Code:
    <?php
    $ports = array(
            8080,
            80,
            81,
            1080,
            6588,
            8000,
            3128,
            553,
            554,
            4480
        );
        foreach ($ports as $port) {
            if (@fsockopen($_SERVER['REMOTE_ADDR'], $port, $errno, $errstr, 30)) {
                echo "Detektovan je proxy";
             }
        }
    ?>
    Hvala puno, u medjuvremenu sam nasao slicnu skriptu koja radi posao perfektno. Ukoliko nekome treba neka me cima preko poruke. Da ne delim ovde skriptu da ne ispadne posle da uzimam nekome lebac iz ruke.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •