From 6b09bee47dbac7572dadb9b68d2e77206ccfbc12 Mon Sep 17 00:00:00 2001 From: polaris Date: Sat, 19 Apr 2014 07:10:53 -0400 Subject: [PATCH] Removed unnecessary files These files were replaced by Toad King's NAS server. Proxy nas.nintendowifi.net and naswii.nintendowifi.net to 127.0.0.1:9000 from now on. Instructions will go up on the wiki later for how to proxy the addresses with Apache. --- www/nas.nintendowifi.net/public_html/ac | 155 -------------------- www/naswii.nintendowifi.net/public_html/ac | 159 --------------------- 2 files changed, 314 deletions(-) delete mode 100644 www/nas.nintendowifi.net/public_html/ac delete mode 100644 www/naswii.nintendowifi.net/public_html/ac diff --git a/www/nas.nintendowifi.net/public_html/ac b/www/nas.nintendowifi.net/public_html/ac deleted file mode 100644 index 16f05f7..0000000 --- a/www/nas.nintendowifi.net/public_html/ac +++ /dev/null @@ -1,155 +0,0 @@ - $value) -{ - $str .= parse($key, $value); - - if(//$key == "action" || - $key == "gsbrcd" || - //$key == "sdkver" || - $key == "userid" || - $key == "passwd" || - $key == "bssid" || - //$key == "apinfo" || - $key == "gamecd" || - //$key == "makercd" || - //$key == "unitcd" || - //$key == "macadr" || - //$key == "lang" || - $key == "birth" || - //$key == "devtime" || - $key == "devname" || - $key == "ingamesn") - { - $authkey .= $key . "\\" . frombase64($value) . "|"; - } - - if($key == "action") - { - $action = frombase64($value); - } -} -$str .= "\r\n"; - -// Gets are not a part of the spec, but they allow for easy testing without having to POST every time -$str .= "GET:\r\n"; -foreach ($_GET as $key => $value) -{ - $str .= parse($key, $value); - - if(//$key == "action" || - $key == "gsbrcd" || - //$key == "sdkver" || - $key == "userid" || - $key == "passwd" || - $key == "bssid" || - //$key == "apinfo" || - $key == "gamecd" || - //$key == "makercd" || - //$key == "unitcd" || - //$key == "macadr" || - //$key == "lang" || - $key == "birth" || - //$key == "devtime" || - $key == "devname" || - $key == "ingamesn") - { - $authkey .= $key . "\\" . frombase64($value) . "|"; - } - - if($key == "action") - { - $action = frombase64($value); - } -} -$str .= "\r\n"; -$str .= "\r\n"; -$str .= "\r\n"; - -// Write data gotten from POST/GET so we can view it later more easily -fwrite($file, $str); -fclose($file); - -$now = getdate(); -$time = sprintf("%04d%02d%02d%02d%02d%02d", $now['year'], $now['mon'], $now['mday'], $now['hours'], $now['minutes'], $now['seconds']); -$time = base64_encode($time); -$time = str_replace("=", "*", $time); -$retry = tobase64("0"); - -if($action == "login") -{ - $returncd = tobase64("001"); - $challenge_key = gen_random_str(8); - $challenge = tobase64($challenge_key); - $locator = tobase64("gamespy.com"); - - $authkey .= "challenge\\" . $challenge_key; - - // Encode the information we need to handle logins on the gamespy server. - // This informaiton is not the same as the real server would return, but we don't need to maintain - // interoperability with the real server, so we can ignore that detail. - $token = tobase64("NDS" . base64_encode($authkey)); - - echo "challenge=" . $challenge . "&locator=" . $locator . "&retry=" . $retry . "&returncd=" . $returncd . "&token=" . $token . "&datetime=" . $time; -} -else if($action = "acctcreate") -{ - $returncd = tobase64("002"); - echo "retry=" . $retry . "&returncd=" . $returncd . "&datetime=" . $time; -} -?> \ No newline at end of file diff --git a/www/naswii.nintendowifi.net/public_html/ac b/www/naswii.nintendowifi.net/public_html/ac deleted file mode 100644 index d963837..0000000 --- a/www/naswii.nintendowifi.net/public_html/ac +++ /dev/null @@ -1,159 +0,0 @@ - $value) -{ - $str .= parse($key, $value); - - if(//$key == "action" || - $key == "gsbrcd" || - //$key == "sdkver" || - $key == "userid" || - $key == "passwd" || - //$key == "bssid" || - //$key == "apinfo" || - $key == "gamecd" || - //$key == "makercd" || - //$key == "unitcd" || - $key == "macadr" || - //$key == "lang" || - $key == "birth" || - //$key == "devtime" || - $key == "devname" || - $key == "ingamesn" || - $key == "csnum" || - $key == "cfc") - { - $authkey .= $key . "\\" . frombase64($value) . "|"; - } - - if($key == "action") - { - $action = frombase64($value); - } -} -$str .= "\r\n"; - -// Gets are not a part of the spec, but they allow for easy testing without having to POST every time -$str .= "GET:\r\n"; -foreach ($_GET as $key => $value) -{ - $str .= parse($key, $value); - - if(//$key == "action" || - $key == "gsbrcd" || - //$key == "sdkver" || - $key == "userid" || - $key == "passwd" || - //$key == "bssid" || - //$key == "apinfo" || - $key == "gamecd" || - //$key == "makercd" || - //$key == "unitcd" || - $key == "macadr" || - //$key == "lang" || - $key == "birth" || - //$key == "devtime" || - $key == "devname" || - $key == "ingamesn" || - $key == "csnum" || - $key == "cfc") - { - $authkey .= $key . "\\" . frombase64($value) . "|"; - } - - if($key == "action") - { - $action = frombase64($value); - } -} -$str .= "\r\n"; -$str .= "\r\n"; -$str .= "\r\n"; - -// Write data gotten from POST/GET so we can view it later more easily -fwrite($file, $str); -fclose($file); - -$now = getdate(); -$time = sprintf("%04d%02d%02d%02d%02d%02d", $now['year'], $now['mon'], $now['mday'], $now['hours'], $now['minutes'], $now['seconds']); -$time = base64_encode($time); -$time = str_replace("=", "*", $time); -$retry = tobase64("0"); - -if($action == "login") -{ - $returncd = tobase64("001"); - $challenge_key = gen_random_str(8); - $challenge = tobase64($challenge_key); - $locator = tobase64("gamespy.com"); - - $authkey .= "challenge\\" . $challenge_key; - - // Encode the information we need to handle logins on the gamespy server. - // This informaiton is not the same as the real server would return, but we don't need to maintain - // interoperability with the real server, so we can ignore that detail. - $token = tobase64("NDS" . base64_encode($authkey)); - - echo "challenge=" . $challenge . "&locator=" . $locator . "&retry=" . $retry . "&returncd=" . $returncd . "&token=" . $token . "&datetime=" . $time; -} -else if($action = "acctcreate") -{ - $returncd = tobase64("002"); - echo "retry=" . $retry . "&returncd=" . $returncd . "&datetime=" . $time; -} -?> \ No newline at end of file