EvilZone

Hacking and Security => Hacking and Security => : Raavgo June 17, 2013, 12:41:36 AM

: Get Root in a Shell
: Raavgo 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

: Re: Get Root in a Shell
: proxx June 17, 2013, 06:43:56 AM
Check kernel version, look for a local root exploit, check architecture, compile it etc.

: Re: Get Root in a Shell
: s3my0n June 17, 2013, 09:26:45 AM
Lol, you hacked Eph's server? xD

On topic paste uname -a.

: Re: Get Root in a Shell
: Raavgo 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.
: Re: Get Root in a Shell
: xC June 19, 2013, 03:25:20 AM
http://grsecurity.net/~spender/exploits/ (http://grsecurity.net/~spender/exploits/)
: Re: Get Root in a Shell
: proxx 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.
: Re: Get Root in a Shell
: DarrenVortex 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/ (http://exploitsdownload.com/search/local%20root%202.6.27-7/)