#include #include #include #include #include using namespace std; inline void cls(){ system("cls"); SetConsoleTitle ("Root Challenge"); system("color 1"); } inline void flood(){ int x; for (x = 0; x < 4000; x++){ cout<<"01234010391810201948101938491019383574574330162310"; } Sleep(1000); } inline void sleep(){ Sleep(1000); } int main(int argc, char *argv[]) { string login = ""; string command = ""; string shell = "turnofftheradio"; string command1 = ""; string command2 = ""; string command3 = ""; string command4 = ""; string command5 = ""; string command6 = ""; string message = "6"; string shell0 = "trappedinthecloset"; string shell11 = "trappedinthecloset112"; string shell4 = "youwon"; string skip = ""; string exit = ""; int x; cls(); flood(); cls(); cout<<"\n"; cout<<"\n"; cout<<"\n"; cout<<"\n"; cout<<"\n"; cout<<"\n"; cout<<"\n"; cout<<"$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\n"; cout<<" Welcome to kiyoura's root mission of hacking and learning\n"; cout<<" Please do not take snippets of this code what so ever\n"; cout<<" Please do not report this program to called (police)\n"; cout<<" I am not reponsible for what ever you do from this program\n"; cout<<" This program is copyright of Kiyoura,HBH,HTS,C++, 2006\n"; cout<<" I thank you for taking your time doing my challenge\n"; cout<<" If you need help IM me or email me, im useally in hts/hbh irc.\n"; cout<<" Also i DID NOT take any code from any other program\n"; cout<<" Allthough i am using the theme of the first root, i am not taking code!\n"; cout<<" If your ready, Wait.... the OS will start in a few seconds...\n"; cout<<" (While in shell, use no spaces with any command!)\n"; cout<<"\n$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\n"; cout<<"Kiyoura@gmail.com\n"; Sleep(22000); cls(); cout<<"Booting kernal for *localhost*......"; Sleep(5000); cls(); cout<<"OS *linux~windows* now has a partition in your box.....\n"; Sleep(5000); cls(); cout<<"Starting OS.....*version xp~Ubuntu*\n"; Sleep(5000); cout<<"YOU HAVE A MESSAGE!\n"; do { shell1: cout<<"localhost@haxor~$: "; cin>> command; if (command == "help"){ cout<<"Use the cmd command for list of all commands...\n"; } else if (command == "cmd"){ cout<<"msg\nmission\nnslookup\ntelnet\nftp\nobj\nobjcom\nskip\nobjcode\ncls\nexit\nportscan\n***\nmission complete\nhelp\nhint\nstart\n"; } else if (command == "msg"){ cout<<"Welcome to your new installed OS, please try and get use to your shell\n"; cout<<"My name is Leo, i was recently part of the matrix....\n"; cout<<"I hear you are a great hacker....this OS is a fusion of windows and linux\n"; cout<<"You will have 3 objectives, 1 mission in all...\n"; cout<<"Please use the mission command to get mission...\n"; cout<<"Please use the objcom to complete objectives (syntax = objcom (objcode) (answer)\n(Use parenthesis and when using things with syntax help(objcode) use no spaces!)\n"; cout<<"This OS is in drive Z:\ remember that...\n"; } else if (command == "mission"){ cout<<"In this mission you must do 3 objectives...\n"; cout<<"After each objective you will be given a code....\n"; cout<<"This code can be used to skip objectives and to answer and ask for help\n"; cout<<"First objective.... find dns then get ip...\n"; cout<<"Please give use the IP of the person...\n"; cout<<"Second objective telnet/ftp to the hacker's server, then get password.\n"; cout<<"We have found a hacker in are logs... we have sent them to your %systemroot%\n"; cout<<"In last objective, you must learn C++ and ****** *** ** ** ********* **\n"; } else if (command == "nslookup"){ string nslookup = ""; cout<<"Please enter ip: "; cin>> nslookup; if (nslookup == "johnny.usa.dc.xxx"){ cout<<"565.545.22.8\n"; } else { system(("nslookup "+nslookup).c_str()); Sleep(3000); cls(); goto shell1; } } else if (command == "telnet"){ cout<<"Cannot be used till second objective\n"; } else if (command == "ftp"){ cout<<"Cannot be used till second objective\n"; } else if (command == "obj"){ cout<<"In your first objective you must get dns\n"; cout<<"This man name is Johnny Shadow he is a hacker\n"; cout<<"He lives in the Unites states in DC\n"; } else if (command == "skip"){ cout<<"Please enter objective code: "; cin>> skip; if (skip == "h4xhor"){ // need to code shell3 cls(); goto shell5; } else if (skip == "tmetalrules"){ //this is shell 1 ^_^ cls(); goto shell1; } else if (skip == "systemkillsall"){ //need to code shell2 cls(); goto shell2; } else { cout<<"Incorrect objective code\n"; } } else if (command == "objcode"){ cout<<"tmetalrules\n"; } else if (command == "objcom"){ cout<<"Invalid Syntax\n"; } else if (command == "objcom(tmetalrules)(565.545.22.8)"){ cout<<"OBJECTIVE 1 COMPLETE!!!\n"; //after this i need to code shell2 and shell3 Sleep(3000); goto shell2; } else if (command == "cls"){ cls(); } else if (command == "exit"){ cout<<"Are you sure?[y/n]: "; cin>> exit; if (exit == "y"){ cout<<"Ok Good bye\n"; sleep(); return 0; } else { cout<<"Please choose y or n\n"; } } else if (command == "portscan"){ cout<<"Cannot be used till second objective\n"; } else if (command == "missioncomplete"){ cout<<"pfff like your done on the first obj ^_^\n"; } else if (command == "***"){ cout<<"lol...\n"; } else if (command == "help(tmetalrules)"){ cout<<"hmm... where he lives his ip goes by his name, then where he lives.... with a extra ext.\n"; cout<<"On the news the other day there was a report of porno sites being turned to a *** ext.\n"; } else if (command == "hint"){ cout<<"hmm he lives in the united states in dc\n"; } else if (command == "start"){ cout<<"Cannot be used till second objective\n"; } else{ cout<<"Version xp~Ubuntu 1.4354345 [i345] INVALID BASH/BATCH\n"; } } while (command != shell); shell2: cls(); cout<<"No Messages!\n"; sleep(); do{ cout<<"localhost@haxor~$: "; cin>> command1; if (command1 == "help"){ cout<<"cmd dosent tell ALL the commands in this objective\n"; } else if (command1 == "cmd"){ cout<<"msg\nmission\nnslookup\ntelnet\nftp\nobj\nobjcom\nskip\nobjcode\ncls\nexit\nportscan\n***\nmission complete\nhelp\nhint\nstart\n"; } else if (command1 == "msg"){ cout<<"No message!\n"; } else if (command1 == "mission"){ cout<<"In this mission you must do 3 objectives...\n"; cout<<"After each objective you will be given a code....\n"; cout<<"This code can be used to skip objectives and to answer and ask for help\n"; cout<<"First objective.... find dns then get ip...\n"; cout<<"Please give use the IP of the person...\n"; cout<<"Second objective telnet/ftp to the hacker's server, then get password.\n"; cout<<"We have found a hacker in are logs... we have sent them to your %systemroot%\n"; cout<<"In last objective, you must learn C++ and ****** *** ** ** ********* **\n"; } else if (command1 == "nslookup"){ cout<<"Not needed in this objective\n"; } else if (command1 == "telnet"){ cls(); string telnet = ""; string telnetport = ""; cout<<"IP\host and port: "; cin>> telnet; if (telnet == "56.88.997.4521"){ cls(); sleep(); cout<<"Connecting to host.......\n"; Sleep(3000); goto shell3; } else { cout<<"Server dosent exist!!!\n"; } } else if (command1 == "ftp"){ string ftp = ""; cout<<"ftp server?: "; cin>> ftp; if (ftp == "56.88.997.45"){ cls(); sleep(); cout<<"Connecting to host.......\n"; Sleep(3000); goto shell3; } else cout<<"INVALID SERVER!\n"; } else if (command1 == "obj"){ cout<<"Ok we have his ip 565.545.22.8, but his son ip is diffrent\n(the son is the hacker)\n"; cout<<"His name is Timmy shadow, he is a 1337 hacker.\n"; cout<<"He tryed to hack use....we need for you to get him by connecting to him\n"; cout<<"The log file is in your %systemroot% folder, retrive it.\n"; cout<<"Then connect to him and retrive his password, then format him.\n"; } else if (command1 == "cd/"){ cout<<"Invalid folder/file\n"; } else if (command1 == "cd/%systemroot%"){ cout<<"To go back to root the command is cd//\n"; sleep(); do{ cout<<"localhost@haxor/%systemroot%~$: "; cin>>command2; if (command2 == "help"){ cout<<"INVALID COMMAND!!!!!\n(cmd does not show all commands..)\n"; } else if (command2 == "cmd"){ cout<<"***\nhint\nhelp\ncls\ncd//\ncmd\n"; } else if (command2 == "hint"){ cout<<"Xp~Ubuntu, The password is 010001010101010101011010010101\nhmm the file has a ext.\n"; //encrpyt } else if (command2 == "cd//"){ cls(); sleep(); goto shell2; } else if (command2 == "cat"){ cout<<"No file to view....\n"; } else if (command2 == "dir"){ cout<<"SYSTEM.INI\nlogs.txt\nZ:/\n/etc/pass**/\n"; } else if (command2 == "cat(logs.txt)"){ string password = ""; cout<<"Please enter admin password!: "; cin>> password; if (password == "agcpimpall"){ cout<<"56.88.997.45\n"; } else { cout<<"Invalid password\n"; } } }while (command2 != shell); } else if (command1 == "cls"){ cls(); } else if (command1== "skip"){ cout<<"Please enter objective code: "; cin>> skip; if (skip == "h4xhor"){ // need to code shell4 cls(); goto shell5; } else if (skip == "tmetalrules"){ //this is shell 1 ^_^ cls(); goto shell1; } else if (skip == "systemkillsall"){ //need to code shell2 cls(); goto shell2; } else { cout<<"Incorrect objective code\n"; } } else if (command1 == "objcom"){ cout<<"Invalid Syntax!\n"; } else if (command1 == "objcom(systemkillsall)(hackerforlife)"){ cls(); cout<<"OBJECTIVE 2 COMPLETE!!!\n"; Sleep(2000); goto shell5; } //after code shell3 tell it to go here.. else if (command1 == "portscan"){ string portscan = ""; cout<<"Please enter IP/host: "; cin>> portscan; if (portscan == "56.88.997.45"){ cout<<"21\n778\n66566\n4555\n899\n56\n65\n50\n80\n39\n139\n"; } else { cout<<"NO SUCH SERVER!\n"; } } else if (command1 == "exit"){ string exit1 = ""; cout<<"Are you sure?: "; cin>> exit1; if (exit1 == "yes"){ cout<<"Ok...Good bye!\n"; return 0; } else { cout<<"Ok\n"; } } else if (command1 == "missioncomplete"){ cout<<"Cmon stop cheating man!\n"; } else if (command1 == "***"){ cout<<"NOOB, you really think that *** is a command XD\n"; } else if (command1 == "objcode"){ cout<<"systemkillsall\n"; } else if (command1 == "hint"){ cout<<"No hint in this objective...\n"; } else { cout<<"Version xp~Ubuntu 1.4354345 [i345] INVALID BASH/BATCH\n"; } }while (command1 != shell); shell3: do{ cout<<"ftp://Jimmy.ftp.OS~$: "; cin>> command3; if (command3 == "help"){ cout<<"password is 00101010101010101010!\n"; //encrpyt } else if (command3 == "cmd"){ cout<<"dir\ncmd\nupload\nrm\nlogin\nexit\n"; } else if (command3 == "exit"){ cout<<"ok\n"; Sleep(1000); goto shell2; } else if (command3 == "login"){ string password1 = ""; cout<<"password?: "; cin>> password1; if (password1 == "jimmyisgay"){ cout<<"CORRECT!!\n"; cls(); goto shell4; } else { cout<<"NOT LOGED IN!!!\n"; } } else { cout<<"Invalid Command\n"; } }while (command3 != shell); do{ shell4: cout<<"ftp://Jimmy.ftp.OS~$: "; cin>> command4; if (command4 == "cmd"){ cout<<"dir\ncmd\nupload\nrm\nexit\n"; } else if (command4 == "upload"){ cout<<"Not needed...\n"; } else if (command4 == "dir"){ cout<<"/etc/\n"; } else if (command4 == "start(/etc/passwd)"){ cout<<"hackerforlife\n"; cout<<"MSG!~format now~!MSG\n"; } else if (command4 == "rm"){ cout<<"INVALID!\n"; } else if (command4 == "rm-rf"){ cout<<"FTP FORMMATED! returning to shell.....\n"; Sleep(3000); goto shell2; } else { cout<<"Invalid Command\n"; } }while (command4 != shell); shell5: cout<<"~WARNING WARNING INVALID SHELL WARNING SHELL MUST TERMINATE~!\n"; sleep(); do{ cout<<"localhost@haxor~$: "; cin>> command5; if (command5 == "help"){ cout<<"WARNING WARNING MUST TERMINATE SHELL!\n"; } else if (command5 == "obj"){ cout<<"WARNING WRONG SHELL!\n"; } else if (command5 == "objcode"){ cout<<"WARNING (h4xhor) WARNING~!\n"; } else if (command5 == "help(h4xhor)"){ cout<<"shell0 == 01010101011011011010101010110110\n do{\ncout<<'localhost@haxor~$: '\n while(command6 != shell0)\n"; //encrpyt to md5 } else { cout<<"INVALID SERVER WARNING WARNING WARNING! MUST TERMINATE!\n"; } }while (command5 != shell0); cls(); cout<<"YOU HAVE A MESSAGE!\n"; sleep(); do{ shell6: cout<<"localhost@haxor~$: "; cin>> command6; if (command6 == "cmd"){ cout<<"missioncomplete\nhelp\ncmd\nexit\nobj\nobjcode\nmsg\n"; } else if (command6 == "msg"){ cout<<"Wow your allmost done.... Hurry up and finsh!\n"; } else if (command6 == "missioncomplete"){ cout<<"^_^ INVALID SYNTAX!\n"; } else if (command6 == "help"){ cout<<"No help in this objective!\n"; } else if (command6 == "help(cheeseis1337)"){ cout<<"010101010101010101010101010101011011010101010\n01010101011011010101010101101110101\n011011010101101101101101101010101\n01010110110110101010110110101010101\n"; } // encrpyt to tell hint to password.... else if (command6 == "obj"){ cout<<"decrpyt...\n"; } else if (command6 == "objcode"){ cout<<"cheeseis1337\n"; } else if (command6 == "exit"){ string exit000 = ""; cout<<"Are you sure?: "; cin>> exit000; if (exit000 == "yes"){ cout<<"Ok Good Bye\n"; sleep(); return 0; } else { cout<<"Ok lets continue~~\n"; } } else if (command6 == "missioncomplete01qw76nnmr90a"){ cls(); flood(); sleep(); cls(); cout<<"MISSION COMPLETE! CHECK FOLDER TO SEE FILE FOR PASSWORD!\n"; ofstream myfile; myfile.open ("password.txt"); myfile<< "hex password here"; //encrpyt myfile.close(); Sleep(3000); cls(); cout<<"THANKS FOR PLAYING AND REMEMBER KIYOURA PWN'S ALL!!!!!!!!\n"; Sleep(2000); cls(); cout<<"main programmer: kiyoura\n\n"; sleep(); cout<<"VERSION: Root Challenge 1.0\n\n"; sleep(); cout<<"idea of theme: system_meltdown\n\n"; sleep(); cout<<"Teacher of C++ and reasan for learning: T_Metal_RISEN!\n\n"; sleep(); cout<<"Copyright of Jahan aka kiyoura aka (lol you guys know ^_^)\n\n"; sleep(); cout<<"learning computers.... : 1998 - 2006\n\n"; Sleep(5000); cls(); cout<<"MY HEART GOES OUT TO WWW.HELLBOUNDHACKERS.ORG AND WWW.HACKTHISSITE.ORG FOR LIFE\n\nPROUD MEMBER FOR 3 YEARS!!!!!!!!!\n"; Sleep(5000); flood(); return 0; } else { cout<<"Version xp~Ubuntu 1.4354345 [i345] INVALID BASH/BATCH\n"; } }while (command6 != shell); }