Penetration Testing mailing list archives

Re: the C$ and ipc$ shares


From: pagvac <unknown.pentester () gmail com>
Date: Mon, 23 Oct 2006 12:11:02 +0100

In order to access C$ you need the admin credentials of the target.
These could be of a local account part of the "administrators" group,
or a domain admin account (provided that the target workstation/server
is part of a domain).

example of attack on local admin account with empty password:

net use b: \\192.168.1.10\c$ "" /u:administrator

example of attack against domain admin account using password equals
to 'mypass':
net use b: \\192.168.1.10\c$ "mypass" /u:mydomain\administrator

The idea is to target local and domain admin accounts and attempt to
mount as many C$ shares as possible.

In cases in which I can only mount certain folders, I always do a
search on the folder for strings such as:
"pass"
"password"
"username"
"administrator"
etc..

So that you can start gaining further access. After all, it's common
to see administrators saving passwords in cleartext files.

Hope that helps

On 15 Oct 2006 00:59:38 -0000, wymerzp () sbu edu <wymerzp () sbu edu> wrote:

Hi pen-testers et al,
I am new to the whole 'pen-testing' science and am trying to work through the book Hacking Exposed 5th ed (alas, the going is slow because Computer Org and Database 
class takes up my time). I have been testing the "null session" vulnerability on Windows machines. I am able to connect to the IPC$ share of a computer and 
enumerate users (using enum.exe), I can use Sid2User and User2Sid to do the same, I have also had success using the command: net use * \\xxx.xxx.xxx.xxx\SharedDocs to connect 
to the Shared Folders of a machine. The question that I pose is two-fold: 1) as a pseudo/learning pen-tester, when you are connected to the SharedDocs folder is there anyway 
to delve further into a system? 2) If I can connect to the ShareDocs and IPC$ shares of a computer using the user name of "x" and a password of "" (null), 
why can't I do the same with the C$ share? Is this because the SharedDocs share is in the group 'everyone'? Thanks alot guys and happy coding!

------------------------------------------------------------------------
This List Sponsored by: Cenzic

Need to secure your web apps?
Cenzic Hailstorm finds vulnerabilities fast.
Click the link to buy it, try it or download Hailstorm for FREE.
http://www.cenzic.com/products_services/download_hailstorm.php?camp=701600000008bOW
------------------------------------------------------------------------




--
pagvac
[http://ikwt.com/]

------------------------------------------------------------------------
This List Sponsored by: Cenzic

Need to secure your web apps?
Cenzic Hailstorm finds vulnerabilities fast.
Click the link to buy it, try it or download Hailstorm for FREE.
http://www.cenzic.com/products_services/download_hailstorm.php?camp=701600000008bOW
------------------------------------------------------------------------


Current thread: