This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:adahmane:portfolio:ka1 [2013/12/14 16:29] – adahmane | user:adahmane:portfolio:ka1 [2013/12/14 16:30] (current) – adahmane | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | Anthony Dahmane | ||
+ | UNIX Knowledge Assessment #1 | ||
+ | |||
+ | 0x0: | ||
+ | |||
+ | 752 | ||
+ | 261 | ||
+ | 563 | ||
+ | 012 | ||
+ | 536 | ||
+ | 664 | ||
+ | |||
+ | 0x1: | ||
+ | |||
+ | 15+1 | ||
+ | |||
+ | < | ||
+ | |||
+ | $((${val1}+${val2})) | ||
+ | |||
+ | </ | ||
+ | |||
+ | 156 | ||
+ | 16 | ||
+ | |||
+ | 0x2: | ||
+ | |||
+ | I typed the following to copy ka1.mp3 to my home directory... | ||
+ | |||
+ | cp / | ||
+ | |||
+ | To discover what type of file ka1.mp3 is, I typed... | ||
+ | |||
+ | file ka1.mp3 | ||
+ | |||
+ | Which told me... | ||
+ | |||
+ | ka1.mp3: POSIX tar archive (GNU) | ||
+ | |||
+ | So, using tar, I extracted the file within by typing... | ||
+ | |||
+ | tar -xf ka1.mp3 | ||
+ | |||
+ | And got the file lvl300.mudkip.gen3.dat.gz which I used gzip to extract... | ||
+ | |||
+ | gzip -d lvl300.mudkip.gen3.dat.gz | ||
+ | |||
+ | Which gave me the file lvl300.mudkip.gen3.dat which I wasn't sure what to do with. Running the " | ||
+ | |||
+ | unzip lvl300.mudkip.gen3.dat | ||
+ | |||
+ | And now I have a folder called " | ||
+ | |||
+ | 0x3: | ||
+ | |||
+ | Some of this was slightly answered above but I can answer again! The files are listed below along with their " | ||
+ | |||
+ | brute: Bourne-Again shell script text executable | ||
+ | genhash.c: ASCII C program text | ||
+ | hashfile: ASCII text | ||
+ | match: Bourne-Again shell script text executable | ||
+ | process: Bourne-Again shell script text executable | ||
+ | |||
+ | I can cat all of these files, don' | ||
+ | |||
+ | 0x4: | ||
+ | |||
+ | To compile the .c file, type the following: | ||
+ | |||
+ | gcc genhash.c -o genhash | ||
+ | |||
+ | To run it: | ||
+ | |||
+ | ./genhash | ||
+ | |||
+ | This program generates encrypted text from the user input. |