Adventures in Game Development -- Day 13

As promised, here is how the content of yesterday's blog will be implemented into WEP Cracking: The Game.


 cin >> iSelection;
                 
                 if (iSelection == 1)
                 {
                    cout << "BackTrack Linux is starting." << endl;
                    cout << "Starting up__" << endl;
                    Sleep(500);
                    cout << endl;
                    cout << "sd 2:0:0:0: [sda] Assuming drive cache: write through." << endl;
                    cout << "sd 2:0:0:0: [sda] Assuming drive cache: write through." << endl;
                    Sleep(600);
                    cout << "Loading, please wait..." << endl;
                    Sleep(800);
                    cout << "Setting preliminary keymap...";
                    Sleep(50);
                    cout << "done" << endl;
                    cout << "Setting the system clock." << endl;
                    cout << "Starting basic networking...done." << endl;
                    cout << "Starting kernel event manager...done." << endl;
                    cout << "Loading hardware drivers...done." << endl;
                    Sleep(400);
                    cout << endl;
                    cout << endl;
                    cout << ". " << endl;
                    cout << "Setting the system clock." << endl;
                    cout << "Loading kernel modules...Loading manual drivers...done." << endl;
                    Sleep(400);
                    cout << "Setting kernel variables (/etc/sysct1.conf)...done" << endl;
                    cout << "Setting kernel variables(/etc/sysct1.d/10-console-messages.conf)...done." << endl;
                    cout << "Setting kernel variables(/etc/sysct1.d/10-network-security.conf)...done." << endl;
                    cout << "Setting kernel variables(/etc/sysct1.d/10-process-security.conf)...done." << endl;
                    cout << "Setting kernel variables(/etc/sysct1.d/wine.sysct1.conf)...done." << endl;
                    cout << "Starting early crypto disks...done." << endl;
                    cout << "Starting remaining crypto disks..." << endl;
                    Sleep(50);
                    cout << "done." << endl;
                    cout << "Checking file systems..." << endl;
                    Sleep(50);
                    cout << "fsck 1.41.3 done." << endl;
                    cout << "Mounting local filesystems...done." << endl;
                    cout << "Activating swapfile swap...done." << endl;
                    cout << "Skipping firewall: wfw(not enabled)...done." << endl;
                    cout << "Setting up console font and keymap..." << endl;
                    Sleep(50);
                    cout << "done." << endl;
                    cout << "Loading cpufreq kernel modules..." << endl;
                    Sleep(50);
                    cout << "done." << endl;
                    cout << "Loading ACPI modules..." << endl;
                    cout << "Starting ACPI services..." << endl;
                    cout << "Starting system log daemon..." << endl;
                    cout << "Doing Wacon setup..." << endl;
                    cout << "Starting kernel log daemon..." << endl;
                    Sleep(100);
                    cout << "done." << endl;
                    cout << "Starting system message bus: dbus." << endl;
                    cout << "CPUFreq Utilities: Setting ondemand CPUFreq governor...disabled, governor not available...done." << endl;
                    Sleep(200);
                    cout << "xserver-xorg postinst warning: overwriting possibly-customized configuration" << endl;
                    cout << "             file: backup in /etc/X11/xorg.conf.200911261994438" << endl;    
                    Sleep(50);
                    cout << "Starting Hardware abstraction layer: held" << endl;
                    cout << "Starting System Tools Backends: system-tools-backends." << endl;
                    Sleep(50);
                    cout << "Starting periodic command scheduler: crond." << endl;
                    Sleep(50);
                    cout << endl;
                    cout << "Backtrack 4 Penetration Testing and Auditing Distribution" << endl;
                    cout << endl;
                    cout << "Type 'startx' (without quotations)" << endl;
                                        
                    long istartx;
                    cin >> istartx;
                    if(istartx == 'STARTX' || istartx == 'startx')
                               cout << "root9bt:~# " << istartx << endl;
                               cout << endl;
                               cout << "X: warning: process set to priority -1 instead of requested priority 0" << endl;
                               Sleep(25);
                               cout << "X.Org X Server 1.5.2" << endl;
                               cout << "Release Date:10 October 2008" << endl;
                               cout << "X Protocol Version 11, Revision 0" << endl;
                               cout << "Build Operating System: Linux 2.6.24-19-server i686 Ubuntu" << endl;
                               cout << "Current Operating System: Linux bt 2.6.29.4 #3 SMP Mon May 25 18:50:05 EDT 2009 i686" << endl;
                               cout << "Build Date: 09 March 2009  10:48:54AM" << endl;
                               cout << "xorg-server Z:1.5.Z-Zubuntu3.1 (builddProthera.buildd)" << endl;
                               cout << "            Build reporting problems, check http://wiki.x.org" << endl;
                               cout << "            to make sure that you have the latest version" << endl;
                               Sleep(50);
                               cout << "Module loader present" << endl;
                               cout << "Markers: (--) probed, (**) from config file, (xx) default setting," << endl;
                               cout << "         (++) from command line, (!!) notice, (II) informational," << endl;
                               cout << "         (ww) warning, (EE) error, (N1) not implemented, (??) unkown." << endl;
                               cout << "(==) Log file: '/var/log/Xorg.0.log', Time: Thu Mov 26 19:44:47 2009" << endl;
                               cout << "(==) Using config file: '/etc/X11/xorg.conf'" << endl;
                               cout << endl;
                               cout << endl;
 
 else
                 {
                     cout << "GAME OVER: You made the wrong selection" << endl;
                     cout << "Press X to exit" << endl;
          
                     char letter = 'X';
                     cin >> letter;
                     cout << "Type 'X' (without quotations) to exit" << endl;
          
                     if (letter == 'X' || letter == 'x')
                        cout << "Exit" << endl;
                        Sleep(500);
             }

For those who aren't C++ programmers, I'll explain what this all means tomorrow.

6 comments:

Things on my wishlist said...

cracking WEP as a game, pretty cool concept. I remember messing around with BT years back trying to crack WEP before realizing my nic couldnt inject packets.

Xenototh said...

In a world where commentors wait until tomorrow to figure out what the hell is going on.. :P

Jesse Crows said...

cant wait to see the end product

Whitelight said...

Amazing!

supertwiks said...

i just tried this and yes it works

baka1236 said...

so much code o.0

Post a Comment