This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:dgirard3:portforlio:puzzle [2011/10/25 19:33] – [Procedure] dgirard3 | user:dgirard3:portforlio:puzzle [2011/10/25 20:02] (current) – [Reflection] dgirard3 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Project: | ||
+ | A project for CSCS1730 UNIX/Linux Fundamentals by Derek Girardi during the Fall 2011 semester. | ||
+ | |||
+ | This project was begun on 10/25/11 and is anticipated to take 1 day. | ||
+ | |||
+ | =====Objectives===== | ||
+ | To demonstrate understanding of tools through application of skills, observation, | ||
+ | |||
+ | =====Prerequisites===== | ||
+ | In order to successfully accomplish/ | ||
+ | |||
+ | * know how to use the command-line | ||
+ | * familiarity with using command-line arguments to alter default behaviors of commands | ||
+ | * know how to bring up and read a manual page | ||
+ | * familiarity with other resources that provide documentation or usage information | ||
+ | |||
+ | =====Background===== | ||
+ | For this project i attempting to see if i know how to use the tools i learned in an effective to navigate through files to find a hidden message. This is a puzzle box because hidden in files there is a secret message and i need to know how to archive, decompress files and text manipulate files to see what is inside. You must know how to use the command file, sed, cp, mv and many others. File allows you to see what kind of file it is, sed allows you to manipulate text through expressions and commands, cp and mv are simple copy and move commands. There is also a rev command that is implmented that is used far into the future box that will come handy. If you can master going through files, manipulateing them and using commands to push your way through, the puzzle box will be no problem to you. | ||
+ | =====Scope===== | ||
+ | To apply skills learned in unraveling the puzzle that isn't as it may seem. | ||
+ | |||
+ | Located in **/ | ||
+ | |||
+ | =====Attributes===== | ||
+ | State and justify the attributes you'd like to receive upon successful approval and completion of this project. | ||
+ | |||
+ | * commands: utilization of commands to accomplish the task | ||
+ | * files & directories: | ||
+ | * text processing: retrieve/ | ||
+ | * the UNIX shell: perform necessary command-line manipulations to accomplish the task at hand | ||
+ | |||
+ | =====Procedure===== | ||
+ | <cli> | ||
+ | lab46:~$ cd / | ||
+ | lab46:/ | ||
+ | courses.html | ||
+ | lab46:/ | ||
+ | ? | ||
+ | CIFªBb^qyj^IE~' | ||
+ | | ||
+ | | ||
+ | ¿iïO[" | ||
+ | | ||
+ | FÁ(£`Q0 | ||
+ | FÁ(£`Q0 | ||
+ | FÁ(£`Q0 | ||
+ | FÁ(£`Q0 | ||
+ | F: | ||
+ | lab46:/ | ||
+ | lab46:/ | ||
+ | No manual entry for html | ||
+ | lab46:/ | ||
+ | total 4 | ||
+ | -rw-r--r-- 1 wedge unix 681 Oct 19 19:20 courses.html | ||
+ | lab46:/ | ||
+ | courses.html: | ||
+ | lab46:/ | ||
+ | lab46:/ | ||
+ | gzip: courses.html: | ||
+ | lab46:/ | ||
+ | mv: cannot move `courses.html' | ||
+ | lab46:/ | ||
+ | lab46:/ | ||
+ | lab46:~$ ls | ||
+ | Harchives.tar.bz2 | ||
+ | Maildir | ||
+ | a.out bin courses.html | ||
+ | addscr.sh | ||
+ | archive1.tar.gz | ||
+ | archive2.zip | ||
+ | lab46:~$ mv courses.html courses.gz | ||
+ | lab46:~$ gzip -d courses.gz | ||
+ | lab46:~$ ls | ||
+ | Harchives.tar.bz2 | ||
+ | Maildir | ||
+ | a.out bin courses | ||
+ | addscr.sh | ||
+ | archive1.tar.gz | ||
+ | archive2.zip | ||
+ | lab46:~$ cat courses | ||
+ | lyrics.mp30000644000177400017500000000125511647655460011637 0ustar | ||
+ | VS?the answer.txt/ | ||
+ | üèPNS? | ||
+ | üè½RKNÃP | ||
+ | Üç, | ||
+ | | ||
+ | | ||
+ | | ||
+ | -OíKu~A¯tâÚã1$Ç[h | ||
+ | ÚëÈÖ7^á¯ÊqäiáómÙ`J~vy[juYµ5òÙÓI# | ||
+ | | ||
+ | VS?íAthe answer.txt/ | ||
+ | | ||
+ | | ||
+ | lab46:~$ file courses | ||
+ | courses: POSIX tar archive (GNU) | ||
+ | lab46:~$ ta -zxvf courses | ||
+ | -bash: ta: command not found | ||
+ | lab46:~$ mv courses courses.tar | ||
+ | lab46:~$ ta -zxvf courses.tar | ||
+ | -bash: ta: command not found | ||
+ | lab46:~$ tar -zxvf courses.tar | ||
+ | |||
+ | gzip: stdin: not in gzip format | ||
+ | tar: Child returned status 1 | ||
+ | tar: Error is not recoverable: | ||
+ | lab46:~$ mv courses.tar courses.tar.gz | ||
+ | lab46:~$ tar -zxvf courses.tar.gz | ||
+ | |||
+ | gzip: stdin: not in gzip format | ||
+ | tar: Child returned status 1 | ||
+ | tar: Error is not recoverable: | ||
+ | lab46:~$ mv courses.tar.gz courses | ||
+ | lab46:~$ man tar | ||
+ | lab46:~$ tar -x courses | ||
+ | lab46:~$ tar -t courses | ||
+ | lab46:~$ ls | ||
+ | Harchives.tar.bz2 | ||
+ | Maildir | ||
+ | a.out bin courses | ||
+ | addscr.sh | ||
+ | archive1.tar.gz | ||
+ | archive2.zip | ||
+ | lab46:~$ file courses | ||
+ | courses: POSIX tar archive (GNU) | ||
+ | lab46:~$ tar -xvf courses | ||
+ | lyrics.mp3 | ||
+ | lab46:~$ file lyrics.mp3 | ||
+ | lyrics.mp3: Zip archive data, at least v1.0 to extract | ||
+ | lab46:~$ unzip lyrics.mp3 | ||
+ | Archive: | ||
+ | | ||
+ | inflating: the answer.txt/ | ||
+ | lab46:~$ ls | ||
+ | Harchives.tar.bz2 | ||
+ | Maildir | ||
+ | a.out bin courses | ||
+ | addscr.sh | ||
+ | archive1.tar.gz | ||
+ | archive2.zip | ||
+ | lab46:~$ the answer.txt | ||
+ | -bash: the: command not found | ||
+ | lab46:~$ cd the answer.txt | ||
+ | -bash: cd: the: No such file or directory | ||
+ | lab46:~$ file the answer.txt | ||
+ | the: ERROR: cannot open `the' (No such file or directory) | ||
+ | answer.txt: ERROR: cannot open `answer.txt' | ||
+ | lab46:~$ cat the answer.txt | ||
+ | cat: the: No such file or directory | ||
+ | cat: answer.txt: No such file or directory | ||
+ | lab46:~$ mv the answer.txt theanswer.txt | ||
+ | mv: target `theanswer.txt' | ||
+ | lab46:~$ cat 'the answer.txt' | ||
+ | cat: the answer.txt: Is a directory | ||
+ | lab46:~$ cd 'the answer.txt' | ||
+ | lab46:~/the answer.txt$ ls | ||
+ | logout | ||
+ | lab46:~/the answer.txt$ cat logout | ||
+ | *^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^ | ||
+ | *^, | ||
+ | *^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^ | ||
+ | r^u^o^y^, | ||
+ | h^s^i^n^i^f^, | ||
+ | .^)^o^i^l^o^f^t^r^o^p^, | ||
+ | o^t^, | ||
+ | .^m^r^o^f^, | ||
+ | *^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^ | ||
+ | r^e^v^(^1^)^%^i^s^%^a^%^n^i^f^t^y^%^c^o^m^m^a^n^d^.^ | ||
+ | lab46:~/the answer.txt$ ./logout | ||
+ | ./logout: line 1: *^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^: | ||
+ | ./logout: line 5: *^, | ||
+ | *^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^ | ||
+ | r^u^o^y^, | ||
+ | h^s^i^n^i^f^, | ||
+ | ./logout: line 6: syntax error near unexpected token `)' | ||
+ | ./logout: line 6: `.^)^o^i^l^o^f^t^r^o^p^, | ||
+ | lab46:~/the answer.txt$ file logout | ||
+ | logout: ASCII text | ||
+ | lab46:~/the answer.txt$ man | ||
+ | What manual page do you want? | ||
+ | lab46:~/the answer.txt$ man sed | ||
+ | lab46:~/the answer.txt$ sed ^ logout | ||
+ | sed: -e expression #1, char 1: unknown command: `^' | ||
+ | lab46:~/the answer.txt$ sed ' | ||
+ | sed: -e expression #1, char 1: unknown command: `^' | ||
+ | lab46:~/the answer.txt$ sed ^' logout | ||
+ | > | ||
+ | > ^C | ||
+ | lab46:~/the answer.txt$ sed ' | ||
+ | lab46:~/the answer.txt$ sed ^' logout | ||
+ | ^C | ||
+ | lab46:~/the answer.txt$ sed " | ||
+ | sed: -e expression #1, char 1: unknown command: `^' | ||
+ | lab46:~/the answer.txt$ cat logout | sed ^ | ||
+ | sed: -e expression #1, char 1: unknown command: `^' | ||
+ | lab46:~/the answer.txt$ cd | ||
+ | lab46:~$ ls | ||
+ | Harchives.tar.bz2 | ||
+ | Maildir | ||
+ | a.out bin courses | ||
+ | addscr.sh | ||
+ | archive1.tar.gz | ||
+ | archive2.zip | ||
+ | |||
+ | |||
+ | lab46:~/the answer.txt$ cat logout | sed ' | ||
+ | ******************************************************* | ||
+ | *, | ||
+ | ******************************************************* | ||
+ | ruoy, | ||
+ | hsinif, | ||
+ | .)oiloftrop, | ||
+ | ot, | ||
+ | .mrof, | ||
+ | ******************************************************* | ||
+ | rev(1)%is%a%nifty%command. | ||
+ | lab46:~/the answer.txt$ man rev | ||
+ | lab46:~/the answer.txt$ cat logout | sed ' | ||
+ | ^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^* | ||
+ | ^*^, | ||
+ | ^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^* | ||
+ | ^, | ||
+ | ^, | ||
+ | ^, | ||
+ | ^, | ||
+ | ^, | ||
+ | ^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^* | ||
+ | ^.^d^n^a^m^m^o^c^%^y^t^f^i^n^%^a^%^s^i^%^)^1^(^v^e^r | ||
+ | lab46:~/the answer.txt$ cat logout | rev | sed ' | ||
+ | ******************************************************* | ||
+ | * Congratulations! You've figured out the puzzlebox! * | ||
+ | ******************************************************* | ||
+ | All you have to do now is e-mail this file to your | ||
+ | instructor' | ||
+ | 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:~/the answer.txt$ cat logout | rev | sed ' | ||
+ | lab46:~/the answer.txt$ cd | ||
+ | lab46:~$ ls | ||
+ | Harchives.tar.bz2 | ||
+ | Maildir | ||
+ | Puzzlewin | ||
+ | a.out bin | ||
+ | addscr.sh | ||
+ | archive1.tar.gz | ||
+ | </ | ||
+ | |||
+ | First step i went to the directory to where the file " | ||
+ | Second i used the file command to see what kind of file it was, it happened to be a gzip file. Then in orderto change it ( i had to change the extension to gz to decompress it or extract the contents in anyway) i moved it into my home directory so i had permissions to mess with it. | ||
+ | then when i decompressed it it turned into " | ||
+ | |||
+ | =====Reflection===== | ||
+ | It helped me reinforce that i knew how to use certain commands and decompress files files. Some of it confused for a little bit like when a gzip file had a different exetension but that wasnt hard to get around. All in all, it was a fairly easy project, as long as you know what you are doing. | ||
+ | =====References===== | ||
+ | In performing this project, the following resources were referenced: | ||
+ | |||
+ | * http:// | ||
+ | * http:// | ||
+ | |