These labs where designed to help you understand and configure various CCNA security topics. This CCNA security lab contains 10 individual Packet Tracer activates. If(!decipheredFile.open(QIODevice::ReadWrite))Ĭout << "ERROR : Can't create the decphered file." << endl << "Program aborted." ĬipheredFileSize = fileToDecipher.size() Ĭout << "Size of the Packet Tracer file : " << cipheredFileSize << endl Ĭout << "Deciphering the file. If (!fileToDecipher.open(QIODevice::ReadOnly))Ĭout << "ERROR : Can't open the specified file." << endl << "Program aborted." pka protected file (their IDE is really nice and easy to use ^^).įtFileName(QString::fromStdString(fileName)) ĭtFileName(QString(QString::fromStdString(fileName)).prepend("deciphered_")) QT developed a customized IDE for QT development so i coded a little program to get the XML file from a.
Packet tracer activity password password#
This function uses qUncompress.Ġ0427773 FF15 A0FB8D01 CALL DWORD PTR DS:Īnd the new QByteArray returned is now the clear XML file of the practice ) and u can see all the responses ^^ You can also see the hashed password protecting the lab at the marker, it's a MD5 without salt. This new QByteArray is now uncompressed by the function call at 0x0040E696. Third, the program makes a XOR between the character extracted and the QByteArray size minus the position of the current character.Ġ040E65F FF15 A4FB8D01 CALL DWORD PTR DS:Ġ040E665 2B45 E4 SUB EAX,DWORD PTR SS:Īnd finally the result is wrote to a new QByteArray.Ġ040E67E FF15 B4FB8D01 CALL DWORD PTR DS: Second, on each iteration the program will get the character at the beginning of the QByteArray + offset of the loop.Ġ040E653 FF15 ACFB8D01 CALL DWORD PTR DS:[ (The loop will the QByteArray size times (for each character of the QByteArray)). In this function there is a loop from 0x0040E635 to 0x0040E684.įirst, this loop will first get the QByteArray size in memory:Ġ040E641 FF15 A4FB8D01 CALL DWORD PTR DS: Let's see how this function clears the file.
This function (at 0x0040E570) is used to clear the file in memory, to be readable by the program. The readAll function returns us a QByteArray with the content of our file.Ī pointer on this QByteArray is pushed at 0x0040E3E4 as argument to the function 0x0040E570.Ġ040E3E5 8B4D A8 MOV ECX,DWORD PTR SS:Ġ040E3EA 8B4D A8 MOV ECX,DWORD PTR SS:Ġ040E3ED 8B82 4C010000 MOV EAX,DWORD PTR DS: Some bytes further our pka file is red and closed by the readAll and close function (inherited from QIODevice).Ġ040E3CA FF15 C4FB8D01 CALL DWORD PTR DS:Ġ040E3D0 C645 FC 03 MOV BYTE PTR SS:,3Ġ040E3D7 FF15 0CFC8D01 CALL DWORD PTR DS: After putting some breakpoints on library file management functions, (if we look at the PT's directory we can see that is uses QT4 dlls see for file management under QT4), our pka file is open at (if we open it by the way of the "open - recent files")Ġ040E3B2 FF15 F4FB8D01 CALL DWORD PTR DS: I've spend quite a lot of time reversing PT but we will go straight to the point ^^. Launch PT (Packet Tracer) and attach Olly to it. (I'm using OllyDbg for the reversing/debugging that follows.) Let's look at how packet Tracer handles those files and see if we can get them clear without knowing the activity wizard password. If you try to open a *.pka file, you won't be able to read anything in clear. I'm using the version 5., so the described method might change in the future version.
Packet tracer activity password how to#
Well I'm gonna show you how to read those *.pka file, which contains the lab, cuz if you can read it you have all the responses =) and the corresponding grade ^^ =D You can create your graded lab (*.pka file), give it to your students and after a pre-defined time in the lab get it back and Packet Tracer will give you the grade of the student according to the configurations he made on lab's network, nice isn't it?
One the new function (I don't remember it when I used Packet Tracer, may be it already existed before ^^) is the activity wizard. I used Packet Tracer some years ago, and the new version has quite a few new functions. During those courses his students have to do some labs (configure router&switches, to apply the CCNA curriculum) using the rack we have or Packet Tracer (a tool from Cisco to simulate a Cisco network and train yourself, at configuring the devices). I have a friend who's teaching Network courses at our school.