I had the pleasure of writing a few guest blogs in the last few weeks. If you haven't read them, please check them out:
"Using the Windows API and Copy-RawItem to Access Sensitive Password Files" on Microsoft's "Hey, Scripting Guy! Blog" The post covers how to use PowerShell and volume shadow copy to safely copy either the NTDS.dit or SAM files while running as admin. The accompanying script figures out if its running on a DC or not, finds the actual location of the NTDS.dit file from the registry (often installed on a different disk) and returns the VSS service to its original state. You can find the script here. Although useful in a pinch, there are niftier methods out there.
"PowerSploit: The Easiest Shell You’ll Ever Get" on Pentest Geek. The post is a tutorial on the easiest way I know to avoid AV and get a Meterpreter shell from GUI access. I also included a simple Python script (in a PowerShell post, really?) to configure the handler for you. You can check that out here, you may find it useful. The Pentest Geek blog is already full of great posts, you should definitely check it out and contribute!
"WMIS: The Missing Piece of the Ownage Puzzle" on the Passing-the-Hash blog. The post builds on the concepts introduced in the PowerSploit post on Pentest Geek. I wrote about how to use WMIS to get a Meterpreter shell with one command using PowerShell. It is extremely effective, and we will be releasing a tool to automate the entire process very soon.
Also, I look forward to seeing you again at both Blackhat and Derbycon. Skip and I will be discussing ways to mitigate the threat of the Pass-the-Hash attack at both conferences. Matt and I will be presenting "A Minimalist's Guide to Windows Post-Exploitation" at both BsidesAugusta and Derbycon. Thanks for reading and thanks for contributing to this great community.
-Chris
Showing posts with label DerbyCon. Show all posts
Showing posts with label DerbyCon. Show all posts
Friday, July 19, 2013
Guest Blog Posts and Cons
Labels:
blackhat,
DerbyCon,
password,
PowerSploit,
Python
Wednesday, September 26, 2012
CoSoSys Predicable Password CVE-2012-2994
CVE-2012-2994 describes a vulnerability in the CoSoSys Endpoint Protector 4 appliance that I mentioned in my BsidesLV talk. The bottom-line is that once the appliance is activated, a script is ran that sets several passwords using a variation of the serial number. The account "epproot" is a root-equivalent account and can be used to SSH into the appliance. The password is not provided from the company so if you would like to control the appliance, use the following PowerShell script:
Get-EPPPassword Function
The vulnerability lies in the fact that there are an extremely limited number of possible password combinations (91) which can be easily brute-forced. To generate the complete list of possible passwords with PowerShell:
The output should look like the following screenshot, but can be downloaded here:
Thanks for reading and I hope to see everyone at Derbycon!
-Chris
Get-EPPPassword Function
The vulnerability lies in the fact that there are an extremely limited number of possible password combinations (91) which can be easily brute-forced. To generate the complete list of possible passwords with PowerShell:
The output should look like the following screenshot, but can be downloaded here:
Thanks for reading and I hope to see everyone at Derbycon!
-Chris
Labels:
appliance,
bsideslv,
CoSoSys,
CVE-2012-2994,
DerbyCon,
exploit,
PowerShell,
Vulnerability reporting
Wednesday, August 15, 2012
Scanning SharePoint with PowerShell
A few months ago, I published Get-HttpStatus - a PowerShell function that aides in generic directory and file fuzzing. In order to get it added to PowerSploit, Matt suggested several improvements and eventually made a few of his own. The function supports SSL and includes several dictionaries derived from other projects such as Nikto, Yokoso and SharepointURLbrute. Without dictionaries, the function is pretty useless so a big thanks goes out to the developers of each of those tools and the hard work that went into creating the file and directory dictionaries.
Lets take a look at one specific use-case for Get-HttpStatus - scanning a SharePoint installation. We can start by opening PowerShell and copying and pasting the function into the shell.
Next we provide the function a target website and the path to the dictionary file.
In this example, there is an interesting directory and file that is accessible without credentials. Lets check it out:
It appears that we may have the ability to increase permissions by adding users to different groups on the server. That is definitely a security finding that could aid in a penetration test. As with other scripts and functions that are added to the PowerSploit project, the maintained version is available on the github site.
Get-HttpStatus Function
Please check out the other dictionaries and let me know if you see any other use cases for this script. Thanks for checking this out and if you haven't bought your DerbyCon tickets yet, you should do so! If you are interested in PowerShell and security, Carlos Perez is teaching one of the first courses on the topic: "Introduction to PowerShell for Security Professionals" at this year's DerbyCon so sign up for it. I can't wait!
-Chris
Next we provide the function a target website and the path to the dictionary file.
In this example, there is an interesting directory and file that is accessible without credentials. Lets check it out:
It appears that we may have the ability to increase permissions by adding users to different groups on the server. That is definitely a security finding that could aid in a penetration test. As with other scripts and functions that are added to the PowerSploit project, the maintained version is available on the github site.
Get-HttpStatus Function
Please check out the other dictionaries and let me know if you see any other use cases for this script. Thanks for checking this out and if you haven't bought your DerbyCon tickets yet, you should do so! If you are interested in PowerShell and security, Carlos Perez is teaching one of the first courses on the topic: "Introduction to PowerShell for Security Professionals" at this year's DerbyCon so sign up for it. I can't wait!
-Chris
Labels:
admin,
DerbyCon,
Get-HTTPStatus,
Nikto,
Post-Exploitation,
PowerShell,
PowerSploit,
Scan,
Scanning,
SharePoint,
SharepointURLbrute,
SSL,
WebApp,
Yokoso
Subscribe to:
Posts (Atom)


