Author Topic: Get Root in a Shell  (Read 2109 times)

0 Members and 1 Guest are viewing this topic.

Offline Raavgo

  • Peasant
  • *
  • Posts: 88
  • Cookies: 12
  • On my way from a n00b to a PRO
    • View Profile
Get Root in a Shell
« on: June 17, 2013, 12:41:36 am »
Hey guys :)

I SSHd into a restricted shell, lets call it "get-root.com" (Pseudonym)
I broke out of the restricted shell with the .bashrc file.
Now I have got problems getting root on this shell...
got some ideas to get root or to call a root shell?

have nice day
Raavgo


Offline proxx

  • Avatarception
  • Global Moderator
  • Titan
  • *
  • Posts: 2803
  • Cookies: 256
  • ФФФ
    • View Profile
Re: Get Root in a Shell
« Reply #1 on: June 17, 2013, 06:43:56 am »
Check kernel version, look for a local root exploit, check architecture, compile it etc.

Wtf where you thinking with that signature? - Phage.
This was another little experiment *evillaughter - Proxx.
Evilception... - Phage

Offline s3my0n

  • Knight
  • **
  • Posts: 276
  • Cookies: 58
    • View Profile
    • ::1
Re: Get Root in a Shell
« Reply #2 on: June 17, 2013, 09:26:45 am »
Lol, you hacked Eph's server? xD

On topic paste uname -a.

Easter egg in all *nix systems: E(){ E|E& };E

Offline Raavgo

  • Peasant
  • *
  • Posts: 88
  • Cookies: 12
  • On my way from a n00b to a PRO
    • View Profile
Re: Get Root in a Shell
« Reply #3 on: June 18, 2013, 11:49:37 pm »
Well I actually search for something without a exploit,
tricks like cp /bin/sh over a program called by cron.minutely or
how to inject some code in the bash.bashrc file.
Inject a code in a writable config file usw...
Something like this, its a war game there has to be a vulnerability.

If you still wanna know what Kernel it is: 2.6.27-15-generic

Staff note: There is a modify button, don't double post.
« Last Edit: June 19, 2013, 01:47:58 am by techb »

xC

  • Guest
Re: Get Root in a Shell
« Reply #4 on: June 19, 2013, 03:25:20 am »

Offline proxx

  • Avatarception
  • Global Moderator
  • Titan
  • *
  • Posts: 2803
  • Cookies: 256
  • ФФФ
    • View Profile
Re: Get Root in a Shell
« Reply #5 on: June 19, 2013, 06:32:40 am »
Well I actually search for something without a exploit,
tricks like cp /bin/sh over a program called by cron.minutely or
how to inject some code in the bash.bashrc file.
Inject a code in a writable config file usw...
Something like this, its a war game there has to be a vulnerability.

If you still wanna know what Kernel it is: 2.6.27-15-generic

Staff note: There is a modify button, don't double post.

Start with checking for any file with write permissions.
Wtf where you thinking with that signature? - Phage.
This was another little experiment *evillaughter - Proxx.
Evilception... - Phage

Offline DarrenVortex

  • /dev/null
  • *
  • Posts: 7
  • Cookies: 0
    • View Profile
Re: Get Root in a Shell
« Reply #6 on: June 29, 2013, 09:11:07 am »
I'm by now means an expert, but czech this out:
http://exploitsdownload.com/search/local%20root%202.6.27-7/