A project for CSCS1730 UNIX/Linux Fundamentals by YOUR NAME OR GROUPMEMBER NAMES during the SEMESTER YEAR.
This project was begun on DATE and is anticipated to take X AMOUNT OF TIME. (Upon completion you can correct this with the actual length).
To demonstrate understanding of tools through application of skills, observation, and the ability to reference necessary documentation.
In order to successfully accomplish/perform this project, the listed resources/experiences need to be consulted/achieved:
The purpose of this project is to allow me to explore a file and figure out what it says. To do this I will have to use my knowlege of regex's and zipping to decode the special message.
To apply skills learned in unraveling the puzzle that isn't as it may seem.
Located in /var/public/unix/puzzlebox/ is a filed called courses.html … have at it.
State and justify the attributes you'd like to receive upon successful approval and completion of this project.
I copied the file. renamed it to the appropriate file type. The file type is found by using the command “file” and the the name of the file. After that i unzipped it using the appropriate type of zip command (gunzip,tar,zip). after unziping it i had to repeat this pattern except copying it until it was a text file and then i could cat it. I had to cat it, then pipe it to “sed” multiple times until i removed all the flaws. after that i had to reverse it and using rev and then redo the whole thing in one line and send it all to a file.
lab46:~$ cp /var/public/unix/puzzlebox/ -r puzzlebox lab46:~$ ls Maildir archives cake motd src tmp archive1.tar.gz archives.tar.bz2 closet public_html src.orig vitest archive2.zip archives.zip data puzzlebox testdir archivecompilationfile bin irc shellscripting testdir2 lab46:~$ cd puzzlebox lab46:~/puzzlebox$ ls courses.html lab46:~/puzzlebox$ mv -v courses.html courses.gz `courses.html' -> `courses.gz' lab46:~/puzzlebox$ ls courses.gz lab46:~/puzzlebox$ gunzip courses.gz lab46:~/puzzlebox$ ls courses lab46:~/puzzlebox$ cat courses lyrics.mp30000644000177400017500000000125511647655460011637 0ustar wedgelairPK VS?the answer.txt/UT ÓZNiVNux üèPNS?F£Oüthe answer.txt/logoutUT ÄZN±XNux üè½RKNÃP Üç,ª(TBB,Ø¡ÞB>mPúå¥-pzÆãD ²ûù?¶S¤ R"þÐáZüNè©pÀH>òÝÔ ÷hPË~ÆZ¶wçÌsèmÚ=TlQlºûfíNH ÷Éirñ@«ë3\èUÎbÏô;PºålI¯äÃß`"¼tÁW}^`øFã -OíKu~A¯tâÚã1$Ç[h W[AMg<qô62+¿f¤,è3GeU-î5ßÿ&s´=M(JYpOÊÃ?{O)ÓFlK ÚëÈÖ7^á¯Ê─ä␋áó└Ù◆J·┴≤[┘┤Yµ5òÙÓI#çπ §^üöì␉6│äÖVì%òóó#␊Å┤\N└- PK VS?íAthe answer.txt/UTÓZNux üèPNS?F£OüíIthe answer.txt/logoutUTÄZNux üèPK°çlab46:~/puzzlebox$ 1;2c1;2c1;2c^C lab46:~/puzzlebox$ ls courses lab46:~/puzzlebox$ file courses courses: POSIX tar archive (GNU) lab46:~/puzzlebox$ mv -v courses courses.tar `courses' -> `courses.tar' lab46:~/puzzlebox$ ls courses.tar lab46:~/puzzlebox$ tar -tf courses.tar lyrics.mp3 lab46:~/puzzlebox$ ls courses.tar lab46:~/puzzlebox$ file lyrics.mp3 lyrics.mp3: ERROR: cannot open `lyrics.mp3' (No such file or directory) lab46:~/puzzlebox$ ls courses.tar lab46:~/puzzlebox$ tar -xvf courses.tar lyrics.mp3 lab46:~/puzzlebox$ ls courses.tar lyrics.mp3 lab46:~/puzzlebox$ file lyrics.mp3 lyrics.mp3: Zip archive data, at least v1.0 to extract lab46:~/puzzlebox$ mv -v lyrics.mp3 lyrics.zip `lyrics.mp3' -> `lyrics.zip' lab46:~/puzzlebox$ ls courses.tar lyrics.zip lab46:~/puzzlebox$ unzip lyrics.zip Archive: lyrics.zip creating: the answer.txt/ inflating: the answer.txt/logout lab46:~/puzzlebox$ ls courses.tar lyrics.zip the answer.txt lab46:~/puzzlebox$ file the the: ERROR: cannot open `the' (No such file or directory) lab46:~/puzzlebox$ file the\ answer.txt/ the answer.txt/: directory lab46:~/puzzlebox$ cd the\ answer.txt/ lab46:~/puzzlebox/the answer.txt$ ls logout lab46:~/puzzlebox/the answer.txt$ file logout logout: ASCII text lab46:~/puzzlebox/the answer.txt$ cat logout *^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^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*^*^ r^e^v^(^1^)^%^i^s^%^a^%^n^i^f^t^y^%^c^o^m^m^a^n^d^.^ lab46:~/puzzlebox/the answer.txt$ cat logout| > ^C lab46:~/puzzlebox/the answer.txt$ cat logout|sed 's/\^//g' ******************************************************* *,!xobelzzup,eht,tuo,derugif,ev'uoY,!snoitalutargnoC,* ******************************************************* ruoy,ot,elif,siht,liam-e,si,won,od,ot,evah,uoy,llA,, hsinif,esruoc,fo,dna(,tnuocca,64bal,s'rotcurtsni,, .)oiloftrop,ruoy,no,tcejorp,ruoy,pu,gnitirw,, ot,desu,uoy,snoitatnacni,dna,sdnammoc,cificeps,eht,no,tropeR,:oslA,, .mrof,elbadaer,ylluf,ni,egassem,siht,niatbo,, ******************************************************* rev(1)%is%a%nifty%command. lab46:~/puzzlebox/the answer.txt$ cat logout|sed 's/\^//g'|sed 's/,/ /g' ******************************************************* * !xobelzzup eht tuo derugif ev'uoY !snoitalutargnoC * ******************************************************* ruoy ot elif siht liam-e si won od ot evah uoy llA hsinif esruoc fo dna( tnuocca 64bal s'rotcurtsni .)oiloftrop ruoy no tcejorp ruoy pu gnitirw ot desu uoy snoitatnacni dna sdnammoc cificeps eht no tropeR :oslA .mrof elbadaer ylluf ni egassem siht niatbo ******************************************************* rev(1)%is%a%nifty%command. lab46:~/puzzlebox/the answer.txt$ man rev lab46:~/puzzlebox/the answer.txt$ cat logout|sed 's/\^//g'|sed 's/,/ /g'|rev ******************************************************* * Congratulations! You've figured out the puzzlebox! * ******************************************************* All you have to do now is e-mail this file to your instructor's lab46 account (and of course finish writing up your project on your portfolio). Also: Report on the specific commands and incantations you used to obtain this message in fully readable form. ******************************************************* .dnammoc%ytfin%a%si%)1(ver lab46:~/puzzlebox/the answer.txt$ cat logout|sed 's/\^//g'|sed 's/,/ /g'|rev > puzzleboxanswer lab46:~/puzzlebox/the answer.txt$ ls logout puzzleboxanswer lab46:~/puzzlebox/the answer.txt$ cat puzzleboxanswer ******************************************************* * Congratulations! You've figured out the puzzlebox! * ******************************************************* All you have to do now is e-mail this file to your instructor's lab46 account (and of course finish writing up your project on your portfolio). Also: Report on the specific commands and incantations you used to obtain this message in fully readable form. ******************************************************* .dnammoc%ytfin%a%si%)1(ver lab46:~/puzzlebox/the answer.txt$ ls logout puzzleboxanswer lab46:~/puzzlebox/the answer.txt$ alpine Alpine finished -- Closed folder "INBOX". Kept all 23 messages. lab46:~/puzzlebox/the answer.txt$
This project was very fun but annoying because I kept forgetting to use the “file” command so I got very frustrated but Matt helped me out by dropping hints.
In performing this project, the following resources were referenced: