Hack Forums
Free YourFreedom Premium Account - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4)
+---- Thread: Free YourFreedom Premium Account (/showthread.php?tid=68925)

Pages: Pages 1 2


* - Solus - Mar 7, 2010

I found this earlier today, but the code you linked is no longer loading.

If you still have the code, could you post it or something? :D


* - morris801111 - Mar 13, 2010

please post new code...
thanks


* - jtb110 - Mar 15, 2010

Here is the code. Remember to edit the first lines as mentioned in the start.

Code
<?php

$yf_server = 'ems06.your-freedom.de';
$yf_port = 80;
$connect_timeout = 10;
$sep="--SEP";

set_magic_quotes_runtime(0);

$args = Array();
parse_str($_SERVER["QUERY_STRING"], $args);
$ext = 'html';
$session_id = null;
foreach ($args as $key => $value) {
    $l = strlen($key);
    $sum = 0;
    for ($i=0; $i<$l; $i++) $sum += ord(substr($key,$i,1));
    if ($sum % 100 == 0) { # is a valid session ID tag
        $session_id = $value;
        if ($sum % 200 == 0) {    # is a valid uplink tag
            $ext = 'cgi';
        }
        break;
    }
}
if ($session_id == null) {
    $fh = fsockopen("tcp://$yf_server", $yf_port);
    if (!$fh) return;
    $cmd = "GET /cgi.html?server=".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']." HTTP/1.0\r\n\r\n";
    if (!fwrite($fh,$cmd,strlen($cmd))) return;
    $cli = fopen("php://output","wb");
    if ($cli) {
        fflush($cli);
        do {
            $data = fgets($fh);
        }
        while (strpos($data,"\n")>1);
        while (true) {
            $data = fread($fh,2048);
            if (!$data) break;
            if (!fwrite($cli,$data,strlen($data))) break;
            fflush($cli);
        }
    }
    exit;
}

crossconnect($session_id, $yf_server, $yf_port, $ext);
exit;

function getServer($session_id) {
    return array($rootaddr, $rootport);
}

function headers() {
    return
    "Accept: text/html\r\n".
    "X-Via: ".$_SERVER['SERVER_NAME']." ".$uri." ".$_SERVER['REMOTE_ADDR']." ".$_SERVER['REMOTE_PORT']."\r\n".
    "Connection: close\r\n";
}

function crossconnect($session_id, $server, $port, $ext) {
    $fh = fsockopen("tcp://$server", $port);
    if (!$fh) return;
    $post = false;
    if (!strcmp($ext,"cgi")) {
        $uri = $_SERVER['REQUEST_URI'];
        $uri = substr($uri,0,strpos($uri,'?'));
        $cmd =    "POST /$session_id.$ext HTTP/1.0\r\n".
            "Host: $server:$port\r\n".
            "Content-Length: 10000000\r\n".
            headers();
        $post = true;
    }
    else {
        $cmd =    "GET /$session_id.$ext HTTP/1.0\r\n".
            "Host: $server:$port\r\n".
            headers().
            "\r\n";
    }
    if (!fwrite($fh,$cmd,strlen($cmd))) return;

    if (!$post) { # read from server and print what we read
        $cli = fopen("php://output","wb");
        if ($cli) {
            fflush($cli);
            do {
                $data = fgets($fh);
            }
            while (strpos($data,"\n")>1);
            while (true) {
                $data = fread($fh,2048);
                if (!$data) break;
                if (!fwrite($cli,$data,strlen($data))) break;
                fflush($cli);
            }
        }
    }
    else {
        $sep="--SEP\r\n";
        fwrite($fh,"Content-Type: multipart/form-data; boundary=SEP\r\n\r\n");
        fflush($fh);
        $skip=1;
        foreach ($_REQUEST as $k => $v) {
            if (--$skip>=0) continue;
            reset($_REQUEST[$k]);
            foreach ($_REQUEST[$k] as $kk => $vv) {
                $item=$sep."Content-Disposition: form-data; name=\"$k\"\r\n\r\n$vv\r\n";
                if (FALSE === fwrite($fh,$item,strlen($item))) {
                    break;
                }
            }
        }
        $item=$sep;
        fwrite($fh,$item,strlen($item));
        fflush($fh);
    }
    fclose($fh);
}

?>



* - ardhywiratamaby - Mar 21, 2010

(Mar 15, 2010 11:51 PM)jtb110 Wrote:  Here is the code. Remember to edit the first lines as mentioned in the start.

Code
<?php

$yf_server = 'ems06.your-freedom.de';
$yf_port = 80;
$connect_timeout = 10;
$sep="--SEP";

set_magic_quotes_runtime(0);

$args = Array();
parse_str($_SERVER["QUERY_STRING"], $args);
$ext = 'html';
$session_id = null;
foreach ($args as $key => $value) {
    $l = strlen($key);
    $sum = 0;
    for ($i=0; $i<$l; $i++) $sum += ord(substr($key,$i,1));
    if ($sum % 100 == 0) { # is a valid session ID tag
        $session_id = $value;
        if ($sum % 200 == 0) {    # is a valid uplink tag
            $ext = 'cgi';
        }
        break;
    }
}
if ($session_id == null) {
    $fh = fsockopen("tcp://$yf_server", $yf_port);
    if (!$fh) return;
    $cmd = "GET /cgi.html?server=".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']." HTTP/1.0\r\n\r\n";
    if (!fwrite($fh,$cmd,strlen($cmd))) return;
    $cli = fopen("php://output","wb");
    if ($cli) {
        fflush($cli);
        do {
            $data = fgets($fh);
        }
        while (strpos($data,"\n")>1);
        while (true) {
            $data = fread($fh,2048);
            if (!$data) break;
            if (!fwrite($cli,$data,strlen($data))) break;
            fflush($cli);
        }
    }
    exit;
}

crossconnect($session_id, $yf_server, $yf_port, $ext);
exit;

function getServer($session_id) {
    return array($rootaddr, $rootport);
}

function headers() {
    return
    "Accept: text/html\r\n".
    "X-Via: ".$_SERVER['SERVER_NAME']." ".$uri." ".$_SERVER['REMOTE_ADDR']." ".$_SERVER['REMOTE_PORT']."\r\n".
    "Connection: close\r\n";
}

function crossconnect($session_id, $server, $port, $ext) {
    $fh = fsockopen("tcp://$server", $port);
    if (!$fh) return;
    $post = false;
    if (!strcmp($ext,"cgi")) {
        $uri = $_SERVER['REQUEST_URI'];
        $uri = substr($uri,0,strpos($uri,'?'));
        $cmd =    "POST /$session_id.$ext HTTP/1.0\r\n".
            "Host: $server:$port\r\n".
            "Content-Length: 10000000\r\n".
            headers();
        $post = true;
    }
    else {
        $cmd =    "GET /$session_id.$ext HTTP/1.0\r\n".
            "Host: $server:$port\r\n".
            headers().
            "\r\n";
    }
    if (!fwrite($fh,$cmd,strlen($cmd))) return;

    if (!$post) { # read from server and print what we read
        $cli = fopen("php://output","wb");
        if ($cli) {
            fflush($cli);
            do {
                $data = fgets($fh);
            }
            while (strpos($data,"\n")>1);
            while (true) {
                $data = fread($fh,2048);
                if (!$data) break;
                if (!fwrite($cli,$data,strlen($data))) break;
                fflush($cli);
            }
        }
    }
    else {
        $sep="--SEP\r\n";
        fwrite($fh,"Content-Type: multipart/form-data; boundary=SEP\r\n\r\n");
        fflush($fh);
        $skip=1;
        foreach ($_REQUEST as $k => $v) {
            if (--$skip>=0) continue;
            reset($_REQUEST[$k]);
            foreach ($_REQUEST[$k] as $kk => $vv) {
                $item=$sep."Content-Disposition: form-data; name=\"$k\"\r\n\r\n$vv\r\n";
                if (FALSE === fwrite($fh,$item,strlen($item))) {
                    break;
                }
            }
        }
        $item=$sep;
        fwrite($fh,$item,strlen($item));
        fflush($fh);
    }
    fclose($fh);
}

?>

are it work if we use on udp 53 protocol ??


* - Jack.sparrow.m14a2 - May 8, 2010

Hi guys I am New To this Form

I wanted to hack my your freedom account as an Premium user
Can Any One Post Me a Detailed Working method

I Love WEB But my Bills Shoot up like a skyRocket
So i turned to your freedom
But It Takes almost 30 seconds for a googel search That too Restricted For One Hour
If this Time my Bill Shoots Up My Father Is going to KICK Me out of my House

Please Help...
God Bless You All
[email protected]


* - thegun - Aug 4, 2010

Sup man i've managed 2 upload the script to site.biz/code.php nw hw do i put it on the yf cgi-relay coz it has 2 spaces 1 is server ,2 is url plz help


* - seyola9 - Nov 28, 2010

pls d link for the php code is broken


* - ghostknight - Mar 1, 2011

plz for the writer
show us the methods in images easily
that I dnt know where i put the file in YF
thanks with best wishes :D


* - undyinglove - Dec 11, 2012

hi i have problem with editing first line of the code.... when i upload it, it always says: "You have an error in your SQL syntax"
Please help me..


* - hyorinmaru1 - Sep 10, 2013

i don't understand this step:*Step 7) You are done! People will now connect through your server and you will start getting points. Spend them in the Incentives --> Statement area when you have collected enough.

There we go, free, simple, quick premium accounts. Use as many free hosts as you like.

If you do decide to try this, please use my link when making a account on YourFreedom.com.