Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


Closed Thread
  Search this Thread
Old 12-01-2010, 08:15 PM   #1
Rahil Parikh
LQ Newbie
Registered: Nov 2010
Posts: 15

Rep: Reputation: 0
Privilege Escalation - Getting 'root' privilege


Currently as a part of an assignment I need to implement a reverse shell on a linux system. The system details are -

Linux Kernal Version - 2.6
Database - MySQL
Using web-server I could upload a php file which could execute the command on behalf of me. Now, I want to get root access so that I can get access to system's core files.

My sample php file -

PHP Code:
if((!empty($_GET['cmd']) && isSet($_GET['cmd'])))
exec('whoami').'@'.exec('hostname').':'.exec('pwd').'$'.' '.$_GET['cmd'];
Old 12-01-2010, 09:25 PM   #2
John VV
LQ Muse
Registered: Aug 2005
Posts: 15,656

Rep: Reputation: Disabled
please read the forum rules and then
Old 12-02-2010, 02:04 AM   #3
Registered: May 2001
Posts: 28,898
Blog Entries: 55

Rep: Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356
Per the LQ Rules, please do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and Google searches) and we'll do our best to help. Also, keep in mind that your instructor might also be an LQ member.

More importantly though any posts containing information about cracking or any topic that could be damaging to either or any third party are a violation of the LQ Rules.

Thread closed.

Closed Thread

privileges, reverse, root, shell

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: This week at LWN: A privilege escalation flaw in udev LXer Syndicated Linux News 0 05-05-2009 09:31 PM
Intel CPU Privilege Escalation Exploit H_TeXMeX_H Linux - Security 4 04-22-2009 04:57 PM
CVE-2008-0009/0010/0600 (Linux Privilege Escalation Vulnerabilities) jayjwa Linux - Security 14 02-21-2008 07:50 AM
Linux Privilege Escalation The.Hammer.911 Linux - Security 1 05-10-2007 07:07 PM
LXer: Postgresql Privilege Escalation and Denial of Service ... LXer Syndicated Linux News 0 02-16-2006 03:01 AM

All times are GMT -5. The time now is 08:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration