Zpět na seznam článků     Číst komentáře (0)     Verze pro tisk

Návod na Hackerslab - level 2

Autor: Kub@z   
18.8.2004

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 :)

Líbil se Vám článek?
Budeme potěšeni, pokud vás zaujme také reklamní nabídka

Social Bookmarking

     





Hodnocení/Hlasovalo: 1.5/2

1  2  3  4  5    
(známkování jako ve škole)