Hack This Site Basic 7

THIS BLOG HAS A NEW HOME WITH SOLUTIONS TO MORE HTS MISSIONS.

Hello and welcome to the solution of the 7th basic mission of HTS, this one is fairly easy if you have already used Linux (which I highly recommend over windows or mac), since the key to achieve this mission relays on your knowledge of basic UNIX commands and also on combining commands.

Now back to our mission, in this one, network security Sam practices security through the ignorance of hackers. as for protecting his password, he has hidden it in a script with an obscure file name, but in “unrelated” news he has made a script that returns the output of the Linux command “cal“, and what this command does, is that it displays a simple calendar. This is where combining commands comes in handy.

Indeed, by appending the combining command “&&” and the UNIX command “ls” we can do a full listing of the current directory, this is the output that I got (after entering “&& ls”):

About Nacereddine

I'm 20 yo, a programmer & a web developer, Interested in computers, networks & all tech related domains
This entry was posted in HackThisSite and tagged , , , , , . Bookmark the permalink.

One Response to Hack This Site Basic 7

  1. dhruv says:

    Why do we use && before ls

Comments are closed.