Today I'm going to update my progress on WEP Cracking: The Game. Unfortunately, life and learning C++ has gotten in the way, so I haven't made much progress on the game. Despite this, there has been at least a little progress.
First, I'll explain the progress I've made. Then, I'll post my source code so far.
So far I have the beginning output that explains what the game is and gives the player its first instructions. After receiving that instruction, the player is asked to "download" a copy of Backtrack Linux. If they type "download" correctly, a download is simulated. After that, the player is tasked with burning the copy of Backtrack Linux and inserting the burned CD. The simulation for the first task runs at the same speed as the download, but the disc insertion simulation is faster.
After that, the last command of booting the Live CD is outputted. Unfortunately, that's only as far as I have gone. I also only have commands for successful execution of the instructions, not for unsuccessful executions.
It's still a work in progress, but I plan on working on the game this week and updating on the progress here each day this week.
Source Code:
#include <iostream>#include <ctime>#include <string>#include <windows.h>
using namespace std;
int main(){string cInstall;cout << "Welcome to WEP Cracking: The Game. The goal of WEP Cracking: The Game is to teach computer users how to test the strength of their network security. Playing this game from start to finish will give you all of the information you need to attempt to crack the password on your own router." << endl;cout << "Let's begin" << endl;cout << "First, download a copy of BackTrack Linux by typing DOWNLOAD" <<endl;getline (cin, cInstall);cin >> cInstall;if((cInstall == "download") || (cInstall == "DOWNLOAD") || (cInstall == "Download")){cout << "Beginning download" << endl;cout << "1 2 3 4 5" << endl;Sleep(150);cout << "6 7 8 9 10" << endl;Sleep(150);cout << "11 12 13 14 15" << endl;Sleep(150);cout << "16 17 18 19 20" << endl;Sleep(150);cout << "21 22 23 24 25" << endl;Sleep(150);cout << "26 27 28 29 30" << endl;Sleep(150);cout << "31 32 33 34 35" << endl;Sleep(150);cout << "36 37 38 39 40" << endl;Sleep(150);cout << "41 42 43 44 45" << endl;Sleep(150);cout << "46 47 48 49 50" << endl;Sleep(150);cout << "51 52 53 54 55" << endl;Sleep(150);cout << "56 57 58 59 60" << endl;Sleep(150);cout << "61 62 63 64 65" << endl;Sleep(150);cout << "66 67 68 69 70" << endl;Sleep(150);cout << "71 72 73 74 75" << endl;Sleep(150);cout << "76 77 78 79 80" << endl;Sleep(150);cout << "81 82 83 84 85" << endl;Sleep(150);cout << "86 87 88 89 90" << endl;Sleep(150);cout << "91 92 93 94 95" << endl;Sleep(150);cout << "96 97 98 99" << endl;Sleep(150);cout << "100%" << endl;Sleep(150);cout << "Download complete." << endl;cout << "Next, we have to burn our BackTrack Linux ISO to a disc." << endl;Sleep(100);cout << "Type BURN to burn a disc" << endl;string sBurn;cin >> sBurn;if((sBurn == "burn") || (sBurn == "BURN") || (sBurn == "Burn")){cout << "Beginning disc burn" << endl;cout << "1 2 3 4 5" << endl;Sleep(150);cout << "6 7 8 9 10" << endl;Sleep(150);cout << "11 12 13 14 15" << endl;Sleep(150);cout << "16 17 18 19 20" << endl;Sleep(150);cout << "21 22 23 24 25" << endl;Sleep(150);cout << "26 27 28 29 30" << endl;Sleep(150);cout << "31 32 33 34 35" << endl;Sleep(150);cout << "36 37 38 39 40" << endl;Sleep(150);cout << "41 42 43 44 45" << endl;Sleep(150);cout << "46 47 48 49 50" << endl;Sleep(150);cout << "51 52 53 54 55" << endl;Sleep(150);cout << "56 57 58 59 60" << endl;Sleep(150);cout << "61 62 63 64 65" << endl;Sleep(150);cout << "66 67 68 69 70" << endl;Sleep(150);cout << "71 72 73 74 75" << endl;Sleep(150);cout << "76 77 78 79 80" << endl;Sleep(150);cout << "81 82 83 84 85" << endl;Sleep(150);cout << "86 87 88 89 90" << endl;Sleep(150);cout << "91 92 93 94 95" << endl;Sleep(150);cout << "96 97 98 99" << endl;Sleep(150);cout << "100%" << endl;Sleep(150);cout << "Burn complete." << endl;Sleep(350);cout << "Disc being inserted" << endl;cout << "1 2 3 4 5" << endl;Sleep(50);cout << "6 7 8 9 10" << endl;Sleep(50);cout << "11 12 13 14 15" << endl;Sleep(50);cout << "16 17 18 19 20" << endl;Sleep(50);cout << "21 22 23 24 25" << endl;Sleep(50);cout << "26 27 28 29 30" << endl;Sleep(50);cout << "31 32 33 34 35" << endl;Sleep(50);cout << "36 37 38 39 40" << endl;Sleep(50);cout << "41 42 43 44 45" << endl;Sleep(50);cout << "46 47 48 49 50" << endl;Sleep(50);cout << "51 52 53 54 55" << endl;Sleep(50);cout << "56 57 58 59 60" << endl;Sleep(50);cout << "61 62 63 64 65" << endl;Sleep(50);cout << "66 67 68 69 70" << endl;Sleep(50);cout << "71 72 73 74 75" << endl;Sleep(50);cout << "76 77 78 79 80" << endl;Sleep(50);cout << "81 82 83 84 85" << endl;Sleep(50);cout << "86 87 88 89 90" << endl;Sleep(50);cout << "91 92 93 94 95" << endl;Sleep(50);cout << "96 97 98 99" << endl;Sleep(50);cout << "100%" << endl;Sleep(50);cout << "Download complete." << endl;Sleep(150);}else{cout << "Please type BURN" << endl;}system("pause");return 0;}else{cout << "Please type DOWNLOAD" << endl;}}
14 comments:
I love backtrack :)! Thanks for the post!
nice also I heard a lot good things about backtrack but isn't it another ubuntu copy?
I lost the game now. Thanks a lot. At the code, I'll take your word for it. Sounds like you have made progress though, and that is always great! If anything coding quickly shows you results.
@ pool fool, yeah but it got tons of 'network tools' on it.
good luck, seems like you are making a progress
sounds pretty awesome man! good luck!
William Shakespeare | Poetry Network
I see you are still using that sleep code, gonna use that until you are 100 percent complete?
sounds pretty cool. I can't wait till i make something like this
It is very helpfull for me.
If you're including windows.h it should be the FIRST thing you include, believe me it will bitch and moan and spit out 10,000 errors if it isn't.
Well, most of the time anyway.
Learning to use loops will avoid having to write a lot of that stuff. Specifically a "for" loop.
this is a crazy idea for a blog, and believe it or not its actually helping me very much caus im in the middle of developing a game also
Good stuff so far.
Post a Comment