StudentShare
Contact Us
Sign In / Sign Up for FREE
Search
Go to advanced search...
Free

Week 3 Lab - Assignment Example

Cite this document
Summary
Now in the shell it is noticed that the readme file is in our home directory. We “cat” it to obtain the password. The only command was to “. /”…
Download full paper File format: .doc, available for editing
GRAB THE BEST PAPER98.2% of users find it useful
Week 3 Lab
Read Text Preview

Extract of sample "Week 3 Lab"

Week 3: Assignment Week 3: Assignment Level 0: In level 0 the goal is to login into the shell and read the next level (level 1) password from the file readme in the home directory. We Ssh to bandit0@bandit.labs.overthewire.org to enter the shell.12345bandit0@benedict (Linux / Unix Command: bash):~$ ls -lhtotal 4.0K-rw-r----- 1 bandit1 bandit0 33 Jun  6 13:59 readmebandit0@benedict:~$ cat readme********************************Level 1 The goal was to obtain the password from the file named “-“in the home directory and use the password for the next level.

Now in the shell it is noticed that the readme file is in our home directory. We “cat” it to obtain the password. The only command was to “. /” to the absolute path of the file.12345bandit1@benedict:~$ ls -lhtotal 4.0K-rw-r----- 1 bandit2 bandit1 33 Jun  6 13:59 -bandit1@benedict:~$ cat. /-********************************Level 2 The level’s goal was “the password for the next level is stored in a file called spaces in this filename located in the home directory.”12345bandit2@benedict:~$ ls -lhtotal 4.

0K-rw-r----- 1 bandit3 bandit2 33 Jun  6 13:59 spaces in this filenamebandit2@benedict:~$ cat ./spaces\ in\ this\ filename********************************Level 3 The goal for this level was to obtain the password for the next level stored in a hidden file in the inhere directory. 123456789101112bandit3@benedict:~$ ls -lhtotal 4.0Kdrwxr-xr-x 2 root 4.0K Jun  6 13:59 inherebandit3@benedict:~$ ls -lh inhere/total 0bandit3@benedict:~$ ls -lha inhere/total 12Kdrwxr-xr-x 2 root       4.0K Jun  6 13:59 .

drwxr-xr-x 3 root    root    4.0K Jun  6 13:59..-rw-r----- 1 bandit4 bandit3   33 Jun  6 13:59 .hiddenbandit3@benedict:~$ cat ./inhere/.hidden********************************Level 4 The goal for this level is to find the password for the next level in the only human readable file in the inhere directory. The challenge was difficult because all of the commands provided by the overthewire.org were not working. However the command “strings” works fine. It prints all the strings which are human readable.

The switch modifier “f” was used to print the name the file is taken from. 12345678910111213141516171819bandit4@benedict:~$ ls -lhtotal 4.0Kdrwxr-xr-x 2 root root 4.0K Jun  6 13:59 inherebandit4@benedict:~$ ls -lh inhere/total 40K-rw-r----- 1 bandit5 bandit4 33 Jun  6 13:59 -file00-rw-r----- 1 bandit5 bandit4 33 Jun  6 13:59 -file01-rw-r----- 1 bandit5 bandit4 33 Jun  6 13:59 -file02-rw-r----- 1 bandit5 bandit4 33 Jun  6 13:59 -file03-rw-r----- 1 bandit5 bandit4 33 Jun  6 13:59 -file04-rw-r----- 1 bandit5 bandit4 33 Jun  6 13:59 -file05-rw-r----- 1 bandit5 bandit4 33 Jun  6 13:59 -file06-rw-r----- 1 bandit5 bandit4 33 Jun  6 13:59 -file07-rw-r----- 1 bandit5 bandit4 33 Jun  6 13:59 -file08-rw-r----- 1 bandit5 bandit4 33 Jun  6 13:59 -file09inhere/-file04: RZ!

Ninhere/-file05: ?-p#inhere/-file07: ********************************inhere/-file08: "Q 2BLevel 5 The level’s goal is to find a human readable, 1033 byte sized, and unexcutable file in the inhere directory. Linux command “find” is used to find files with specific sizes and type. 1234567891011121314151617181920212223242526272829bandit5@benedict:~$ ls -lhtotal 4.0Kdrwxr-x--- 22 root bandit5 4.0K Jun  6 13:59 inherebandit5@benedict:~$ ls -lh inhere/total 80Kdrwxr-x--- 2 root bandit5 4.0K Jun  6 13:59 maybehere00drwxr-x--- 2 root bandit5 4.

0K Jun  6 13:59 maybehere01drwxr-x--- 2 root bandit5 4.0K Jun  6 13:59 maybehere02drwxr-x--- 2 root bandit5 4.0K Jun  6 13:59 maybehere03drwxr-x--- 2 root bandit5 4.0K Jun  6 13:59 maybehere04drwxr-x--- 2 root bandit5 4.0K Jun  6 13:59 maybehere05drwxr-x--- 2 root bandit5 4.0K Jun  6 13:59 maybehere06drwxr-x--- 2 root bandit5 4.0K Jun  6 13:59 maybehere07drwxr-x--- 2 root bandit5 4.0K Jun  6 13:59 maybehere08drwxr-x--- 2 root bandit5 4.0K Jun  6 13:59 maybehere09drwxr-x--- 2 root bandit5 4.

0K Jun  6 13:59 maybehere10drwxr-x--- 2 root bandit5 4.0K Jun  6 13:59 maybehere11drwxr-x--- 2 root bandit5 4.0K Jun  6 13:59 maybehere12drwxr-x--- 2 root bandit5 4.0K Jun  6 13:59 maybehere13drwxr-x--- 2 root bandit5 4.0K Jun  6 13:59 maybehere14drwxr-x--- 2 root bandit5 4.0K Jun  6 13:59 maybehere15drwxr-x--- 2 root bandit5 4.0K Jun  6 13:59 maybehere16drwxr-x--- 2 root bandit5 4.0K Jun  6 13:59 maybehere17drwxr-x--- 2 root bandit5 4.0K Jun  6 13:59 maybehere18drwxr-x--- 2 root bandit5 4.

0K Jun  6 13:59 maybehere19bandit5@benedict:~$ find. /* -size 1033c -readable! -perm /111./inhere/maybehere07/.file2bandit5@benedict:~$ cat ./inhere/maybehere07/.file2******************************** In conclusion, the exercise was worthwhile as it helped in practicing the theoretical knowledge acquired in class. The format string bug is an example. ReferenceLinux / Unix Command: bash. (n.d.). Retrieved from About.com: http://linux.about.com/library/cmd/blcmdl1_bash.htm

Read More
Cite this document
  • APA
  • MLA
  • CHICAGO
(“Week 3 Lab Assignment Example | Topics and Well Written Essays - 250 words”, n.d.)
Week 3 Lab Assignment Example | Topics and Well Written Essays - 250 words. Retrieved from https://studentshare.org/information-technology/1655820-week-3-lab
(Week 3 Lab Assignment Example | Topics and Well Written Essays - 250 Words)
Week 3 Lab Assignment Example | Topics and Well Written Essays - 250 Words. https://studentshare.org/information-technology/1655820-week-3-lab.
“Week 3 Lab Assignment Example | Topics and Well Written Essays - 250 Words”, n.d. https://studentshare.org/information-technology/1655820-week-3-lab.
  • Cited: 0 times

CHECK THESE SAMPLES OF Week 3 Lab

Lab work for an 8 week semester

Name: Professor: Course: Date: lab 3 report for Newton's Laws of motion First Law a) While accelerating a container that is filled with water on top of a table, the water inside the container moves at the same rate of acceleration.... The water inside the container has turbulence that is caused by the acceleration....
4 Pages (1000 words) Lab Report

Atomic Weight of Magnesium

It is easy to imagine… In this experiment, the validity of balanced equations was demonstrated by accurately predicting the molecular weight of Magnesium, supposedly a constant iLab, Week # 3 ATOMIC WEIGHT OF MAGNESIUM lab Introduction Balanced chemical equations can be used in predicting the results of combining premeasured reactants....
1 Pages (250 words) Lab Report

Life Cycle Nutrition

The first lab was to test the presence of glucose, Conclusion In Week Application, it was hypothesized that processed foods contribute to obesity among Americans.... The first lab was to test the presence of glucose, starch, protein, lipids, and Vitamin C in specific foods.... The second lab dealt with enzyme and lactose intolerance.... Results showed that the amount of processed foods is much… It is believed that the availability and convenience gained from this type of food greatly influences the food preference and consumption of Americans. In week 2, laboratory experiments were conducted....
1 Pages (250 words) Lab Report

Week 7 lab on human bones

Nasal bone: easy to locate by palpating interiorly in the orbit, and holding the nose with the thumb and index finger, the vertical groove of the junction of nasal bones is easier to palpate than the horizontal groove.... Easier in adults than… Hyoid bone: easy to locate by moving inferiorly on the neck from below the mandible....
3 Pages (750 words) Lab Report

Week 7 lab on human bones

Nasal bone: easy to locate by palpating interiorly in the orbit, and holding the nose with the thumb and index finger, the vertical groove of the junction of nasal bones is easier to palpate than the horizontal groove (Sinnatamby 387).... Easier in both subject 1 and 2 than in… Spinous processes: the relative ease of location and palpation increases from the cervical, to the thoracic and lumbar spine....
3 Pages (750 words) Lab Report

Acid-Base Equilibria

The final volume for NaOH was recorded on the data sheet. At equivalence point, enough base Vinegar Analysis lab Report By and Partner May 7, lab Objectives This laboratory experiment is conducted with the aimof achieving two objectives.... A burette was cleaned by rinsing with tap water....
1 Pages (250 words) Lab Report

Plastics Testing and Failure Analysis

This lab report "Plastics Testing and Failure Analysis" presents the obtained values and the observations made to the literal values using the plastic and elastomers identification chart provided the unknown samples were identified and summarized in the table below.... he lab session aimed at characterizing, testing, and identifying various plastics given that plastic properties are considerably different and are dependent on various factors like composition, thermal history, chemical structure, and manufacturing condition....
5 Pages (1250 words) Lab Report

Alkalinity in Natural Waters

This lab report "Alkalinity in Natural Waters" determines the quantity of alkalinity that a water sample contains as well as the chemical oxygen demand in a given water sample.... The experiment is also aimed at determining the biological oxygen demand in a given water sample.... hellip; The alkalinity of a water sample is defined as the capacity for solutes it contains to react with acid and neutralize it....
6 Pages (1500 words) Lab Report
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.
Contact Us