Tuesday, 3 April 2012

Metasploit psexec vs Keimpx

[Updated 26/10/12]

Hi guys,

Today I thought I'd put up a post about a little known tool called Keimpx. In a nutshell it's a python script that allows you to login to multiple machines via SMB using either plain username/password or NTLM hashes.

I had originally tried to use the Metasploit psexec module (exploit/windows/smb/psexec) however I was receiving error messages every time I launched the module. After some research I found out that the issue was related to the "Simple File Sharing" option. Specifically, if this option is enabled then psexec won't work. To disable this option go to Tools -> Folder Options -> View -> "Use simple file sharing", and untick, then restart. Magically psexec will now work!

However, I was looking for some way to try multiple hashes across multiple machines and the Metasploit module doesn't support this by default. It is possible to use a Metasploit script to do this but to save time I did a quick Google and stumbled upon Keimpx. 

Keimpx is included in BackTrack 5 by default, alternatively it can be downloaded from http://code.google.com/p/keimpx/ . The basic command I used most often was:

./keimpx.py -c hashes.txt -l servers.txt -v 2

Where hashes.txt contains your NTLM hashes and servers.txt contains your list of targets. The v is for verbose.

If you know the username and password of a user:

./keimpx.py -t 192.168.1.1 -U bob -P bobpass -v 2

Where -t is a single target, -U is the username and -P the password.

Here's a quick example of me running this in the offensive security lab:



Once you've successfully logged in via SMB Keimpx supports a number of useful enumeration features, file system access as well as the ability to drop into a command shell. This is definitely a tool you should try out if you're looking to blitz multiple machines with harvested hashes.


It's worth mentioning that there is a ton of different ways to perform pass the hash. CG gave a good outline of these at DerbyCon2012:
http://carnal0wnage.attackresearch.com/2012/10/derbycon-media.html



PwnDizzle

Wednesday, 1 February 2012

Best Security Blogs

[Updated 26/10/12]

Below is a list of my favorite security blogs:

Security researcher blogs:

Mubix
www.room362.com

Krzysztof Kotowicz
blog.kotowicz.net

g0tmi1k


Debasish Mandal's Blog
www.debasish.in

Security company blogs:

Rapid7 (Metasploit)
https://community.rapid7.com/community/metasploit/blog


F-Secure

TrendMicro
http://blog.trendmicro.com/

And although not strictly a blog, the Register does do a great job of summarising the days security news:
http://www.theregister.co.uk/security/ 

If you guys have any suggestions feel free to include them in a comment below.

Peace out. 

Yet another security blog...

Hi All,

Welcome to yet another IT security blog.

I've been involved with IT for a number of years but I'm relatively new to the field of IT security.

I'm planning to use this blog as a bit of a cheat sheet and information repository. Hopefully this will provide you guys with some useful info and who knows maybe even a few laughs.

Peace out.