Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: exploiting root

  1. #11
    Junior Member
    Join Date
    Sep 2003
    Posts
    28
    Emacs is another good editing tool.
    [glowpurple]www.openbsd.org - Unix for the practical paranoid[/glowpurple]

  2. #12
    Developer Extraordinar
    Join Date
    Jul 2002
    Location
    On the IRC
    Posts
    572
    So...let's recap:

    (Type) vi [filename]
    (To edit file - press) i
    (To stop editting) ESC
    (To Save and quit) :wq!
    (In the shell, give permissions) chmod 755 [filename]
    (Assuming you had !/bin/bash, run) ./[filename]
    (If not) bash [filename
    Don't forget to compile it if you need to. ;-)

    As MsM said
    gcc filename.c -o filename
    then
    ./filename

    MB

  3. #13
    AntiOnline Senior Member souleman's Avatar
    Join Date
    Oct 2001
    Location
    Flint, MI
    Posts
    2,883
    MB> Its a shell script, no need to compile

    parz> yeah, you got it
    \"Ignorance is bliss....
    but only for your enemy\"
    -- souleman

  4. #14
    Junior Member
    Join Date
    Dec 2003
    Posts
    9
    Yes - I recommend everyone learns how to use emacs (or rather, becomes familiar with it - there are so many add-on libraries and such that mastering it can take a while). I prefer to use vi, mostly because I am logged in via ssh, and depending on my client, I have to reset my keys (for meta, ^[letter], etc). Besides that - if you know how to use vi, you seem to automatically receive a badge of honor - "Ohh...HE uses Vi....wow...." - of course, the effect varies - most experienced sysadmins know that vi is both powerful and fairly easy to use, given time.
    There are 10 kinds of people in this world: those who understand binary, and those who don\'t.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •