User Tools

Site Tools


blog:spring2016:asutton5:journal

This is an old revision of the document!


UNIX/Linux Fundamentals Journal

February 8, 2016

My dream job would be a professional hacker. I would love to get paid by companies and agencies to try to break into their systems to expose any vulnerabilities. Most likely this would be why I love shows like Person of Interest. This week’s assignment was interesting and exciting for me. I never thought about layers of compilation and encryption before. To be honest, I'm not even sure I realized it was even possible, at least not without errors or loss of integrity. But now I wonder if this is how security is actually handled. Multiple layers of encryption?

I probably made this week’s project more complicated than it needed to be. I did a file command on the riddle.html file. I saw that it was compressed with gzip so I looked at the manual for gzip and learned that guy zip was the command I needed. I ran the command and got an “unknown suffix” error message. This confused me because we just learned that extensions don't exist in UNIX, but I assumed that this had something to do with the error message. I renamed the file (mv) from riddle.html to riddle.gz. I reran the gunsight and it worked. Layer one down.

I continued this process of using the file command and extracting as necessary from the consecutive layers of encryption. When I got to the last layer, I first use the cat command to look at the file contents and caught the text BASE64 at the start of the file. So true to my nature, I googled it. I found a website, www.base64decode.org that will decode or encode ASCI text using Base64. I copied the text from the dinosaur_with_hats.mp4 file and pasted it into this sites decoder. That was the first time I realized I had gotten into the puzzle box. I was so excited. Then it was a little bit of a challenge to find the right command in Unix to do it the way it was SUPPOSED to be done. It may have been the long way to do things, but I learned a lot and had so much fun in the process.

I can’t wait to get further into this course. I am really looking forward to the problem solving aspect of it. Solving puzzles is one of my favorite things to do in my spare time.

February 1, 2016

Challenging doesn’t begin to describe this week. After a lot of google searching, a lot of man commands, and numerous typos, I think I finally got it. I have used zip files many times, and I did understand generally how they work. This week, however, I gained a much greater understanding of an archive. I guess before this week I was under the impression that an archived file was essentially the same thing as a compressed file. I have a much clearer understanding of the difference. The biggest challenge for me this week was understanding what the rev and tac commands do. I Googled them to look for examples and hopefully gain a much better understanding of how they work. The best examples I found were on thegeekstuff.com:

$ cat thegeekstuff.txt 1. Linux Sysadmin, Scripting etc., 2. Databases Oracle, mySQL etc., 3. Hardware 4. Security (Firewall, Network, Online Security etc) 5. Storage 6. Cool gadgets and websites 7. Productivity (Too many technologies to explore, not much time available) 8. Website Design 9. Software Development 10. Windows Sysadmin, reboot etc., 11. Adding 1's and 0's

$ tac thegeekstuff.txt 11. Adding 1's and 0's 10. Windows Sysadmin, reboot etc., 9. Software Development 8. Website Design 7. Productivity (Too many technologies to explore, not much time available) 6. Cool gadgets and websites 5. Storage 4. Security (Firewall, Network, Online Security etc) 3. Hardware 2. Databases Oracle, mySQL etc., 1. Linux Sysadmin, Scripting etc.,

$ rev thegeekstuff.txt ,.cte gnitpircS ,nimdasyS xuniL .1 ,.cte LQSym ,elcarO sesabataD .2 erawdraH .3 )cte ytiruceS enilnO ,krowteN ,llaweriF( ytiruceS .4 egarotS .5 setisbew dna stegdag looC .6 )elbaliava emit hcum ton ,erolpxe ot seigolonhcet ynam ooT( ytivitcudorP .7 ngiseD etisbeW .8 tnempoleveD erawtfoS .9 ,.cte toober ,nimdasyS swodniW .01 s'0 dna s'1 gniddA .11

This is very interesting, although I am still not sure that I understand where the rev command can be at all useful, I see where tac could be used to order log files, for example. And although I have never formally been diagnosed, this weeks project has me convinced I have aixelsyd, I mean dyslexia.

Another discovery I made inadvertently this week was that the dir command that I am used to using in DOS also appears to work in Unix. It does the same thing as the ls command without the color coding.

I also had some technical issues with one of my terminal sessions. I got an error that seemed to indicate an issue with some stopped processes and it would not let me “exit” the session. So I tried using the kill command which I remembered from my so-long-ago Unix days, but I fumbled through it and in the end I am not even sure that my “playing” with that command is what eventually resolved the issue.

January 27, 2016

Well, this first week has been quite a roller coaster. I have used Unix before. My first job in this are was as a Marketing Assistant. While working in that job, I slowly migrated to the position of Unix System Administrator. I was quite proficient in the basics of Unix, but alas, this was about 28 years ago. Staring out this week, much of the material does look familiar and it is coming back quite easily. However, I have been quickly realizing the VERY basics is about all I remember, so the rest of this course should be interesting.

One of the biggest challenges for me is going to be wrapping my head around the statement I read in the text: “One of the wonderful things about UNIX….Practically everything on the UNIX filesystem is a file. A directory, then, is a file that contains the locations of other files.” WHAT?? Coming from a very heavy DOS background, this does not compute. I am really hoping the reprogramming on this one isn't going to be painful. =S

blog/spring2016/asutton5/journal.1454960304.txt.gz · Last modified: 2016/02/08 19:38 by asutton5