greetings, fellow internet!

welcome to digitalgangster.com, the coolest community for people who hack the gibson and make bajillions of dollars off of online marketing. please click here to register an account (it's free) and join in on a plethora of discussions with the internet elite.

ASGPHE,
ytcracker, original digital gangster
follow me on twitter
fan me on facebook
Results 1 to 7 of 7

Thread: double meta refresh or hide/spoof referer script

  1. #1
    420p's Avatar
    Join Date
    May 2009
    Location
    ny
    Posts
    7,356

    Default double meta refresh or hide/spoof referer script

    looking for a simple php script that does double meta refresh or hide/spoof referrer. Anyone got a good one

    thanks

    Cowards die many times before their actual deaths.

  2. #2

    Default

    http://bit.ly/LAkqGw 7k posts and u cant internet?


  3. #3

    Join Date
    Sep 2008
    Location
    North America
    Posts
    5,970

    Default

    Quote Originally Posted by pbgettfo View Post
    http://bit.ly/LAkqGw 7k posts and u cant internet?
    rofl +rep
    "Motivation alone is not enough. If you have an idiot and you motivate him, now you have a motivated idiot." - Jim Rohn

  4. #4
    420p's Avatar
    Join Date
    May 2009
    Location
    ny
    Posts
    7,356

    Default

    I can internet quite fine Good Sir, I was looking for something different then the ones posted on the googlez thank you though

    Cowards die many times before their actual deaths.

  5. #5

    Default

    2 .html files containing javascript redirect, 1st one goes to 2nd, 2nd goes to LP, done

  6. #6
    straight class, bitch. reefer's Avatar
    Join Date
    Jun 2010
    Posts
    3,333

    Default

    lol dg hate
    dg hate lol

    Code:
    <?php
    /* 
    JohnsonDaniel's Referer Blanking Script
    Content Lock Pro, Next Generation Content Locker, Treble your Income from Locking.
    Website: http://ContentLockPro.com
    Email:   http://scr.im/clpro
    URL Construction:
    http://scriptdomain.com/folder/?http://destinationlink.com?parameters=values
    */
    
    // Extract URI minus http://scriptdomain.com
    $req_url = $_SERVER['REQUEST_URI'];
    
    function selfURL() { $s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : ""; $protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s; $port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]); return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI']; }
    function strleft($s1, $s2) { return substr($s1, 0, strpos($s1, $s2)); }
    $full_url = selfURL();
    
    // Extract the urls which we need
    $script_name = $_SERVER['SCRIPT_NAME'];
    $current_file = basename(__FILE__);
    $dir = str_replace($current_file,'',$script_name);
    $dir .= '?';
    $offer = str_replace($dir,'',$req_url);
    $offer = remove_attempt($offer);
    
    $fallback = 'http://www.google.com/'; 
    
    if (!isset($_REQUEST['attempt'])) $_REQUEST['attempt'] = 0;
    
    switch ($_REQUEST['attempt']) {
        case 0:
            echo method0($offer,$full_url);
            break;
        case 1:
            echo method1($offer,$full_url);
            break;
        case 2:
            echo method2($offer,$full_url);
            break;
        case 3:
            echo method3($offer,$fallback);
            break;
        default:
            echo method0($offer,$full_url);
    }
    
    function method0($offer,$full_url) {
        $txt = '';
        $referer = '';
        if (isset($_SERVER['HTTP_REFERER'])) $referer = $_SERVER['HTTP_REFERER'];
        if ($referer == '' ) {
           // If blank redirect
          header('Location: '.$offer);
        } else {
            // Use method 0 to blank -> works mostly for IE and FF
            $txt = '<meta http-equiv="refresh" content="0; url='.$full_url.'&attempt=1">'; 
        }
        
        return $txt;
    }
    
    function method1($offer,$full_url) {
        $txt = '';
        $referer = '';
        if (isset($_SERVER['HTTP_REFERER'])) $referer = $_SERVER['HTTP_REFERER'];
        if ($referer == '' ) {
           // If blank redirect
           header('Location: '.$offer);
        } else {
            // Use method 1 to blank
            $txt = '<script>
              function go(){
            window.frames[0].document.body.innerHTML=\'<form target="_parent" method="post" action="'.$full_url.'&attempt=2">';
            $txt .= '</form>\';
                window.frames[0].document.forms[0].submit()
              }   
            </script>
            <iframe onload="window.setTimeout(\'go()\', 99)" src="about:blank" style="visibility:hidden"></iframe>';
        }    
            
        return $txt;
    }
    
    function method2($offer,$full_url) {
        $txt = '';
        $referer = '';
        if (isset($_SERVER['HTTP_REFERER'])) $referer = $_SERVER['HTTP_REFERER'];
        if ($referer == '' ) {
           // If blank redirect
           header('Location: '.$offer);
        } else {
            // Use method 2 to blank
            $txt = '<iframe src="javascript:parent.location=\''.$full_url.'&attempt=3\'" style="visibility:hidden"></iframe>';
        }    
            
        return $txt;
    }
    
    function method3($offer,$fallback) { // All methods tried
        $referer = '';
        if (isset($_SERVER['HTTP_REFERER'])) $referer = $_SERVER['HTTP_REFERER'];
        if ($referer == '' ) {
           // If blank redirect
           header('Location: '.$offer);
        } else {
           // No methods remaining -> send to fallback
           header('Location: '.$fallback);
        }    
            
        return $txt;
    }
    
    function remove_attempt($url) {
        $i = strpos($url,'&attempt=');
        if ($i > 0 ) $url = substr($url,0,$i);
        
        return $url;
    }
    
    function create_parameters($url) {
        $p1 = strpos ($url, '?');
        $p = array();
    
        if ($p1 > 0 ) {
            $url_no_par = substr ($url , 0, $p1);
            $p1 = $p1 + 1;
            $url_par = substr ($url , $p1);
            $paryval = explode ('&', $url_par);
            foreach ($paryval as $value) {
                $p[] = explode ('=',$value);
            }
        }
        
        return $p;
    }
    
    ?>
    source: http://www.blackhatworld.com/blackha...est-share.html

  7. #7
    420p's Avatar
    Join Date
    May 2009
    Location
    ny
    Posts
    7,356

    Default

    thx

    Cowards die many times before their actual deaths.

Bookmarks

Posting Permissions

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