Návod na Hackerslab - level 2

Zdroj: SOOM.cz [ISSN 1804-7270]
Autor: Kub@z
Datum: 18.8.2004
Hodnocení/Hlasovalo: 1.5/2

Návod na další level této hry

Nápověda:

Kevin, a BBS programmer wants to add an alert on his homepage so that his
members can see his message every time they log in. Unfortunately, his
message is over a page long and his members cannot read the message. As a
result, he has been racking his brain night and day trying to come up with
a solution. Finally, he thought of using `more` command to solve this problem.
However, this method is risky for security reasons.
Using this, go on to the next level.
HINT: Nuff said!


Řešení:

Hledaný soubor je /usr/bin/alert. Když ho spustíte, zjistíte, že
se postupně vypisuje nějakej blábol pomocí more. Když si zobrazíte
man k more, zjistíte že je to založeno na technologii VI a že stejně
jako u Vi když stisknete "!" a napíšete příkaz, tak se spustí v SubShelu.
takže jednoduše uďeláme:

[level2@drill /dev]$ cd /usr/bin
[level2@drill /usr/bin]$ ./alert
(výpis nějakejch keců)
--More-- (stiskneme !)
!/bin/pass

A máme heslo :)