Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 33 guests online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Network Pen Testingarrow Setting up my own hack lab
EH-Net
May 25, 2013, 08:48:57 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: 1 [2]   Go Down
  Print  
Author Topic: Setting up my own hack lab  (Read 14670 times)
0 Members and 1 Guest are viewing this topic.
3xban
Hero Member
*****
Offline Offline

Posts: 608


View Profile WWW
« Reply #15 on: September 28, 2011, 08:15:25 AM »

yeah you lost me.  Lets back track...

You have an XP SP3 VM that you want to exploit correct?

But you can't find any modules in Metasploit that work right?

What is the patch status of your XP VM?  SP3 fixed a good amount of security holes, so review the dates.  Also some of those MS Security notices may require other services/applications to be fully exploited which is why I suggested installing a few other apps on the victim XP system.  Old versions of Adobe Reader, Java etc...

Logged

Certs: GCWN
(@)Dewser
Preestar
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #16 on: September 28, 2011, 08:40:32 AM »

Yes thats correct 3xban sorry if im confusing you. My victim pc is a windows cx professional with service pack 2. The reason being is because I couldnt find any iso's that had no packs or just service pack 1 so I had to go with that one.

I am going onto the microsoft website and searching for exploits that work for windows x professional with sp3. Now on the microsoft wesbite it lists many exploits for that O/S but when I search for the same exploit on metasploit it isnt there, so how can I exploit this O/S if metasploit doesnt have any exploits?

If you can find me a good trusted download for windows xp that is totally unpatched that would be awesome!

I see some exploits for things like windows media player and adobe reader ect but I cant think why you would ever wanna exploit these programs? What can be acheived......
Logged
cd1zz
Recruiters
Hero Member
*
Offline Offline

Posts: 561


View Profile WWW
« Reply #17 on: September 28, 2011, 08:57:35 AM »

While metasploit is a great tool, it's not the end all be all for exploitation. Here are some notes about what to do when there isn't a metasploit module:

Just because Microsoft releases a security update, doesn't mean there is publicly available exploit code. It simply means someone found a bug (either internally at MS or externally) and they're patching it. Not all bugs are exploitable.

You'll have to become very good at searching for public exploit code if you want to be good at this. Until you can discover your own bugs and write your own exploits, you'll have to find publicly available exploit code, that is the key.

For starters and just to get you pointed in the right direction, run a vulnerability scan on your victim and get a list of all the patches the box is missing. If you're using Nessus, make sure you use a credential scan so you get every patch its missing. From there, start searching the internet for exploit code. You can use securityfocus.com exploit-db.com packetstormsecurity.org and www.osvdb.org for a few examples.

Logged

Preestar
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #18 on: September 28, 2011, 11:05:15 AM »

Great thanks for those links I shall look into that. One thing that puzzles me though is I have found exploit code on websites such as exploit-db but I dont know how to actually use it once I download it, Is there anyway to add the code to the metasploit module list?
Logged
cd1zz
Recruiters
Hero Member
*
Offline Offline

Posts: 561


View Profile WWW
« Reply #19 on: September 28, 2011, 01:11:19 PM »

What exploit are you looking at?

I think you might need to slow down and think bigger picture here. If you're not really sure how to exploit the box, you're probably not really sure how or why the exploit works. You really need to know, "Ok, I've found a vulnerable version of "X" software on my victim, and I know this because I've banner grabbed the service....and now I see some code that is a buffer overflow for this specific version...(do you know why buffer overflows are problematic?)...and because I know all that, I'm going to run the code to exploit the vulnerable service and get a shell...."

See where I'm going? If you want, provide the exploit-db link and I'll give you some pointers.

Logged

3xban
Hero Member
*****
Offline Offline

Posts: 608


View Profile WWW
« Reply #20 on: September 28, 2011, 01:36:10 PM »

Also many of the modules in metasploit have been added by the community.  Don't focus on popping shell on everything, although that is what you want to try and get in most cases, it is not necessarily the keys you are looking for.  Popping shell on one system may be the first step in gaining a foothold in the environment as well as doing additional recon to discover your true target. 

The reason why one would want to exploit the applications is because the bug/exploit available for them will pop shell.  For instance metasploit has a number of modules for Adobe Reader.  Some will help you created a bogus PDF or web link that will exploit a bug in older versions of reader and allow the attacker to get a reverse shell using Metepreter. 

In most cases you will see MS say the bug "could" allow remote code execution.  This does not necessarily mean you will gain remote access, but you can use the exploit to drop code that will allow you remote access.

Like cd1zz says, sometimes you need to take a step back and look at things as a whole.  An excellent book to take a look at is Professional Penetration Testing.  It goes into a bit about some tools but what it ultimately provides is great insight on the pen testing process.  It also has a number of challenges that use WebGoat, De-Ice vms and Hackedermia. 
Logged

Certs: GCWN
(@)Dewser
Preestar
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #21 on: September 28, 2011, 01:52:07 PM »

Thanks to both of you. I'm definately going to have to take a step back and read some. I saw 1 video of 1 exploit and thought wow this is so easy ill just follow this video and success.... sadly that is not the case lol.

I dont know what a shell is, I dont know how they work, I dont know why buffer overflows work and I dont truely understand buffer overflow

Gunna go back to the basics which is reading, getting an understand of why this stuff works and how it works which should give me a much better understanding.

Thank you so much for all your help guys much appreciated.
Logged
TheXero
Full Member
***
Offline Offline

Posts: 112


Try Harder!


View Profile WWW
« Reply #22 on: September 28, 2011, 01:57:17 PM »

Preestar check out my PenTest video where I attack a client using an outdated version of Internet Explorer in order to compromise the machine and eventually the rest of the network.

~TheXero
Logged

cd1zz
Recruiters
Hero Member
*
Offline Offline

Posts: 561


View Profile WWW
« Reply #23 on: September 28, 2011, 02:33:18 PM »

That's the idea Preestar. Go get a copy of counter hack reloaded and that will open your eyes. That was the first book I read that really put everything into perspective for me.
Logged

Preestar
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #24 on: September 28, 2011, 05:26:49 PM »

Nice video TheXero clearly you remember all of the payloads, commands and their uses off by heart lol whereas I hae no idea what any of that stuff means. Therefor I need to do some reading.
Logged
3xban
Hero Member
*****
Offline Offline

Posts: 608


View Profile WWW
« Reply #25 on: September 29, 2011, 08:28:49 AM »

It is a lot to take in, which is why you don't typically see too many testers that don't already have a strong background in some facet of IT.  I am nowhere near the level to be a full pen tester, but I know enough background due to my years configuring firewalls, sniffers, servers, workstations etc, to understand what I am looking at and how to defend against it.    And its tough when you want to play in the arena with tools like metasploit or create scripts to assist you with gaining shell access (Shell is basically command line access to a system).  But you sometimes need to step back and realize to be good at some of these fun projects, you need to fill up on some background requirements so they are useful.  If you want a good challenge, try to crack something without the use of a tool using only what you have.  Remember someone had written these tools to make their life easier and we all benefit immensely from it.
Logged

Certs: GCWN
(@)Dewser
Preestar
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #26 on: September 29, 2011, 08:58:20 AM »

I wouldnt know where to begin to crack something with no scripts or hacking programs ect
Logged
3xban
Hero Member
*****
Offline Offline

Posts: 608


View Profile WWW
« Reply #27 on: September 29, 2011, 09:52:17 AM »

Which is what separates us from the pros.  You can use scripts, but you gotta write them yourself Wink
Logged

Certs: GCWN
(@)Dewser
hayabusa
Hero Member
*****
Offline Offline

Posts: 1633



View Profile
« Reply #28 on: October 01, 2011, 11:02:19 AM »

Yeah...  The ability to write scripts is important, and will come with time and experience.  Just make sure, as I'd noted in the one other thread, today, that you also spend time on the existing tools (NMAP comes to mind, but all tools in general,) learning how to use them, what they do "under the covers" (not just run this to get 'xyz' result,) and really get familiar with them.  Even the best still rely on existing tools, too.  The difference is in the level of understanding, around those tools.

Videos help.  Books help.  Professional networking helps (meeting like-minded IT-security pro's, like those of us at EH-net, who will openly discuss with you, and teach you.)  Get yourself into a mindset that "This is what I want, so I will wholeheartedly pursue learning and growth." 

You WILL reach new levels.  Just stay focused.
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
YuckTheFankees
Sr. Member
****
Offline Offline

Posts: 324


View Profile
« Reply #29 on: October 10, 2011, 07:34:06 PM »

Preestar,

Just like you said, I had to take a step back and actually take in how much it really takes to be a pentester. I had all the same questions, "what is a shell", "buffer overflow wtf", and etc..

I felt I learned a lot faster by watching video's after I read the material. So you "kind of" know what they are talking about in the video.
Logged

OSCP in progress
Pages: 1 [2]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.059 seconds with 22 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
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:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.