Návod na Hackerslab - level 1

Zdroj: SOOM.cz [ISSN 1804-7270]
Autor: Kub@z
Datum: 17.8.2004
Hodnocení/Hlasovalo: 3/5

Pokud chcete udělat i první level, tak si přečtěte tento článek ;)...

Nápověda:

A computer student named Matthew is doing his C-programming homework.
His teacher wanted him to create a program/script that if he types
in a path name the program gives him what type of file/drectory it is.
He was able to get it easily by using the `file` utility in the
Unix-based commands. However, the flaw lies in this solution.
Use this flaw and go on to the next level. HINT-One of 12 books known as
the Minor prophets

Řešení:

Minor prophet znamená "menší prorok". Je to série knížek, ale to teď
vůbec není důležitý. Ten "menší prorok" je "amos", takže si najdeme
soubor amos. Je v /usr/bin.

A co teď s tim?

[level1@drill /dev]$ cd /usr/bin
[level1@drill /usr/bin]$ ./amos
path? / ; /bin/pass

A máme heslo do dalšíjo levelu (program zjsitil, že první
parametr je složka, a druhý spustil)