Home
Calendar
Certifications
Columns
Features
Forum
Resources
Vitals
Latest Additions
April 2013 Free Giveaway Sponsor - eLearnSecurity
Human Intelligence to Navigate the Security Data Deluge
February 2013 Free Giveaway Winner of SANS CyberCon Training
Interview: Bugcrowd Founders on Herding Ninjas for Crowdsourced Bug Bounties
Network Forensics: The Tree in the Forest
March 2013 Free Giveaway Sponsor - Mile2
Book Review: Violent Python
February 2013 Free Giveaway Sponsor - SANS
Holiday 2012 Free Giveaway Winner of Metasploit Pro by Rapid7
Course Review: SANS FOR408 Computer Forensic Investigations – Windows In-Depth
The Security Consulting Sugar High
Tutorial: Fun with SMB on the Command Line
Interview: Ilia Kolochenko, CEO of High-Tech Bridge
October 2012 Free Giveaway Winner of LearningGate Training
The Broken: Assessing Corporate Security in 2012 to Make a Better 2013
EH-Net Login
Welcome Guest.
Username:
Password:
Remember me
Lost Password?
No account yet?
Register
Who's Online
We have 33 guests online
You are here:
Home
Ethical Hacking Discussions and Related Certifications
Network Pen Testing
Pen Testing Windows
EH-Net
May 25, 2013, 01:34:27 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Go back to The Ethical Hacker Network Online Magazine
Home Page
Home
Help
Calendar
Login
Register
EH-Net
>
Ethical Hacking Discussions and Related Certifications
>
Network Pen Testing
(Moderator:
don
) >
Pen Testing Windows
Pages: [
1
]
2
Go Down
« previous
next »
Print
Author
Topic: Pen Testing Windows (Read 10920 times)
0 Members and 1 Guest are viewing this topic.
millwalll
Guest
Pen Testing Windows
«
on:
December 02, 2011, 10:08:19 AM »
Hi all,
So I got some time in my company test lab and not really done much windows pen testing.
Does anyone have good resource or tools for windows services like
smb
ldap
ms sql
snmp
or any other ?
So I can learn more about them as nessue flags lots of problems but I am not sure how to verify them epically with smb and ldap.
Thanks
Logged
3xban
Hero Member
Offline
Posts: 608
Re: Pen Testing Windows
«
Reply #1 on:
December 02, 2011, 11:51:07 AM »
craft clever phishing email
attach a pdf or excel sheet with embeded flash object which sets up a reverse shell connection
Wait for them to open it
Drop backdoors
Proceed with recon!
I keed I keed. Depends on your goal. With the Windows attacks, much of them have been due to 3rd party software not being patched rather than an actual flaw in Windows.
With SQL many times the built in SA account isn't properly secured or utilizes the same admin password as say the local admin of the computer. If they are old versions of Windows (XP/2003) then you have more options. If they are newer versions (7/2008) then you will have your work cut out for you. If they have been hardened, it will be that much tougher.
Logged
Certs: GCWN
(@)Dewser
millwalll
Guest
Re: Pen Testing Windows
«
Reply #2 on:
December 03, 2011, 07:53:05 AM »
This is lab setup so it has lot of problem some of the problem listed include
default password for mysql
I tried to test for this using mysql ip -u root -p mysql but i get error cant connect or something.
smb null session
ldap null base search access
smb null session
smb uses sid to enumerate
smb lsaqueryinformationpolicy function
Logged
hayabusa
Hero Member
Offline
Posts: 1633
Re: Pen Testing Windows
«
Reply #3 on:
December 03, 2011, 10:00:44 AM »
mysql might not be configured to allow root access from anywhere... Might only allow from localhost (thus via a local webapp, or something)
Logged
~ hayabusa ~
"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'
OSCE, OSCP , GPEN, C|EH
TheXero
Full Member
Offline
Posts: 112
Try Harder!
Re: Pen Testing Windows
«
Reply #4 on:
December 03, 2011, 11:15:20 AM »
Jamie.R, I would highly recommend that you see about doing PWB and OSCP.
Tools for everything there are readily available in BackTrack, may even be nmap scripts for it
~TheXero
Logged
OSCP | OSWP
www.thexero.co.uk
millwalll
Guest
Re: Pen Testing Windows
«
Reply #5 on:
December 03, 2011, 11:25:49 AM »
That is a good point hayabusa but if that the case if nessus reports mysql using default credentials how can you confirm this as you cant really report an issue to client without being sure it is an issue.
TheXero
I plan on doing OSCP but it just getting the money sadly my company wont pay for me as they prefer to train in house but I am trying to progress my training myself but as I am only junior don't get paid that much.
It is on my list of things to do
Logged
hayabusa
Hero Member
Offline
Posts: 1633
Re: Pen Testing Windows
«
Reply #6 on:
December 03, 2011, 01:56:29 PM »
Jamie.R - in that case, you'd need to look for SQL- or command-injection to be able to pass root's login via a web app. I recall having to do EXACTLY that, when I was helping beta test for the US Cyber challenge, a couple of summers ago.
Logged
~ hayabusa ~
"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'
OSCE, OSCP , GPEN, C|EH
millwalll
Guest
Re: Pen Testing Windows
«
Reply #7 on:
December 04, 2011, 06:20:53 AM »
Cool will look into that does anyone have any good links for leaving more about windows ? I mean I have used windows for about 14 years at home but not really in a business environment so have not dealt with domain controllers and stuff like that.
Logged
cd1zz
Hero Member
Offline
Posts: 561
Re: Pen Testing Windows
«
Reply #8 on:
December 04, 2011, 08:28:05 PM »
A few guidelines from you original question:
smb - look for missing patches and public exploits. you can also dictionary attack smb for credentials. i'd start with username "administrator"
You can also capture hashes for smb creds and use these in pass the hash techniques. There are a number of ways to do this.
ldap - if anonymous ldap sessions are allowed you can enumerate this service for lots of juicy info.
ms sql - look for missing patches. Better yet, if you can get creds for SA then more than likely they have xp_cmdshell functioning and you can get root, easy. You can get creds by dictionary attack, SE, or existing odbc connections.
snmp - again, dictionary attack. If you can find out the community string, you can likely read/write entire server configurations. This is a very powerful, yet often overlooked security issue on corporate lans.
I would recommend getting a copy of MSDN and installing your own AD environment so you can see all the moving parts of an AD environment. This is paramount to successful pentesting since most orgs use AD in one fashion or another.
Logged
OSCE | OSCP | GXPN | OSWP | CISSP
http://www.pwnag3.com
http://www.networkadminsecrets.com
millwalll
Guest
Re: Pen Testing Windows
«
Reply #9 on:
December 05, 2011, 03:28:30 AM »
Cool thanks for that any good link to things like smb and ldap and stuff ? Yah install AD might be worthwhile task.
Logged
3xban
Hero Member
Offline
Posts: 608
Re: Pen Testing Windows
«
Reply #10 on:
December 05, 2011, 08:17:57 AM »
Win XP in a domain environment, with a default Sec Policy, will cache up to 5 passwords I think. I have to look at my lab DC. But yeah XP even with SP3 is still a pretty good target. Now if the Sys admin in the domain is doing it write, Windows Firewall is enabled so many of the attacks might not work.
Also I think by default MS SQL will not allow network connections until you go into the config and turn it on. MySQL may do the same thing.
Just because Nessus says it so, doesn't mean it is. Get the MSSQL Management tool, this will allow you to test for connections. Also NMAP has a nifty script to locate systems broadcasting services such as DNS, SQL and other types.
Quote
nmap -P0 --script=broadcast
It will run a series of broadcast scripts. If you want to see the details y ou can view them in the nmap/scripts folder. There is also one for listening for Dropbox LAN sync broadcasts >D
Sorry if I got off topic a bit
Logged
Certs: GCWN
(@)Dewser
millwalll
Guest
Re: Pen Testing Windows
«
Reply #11 on:
December 09, 2011, 03:43:12 AM »
Thanks,
what's the best way to learn about domains is it good idea set one up can this be done for free ? any other useful information on testing windows or tools be really great thanks.
Logged
TheXero
Full Member
Offline
Posts: 112
Try Harder!
Re: Pen Testing Windows
«
Reply #12 on:
December 09, 2011, 04:33:58 AM »
Jamie.R, you if want a go at my challenge, drop by #intern0t on irc.freenode.net and we'll set you up for the CTF which is currently running
Logged
OSCP | OSWP
www.thexero.co.uk
cd1zz
Hero Member
Offline
Posts: 561
Re: Pen Testing Windows
«
Reply #13 on:
December 09, 2011, 08:02:30 AM »
I think the system admin/network admin stuff is incredibly important to be a good pentester, so you definitely should learn all about AD. There are a few options:
- Start working helpdesk or sys/network admin roles
- Get your MCITP
- Spend $200 and get a subscription to MSDN so you can download and play with every piece of software MS makes. Then, set up your own AD domain, exchange server, sql server etc. etc. etc.
I really believe the network work is huge, simply because if you pop a box on a network, will you know where to go next? Would you know how to pull data off a sql server? Would you know how to export email off an exchange server? Just a few simple things, but can be incredibly valuable to a client because getting domain admin might not mean as much to them as stealing the CEO's email.
Logged
OSCE | OSCP | GXPN | OSWP | CISSP
http://www.pwnag3.com
http://www.networkadminsecrets.com
millwalll
Guest
Re: Pen Testing Windows
«
Reply #14 on:
December 12, 2011, 06:01:16 AM »
MCITP What does this cover is it only active directory or is it more like Microsoft admin course ?
Logged
Pages: [
1
]
2
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
EH-Net
-----------------------------
=> Calendar Of Events
===> ChicagoCon 2007
===> ChicagoCon 2008s
===> ChicagoCon 2008f
===> ChicagoCon 2009s
=> Ethical Hacktivism
=> News Items and General Discussion About EH-Net
===> Greetings
=> Special Events
-----------------------------
Ethical Hacking Discussions and Related Certifications
-----------------------------
=> General Certification
===> Networking
===> OS
===> Security
=> Compliance, Regulations & Standards
=> Control Systems
=> Cyber Warfare
=> Forensics
===> CCE / MCCE - (Master) Certified Computer Examiner
===> CHFI - Computer Hacking Forensic Investigator
===> EnCE - EnCase® Certified Examiner
===> GCFA - GIAC Certified Forensics Analyst
=> Hardware
=> Incident Response
===> CSIH - Computer Security Incident Handler
===> GCIH - GIAC Certified Incident Handler
=> Malware
===> Advisories
=> Mobile
=> Network Pen Testing
===> CEH - Certified Ethical Hacker
===> CPTC - Certified Penetration Testing Consultant
===> CPTE - Certified Penetration Testing Engineer
===> CSTA - Certified Security Testing Associate
===> eCPPT - eLearnSecurity Certified Professional Penetration Tester
===> ECSA - EC-Council Certified Security Analyst
===> GPEN - GIAC Certified Penetration Tester
===> OSCP - Offensive Security Certified Professional
=> Physical Security
=> Programming
=> Social Engineering
=> Web Applications
=> Wireless
===> CWNP Certs
===> GAWN - GIAC Assessing Wireless Networks
===> OSWP - Offensive Security Wireless Professional
=> Other
-----------------------------
Columns
-----------------------------
=> Editor-In-Chief
=> Andress
=> Gates
=> Haddix
=> Hadnagy
=> Heffner
=> Hoffman
=> Linn
=> RichM
=> Murray
=> J. Peltier
=> Weidman
=> Wilson
-----------------------------
Features
-----------------------------
=> /root
=> Book Reviews
=> Opinions
=> Skillz
===> Examples
===> May 06 - Star Hacks, Episode V: The Empire Hacks Back
===> July 06 - Hack Bill!
===> Sept 06 - Netcat in the Hat
===> Nov 06 - Hitch-Hackers Guide to the Galaxy
===> Dec 06 - A Christmas (Hacking) Story
===> Feb 07 - Charlottes Web Site
===> April 07 - Microsoft Office Space
===> June 07 - Serenity Hack
===> Oct 07 - Worst. Ethical. Hacker. Challenge. Ever.
===> Dec 07 - Frosty the Snow Crash
===> March 2008 - It Happened One Friday
===> Oct 2008 - Scooby Doo and the Crypto Caper
===> Dec 08 - Santa Claus Is Hacking to Town
===> Feb 2009 - Brady Bunch Boondoggle
===> July 2009 - Prison Break
===> October 2009 - SSHliders
===> December 2009 - Miracle on Thirty-Hack Street
===> December 2010 - The Nightmare Before Charlie Browns Christmas
-----------------------------
Resources
-----------------------------
=> Career Central
===> Looking For Work
===> Looking To Hire
=> Links to cool sites.
=> Mass Media
=> News from the Outside World
=> Tools
=> Tutorials
===> Tutorial Requests
Loading...
Exclusive Deal
SANSFIRE 2013
June 15 - 22
5% Off
w/ Code
:
EHN_5
SANS Deals 4 EH-Netters
5% OFF
Any
SANS Course
in Any Format!
Coupon Code:
EHN_5
Including
SANS Rocky Mountain 2013
&
SANS Boston 2013
Polls
Compared to this year, 2013 will be:
Great!
Better.
About the same.
Little worse.
FUBAR!
Recent Forum Topics
News Items and General Discussion About EH-Net
: Change is Coming to EH-Net!!
(30) by
don
Tools
: Symbolic Exploit Assistant project is looking for collaborators
(0) by
galapag0
Greetings
: Hi from the UK
(5) by
prats84
GCIH - GIAC Certified Incident Handler
: Passed my GCIH
(9) by
prats84
Network Pen Testing
: Want a challenge? Want a GXPN practice exam?
(0) by
ajohnson
GCIH - GIAC Certified Incident Handler
: GCIH Free Practice test attempt
(1) by
prats84
EH-Net News Feeds
Latest Additions
Privacy Notice
for TDCC & All Properties
© 2013 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.