Waraxe IT Security Portal
Login or Register
December 22, 2024
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 125
Members: 0
Total: 125
Full disclosure
CyberDanube Security Research 20241219-0 | Authenticated Remote Code Execution in Ewon Flexy 205
Stored XSS with Filter Bypass - blogenginev3.3.8
[SYSS-2024-085]: Broadcom CA Client Automation - Improper Privilege Management (CWE-269)
[KIS-2024-07] GFI Kerio Control <= 9.4.5 Multiple HTTP Response Splitting Vulnerabilities
RansomLordNG - anti-ransomware exploit tool
APPLE-SA-12-11-2024-9 Safari 18.2
APPLE-SA-12-11-2024-8 visionOS 2.2
APPLE-SA-12-11-2024-7 tvOS 18.2
APPLE-SA-12-11-2024-6 watchOS 11.2
APPLE-SA-12-11-2024-5 macOS Ventura 13.7.2
APPLE-SA-12-11-2024-4 macOS Sonoma 14.7.2
APPLE-SA-12-11-2024-3 macOS Sequoia 15.2
APPLE-SA-12-11-2024-2 iPadOS 17.7.3
APPLE-SA-12-11-2024-1 iOS 18.2 and iPadOS 18.2
SEC Consult SA-20241211-0 :: Reflected Cross-Site Scripting in Numerix License Server Administration System Login
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Shell commands injection -> etc/passwd - now what?
Post new topicReply to topic View previous topic :: View next topic
etc/passwd - now what?
PostPosted: Wed Jun 20, 2007 12:10 pm Reply with quote
blaxenet
Active user
Active user
Joined: Jun 20, 2007
Posts: 26




Hi Guys,

I have gotten myself onto a server that has /etc/passwd viewable, just wondering what my next step would be.

I've never quite understood this,
Fair enough you can upload a php shell such as C99 or R57.

You can have a fiddle around providing the permissions are set in your favour, go through config files and connect to the D/B's with the passwords.

But is there anything deeper?
Hence why I have asked what's next from /etc/passwd

Thanks everyone Smile

BlaxeNet

(I am learning how this works!)
View user's profile Send private message Send e-mail Yahoo Messenger
PostPosted: Wed Jun 20, 2007 4:13 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




If you have allready php scripting level and operating system shell level acces to server, then next try to find out operating system and kernel versions and then look for local root exploits. So next you upload that exploit's source code to server and will compile it, or upload allready precompiled exploit. Ultimate goal is to gain root access to server and install backdoor(s). And when you are root, then you can read "etc/shadow" file, so you have changes to crack root password - just for fun. Now, when you have "r00ted" that server, then you can install sniffer and spy network traffic on LAN. If the webserver is connected directly to corporative internal network, then you have possibilities to compromise lots of other computers, rip internal databases etc. But if webserver is located in DMZ, then this needs more work.

This was just one scenario. Rooting is considered as serious cybercrime, so I suggest to stay to low-privileges level Smile
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Wed Jun 20, 2007 4:46 pm Reply with quote
pexli
Valuable expert
Valuable expert
Joined: May 24, 2007
Posts: 665
Location: Bulgaria




waraxe wrote:
Rooting is considered as serious cybercrime, so I suggest to stay to low-privileges level Smile


Good idea Laughing Laughing Laughing Laughing
View user's profile Send private message
PostPosted: Fri Jun 22, 2007 8:23 am Reply with quote
blaxenet
Active user
Active user
Joined: Jun 20, 2007
Posts: 26




Hi Waraxe,

The system (Server 1) I was looking at doesn't have etc/shadow but rather a file called etc/master.passwd so I am presuming this is what I am looking for.

Needless to say, another system (Server 2) I was 'on' last night has etc/shadow so i'll have the chance to 'play' around a bit.

Just a quick rundown for you all-

**Server 1**
Software: Apache/2.2.2 (FreeBSD) mod_ssl/2.2.2 OpenSSL/0.9.7e-p1 DAV/2 PHP/4.4.2

**Server 2**
Software: Apache/2.2.2 (Fedora). PHP/5.1.6

On both of these I have the user 'www' access.

I'm not lazy so i'll do some research later and see how I go with the above recommendation(s) and see if I can advance any further.

Of course, I only want this info for what we call educational purposes Smile

Thanks for the info Waraxe!

BlaxeNet
View user's profile Send private message Send e-mail Yahoo Messenger
PostPosted: Fri Jun 22, 2007 3:49 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




For rooting it is important to know operating system kernel version.
In case of Linux you can use this:

Code:

cat /proc/version


http://www.informit.com/articles/article.asp?p=131048&rl=1

Smile
View user's profile Send private message Send e-mail Visit poster's website
etc/passwd - now what?
www.waraxe.us Forum Index -> Shell commands injection
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT
Page 1 of 1

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.061 Seconds