Hi guys.
I'm here to go for level 7 now lets get it start but i apologize u all that i posted this very late but now lets rock:
Level 7
this level says:
This time Network Security sam has saved the unencrypted level7 password in an obscurely named file saved in this very directory.
In other unrelated news, Sam has set up a script that returns the output from the UNIX cal command. Here is the script:
![635698476633497294.jpg](https://assets.content.technologyadvice.com/635698476633497294_ae38e4d2f8.webp)
Linux Basics
for this level we should know basic command of Linux if you dont know i suggest you to go for these:
https://en.wikipedia.org/wiki/List_of_Unix_commands
https://null-byte.wonderhowto.com/how-to/linux-basics/
you can use any of them but i used 2nd link to learn and 1st link to view the table.
Main Mission
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"):
Lets Tell It Clearly:
see the pic:
![635698484602561108.jpg](https://assets.content.technologyadvice.com/635698484602561108_79c1c4a09c.webp)
I typed ''2015'' as a year it will show me 2015 year as you see below:
![635698485595842014.jpg](https://assets.content.technologyadvice.com/635698485595842014_3845a5c3f7.webp)
it show us this because of "cal" command
now see this one:
![635698487103811200.jpg](https://assets.content.technologyadvice.com/635698487103811200_949f9d7604.webp)
i have typed "&& Is" instead of "2015" it wont show me the year it show me this:
![635698489405997537.jpg](https://assets.content.technologyadvice.com/635698489405997537_c21b4f0f5f.webp)
if you see highlighted text and 3 others it means you did right now it's time to copy highlighted text and paste it in the end of the URL instead of "cal.pl"
you see a string that is the pass we want go back to the level 7 page and enter it to the pass input-box you should see this
![635698491272092253.jpg](https://assets.content.technologyadvice.com/635698491272092253_d0a5f19fe3.webp)
Extras
You may ask what are 3 others that I said lets explain it:
cal.pl
this is the page that i attached the pic here it is:
![635698494959746404.jpg](https://assets.content.technologyadvice.com/635698494959746404_3ad02e44f4.webp)
index.php
it's the main page which you enter the pas or && Is
level7.php
The correct file is cal.pl - this file exists for consistency purposes and is NOT part of the mission.
it will show you that
In My Next Post
in near future i will tell you about mission 8 remember that for level 8 to 11 you should know Linux basics which OTW told everything about it in this link
Comments
No Comments Exist
Be the first, drop a comment!