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 27 guests online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Network Pen Testingarrow CEH - Certified Ethical Hackerarrow Metasploit - Win XP sp3 - port 445 exploit !! and Meta bug
EH-Net
May 25, 2013, 07:22:37 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 3 4   Go Down
  Print  
Author Topic: Metasploit - Win XP sp3 - port 445 exploit !! and Meta bug  (Read 72445 times)
0 Members and 1 Guest are viewing this topic.
rebrov
Full Member
***
Offline Offline

Posts: 130



View Profile
« on: May 18, 2010, 08:55:23 PM »

well 1st of all : my first question is :

can't i exploit windows xp sp3 at port 445 Huh cuz itried many payloads reverse  with no use :S

so is there any way to exploit port 445 at xp sp3 ?

second while trying to exploit it via Metasploit i couldn't and the meta got bug and then disappear i took screenshot fast be4 it disappear here it is :




any idea ?
Logged
Ketchup
Hero Member
*****
Offline Offline

Posts: 1021



View Profile
« Reply #1 on: May 18, 2010, 10:35:18 PM »

Are you sure your target is MS08-067 vulnerable?   Any chance it was patched?
Logged

~~~~~~~~~~~~~~
Ketchup
rebrov
Full Member
***
Offline Offline

Posts: 130



View Profile
« Reply #2 on: May 19, 2010, 03:59:11 AM »

Are you sure your target is MS08-067 vulnerable?   Any chance it was patched?

well , its sp3 so i think its not Vulnerable since the MS08_067 exploit not working into sp3 patched system

thats why i ask about is there anyway to exploit port 445 at xp sp3 system ??

and what do u think about this bug

btw this bug also happened when i successfuly exploited vulnerable MS08_067 system after the exploit complete and session has been opened it disappeared :S dunno why this happen only in Metasploit 3.3.3

any idea ?
Logged
Ketchup
Hero Member
*****
Offline Offline

Posts: 1021



View Profile
« Reply #3 on: May 19, 2010, 07:20:45 AM »

I do believe that SP3 is vulnerable by default. 

http://www.microsoft.com/technet/security/bulletin/ms08-067.mspx

Yes, you can exploit port 445 on an XP SP3 machine.  Bug, why are you just randomly sanding exploits against this machine?  Why not identify the vulnerability first?   Coincidentally, I find that the MS08-067 is the one most common false positives.
Logged

~~~~~~~~~~~~~~
Ketchup
rebrov
Full Member
***
Offline Offline

Posts: 130



View Profile
« Reply #4 on: May 19, 2010, 03:25:54 PM »

I do believe that SP3 is vulnerable by default. 

http://www.microsoft.com/technet/security/bulletin/ms08-067.mspx

Yes, you can exploit port 445 on an XP SP3 machine.  Bug, why are you just randomly sanding exploits against this machine?  Why not identify the vulnerability first?   Coincidentally, I find that the MS08-067 is the one most common false positives.

Not shown: 997 filtered ports
PORT     STATE SERVICE      VERSION
139/tcp  open  netbios-ssn
445/tcp  open  microsoft-ds Microsoft Windows XP microsoft-ds
5101/tcp open  admdog?


thats what i got from Nmap

what do u think ?
Logged
hayabusa
Hero Member
*****
Offline Offline

Posts: 1633



View Profile
« Reply #5 on: May 19, 2010, 03:40:42 PM »

@rebrov -

Glad to see you're still hanging around, and learning!

That list shows open ports, and generically defined services.  Your next steps should be connecting to those ports, and banner grabbing / researching, to see what service versions, etc, are reported as running on those ports, then follow up with searches for vulnerabilities existing on those versions and services.

For instance, you might find that some other service is actually using that port, and it's not really Microsoft ds on there, at all.  Conversely, you could be hitting a honeypot (if this were a real-life pentest,) where that port isn't really even running the exploitable service, but responds to queries as if it was.  You need to adequately try to determine what's running, not just gather a basic list of responding ports, and start attacking.   Wink

These are very tried and true principles for pentesting, and you need to do some digging on them, rather than just throwing a list of nmap reported open ports to the list.  We're here to help, and to answer educated questions, not to lead you through every step.  (No offense intended, just recommending you spend more time on this than simply a base nmap scan, followed by, "why doesn't an exploit work on 445?")

I understand that you're running a tool, like Metasploit, to perform these tests, but sometimes, you need to have a clearer understanding of the target system and it's services, before just throwing Metasploit and other tools at it, in the hopes that generically defined exploits will 'just work' as you'd like / expect them to.

Good luck, and as you continue, let us know what more you find.
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
rebrov
Full Member
***
Offline Offline

Posts: 130



View Profile
« Reply #6 on: May 19, 2010, 03:45:18 PM »

@rebrov -

Glad to see you're still hanging around, and learning!

That list shows open ports, and generically defined services.  Your next steps should be connecting to those ports, and banner grabbing / researching, to see what service versions, etc, are reported as running on those ports, then follow up with searches for vulnerabilities existing on those versions and services.


thanks for info i will try telnet or netcat for banner grabbing Smiley
For instance, you might find that some other service is actually using that port, and it's not really Microsoft ds on there, at all.  Conversely, you could be hitting a honeypot (if this were a real-life pentest,) where that port isn't really even running the exploitable service, but responds to queries as if it was.  You need to adequately try to determine what's running, not just gather a basic list of responding ports, and start attacking.   Wink

These are very tried and true principles for pentesting, and you need to do some digging on them, rather than just throwing a list of nmap reported open ports to the list.  We're here to help, and to answer educated questions, not to lead you through every step.  (No offense intended, just recommending you spend more time on this than simply a base nmap scan, followed by, "why doesn't an exploit work on 445?")

I understand that you're running a tool, like Metasploit, to perform these tests, but sometimes, you need to have a clearer understanding of the target system and it's services, before just throwing Metasploit and other tools at it, in the hopes that generically defined exploits will 'just work' as you'd like / expect them to.

Good luck, and as you continue, let us know what more you find.
Logged
hayabusa
Hero Member
*****
Offline Offline

Posts: 1633



View Profile
« Reply #7 on: May 19, 2010, 04:20:02 PM »

Sounds good.  Keep us posted.
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
rebrov
Full Member
***
Offline Offline

Posts: 130



View Profile
« Reply #8 on: May 20, 2010, 04:02:26 PM »

Sounds good.  Keep us posted.

i couldn't banner grabbing the service running under port 445 at the machine :S

tried telnet with no use
tried netcat with no info

what do u think ?
Logged
Ketchup
Hero Member
*****
Offline Offline

Posts: 1021



View Profile
« Reply #9 on: May 20, 2010, 04:35:46 PM »

NetBIOS is a binary protocol.   You can run the following nmap command to check for a few vulnerabilities.   There are also any number of scanners that will identify NetBios vulnerabilities. 

Code:
nmap -sV -PN <IP Address> -p 445,137,139 --script=smb-check-vulns.nse

Logged

~~~~~~~~~~~~~~
Ketchup
hayabusa
Hero Member
*****
Offline Offline

Posts: 1633



View Profile
« Reply #10 on: May 20, 2010, 07:25:38 PM »

Pay close attention to what Ketchup told you.  When I mentioned banner grabbing, I wasn't specifically doing so, for 445.  It was a generalization, that is something you should be doing to any list you get from your initial scans, before trying to just jump in and exploit.

But Ketchup's advice is very valid, for your port 445 scenario.
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
rebrov
Full Member
***
Offline Offline

Posts: 130



View Profile
« Reply #11 on: May 21, 2010, 08:23:30 AM »

Pay close attention to what Ketchup told you.  When I mentioned banner grabbing, I wasn't specifically doing so, for 445.  It was a generalization, that is something you should be doing to any list you get from your initial scans, before trying to just jump in and exploit.

But Ketchup's advice is very valid, for your port 445 scenario.

yes i know Hayabusa but why i did it for port 445 only because i know that port 139 netbios not possible to exploit under windows xp sp3 patched system

i tried many times with no success :S

its on sp1 i think only
Logged
rebrov
Full Member
***
Offline Offline

Posts: 130



View Profile
« Reply #12 on: May 21, 2010, 08:31:05 AM »

NetBIOS is a binary protocol.   You can run the following nmap command to check for a few vulnerabilities.   There are also any number of scanners that will identify NetBios vulnerabilities. 

Code:
nmap -sV -PN <IP Address> -p 445,137,139 --script=smb-check-vulns.nse


thanks for the info i tried this with this results

nmap -sV -PN 10.0.0.3 -p 445,139 --script=smb-check-vulns.nse

Starting Nmap 5.00 ( http://nmap.org ) at 2010-05-21 13:27 Egypt Dayl
Interesting ports on 10.0.0.3:
PORT    STATE    SERVICE      VERSION
139/tcp filtered netbios-ssn
445/tcp filtered microsoft-ds


and also tried to send Fin scan to bypass firewall with this result

nmap -sF -P0 10.0.0.3 -p 445

Starting Nmap 5.00 ( http://nmap.org ) at 2010-05-21 1
Interesting ports on 10.0.0.3:
PORT    STATE         SERVICE
445/tcp open|filtered microsoft-ds


and also with Xmas scan this is the result

nmap>nmap -sX -P0 10.0.0.3 -p 445

Starting Nmap 5.00 ( http://nmap.org )
Interesting ports on 10.0.0.3:
PORT    STATE         SERVICE
445/tcp open|filtered microsoft-ds
Logged
hayabusa
Hero Member
*****
Offline Offline

Posts: 1633



View Profile
« Reply #13 on: May 21, 2010, 09:13:15 AM »

Pay close attention to what Ketchup told you.  When I mentioned banner grabbing, I wasn't specifically doing so, for 445.  It was a generalization, that is something you should be doing to any list you get from your initial scans, before trying to just jump in and exploit.

But Ketchup's advice is very valid, for your port 445 scenario.

yes i know Hayabusa but why i did it for port 445 only because i know that port 139 netbios not possible to exploit under windows xp sp3 patched system

i tried many times with no success :S

its on sp1 i think only


Understood, but I seem to recall your list also showed port 5101 tcp, as well....  (I don't have the time to assist further, today (heavy workload,) so I'll leave this one in Ketchup's hands, and maybe pick up again, tomorrow, if things lighten up.

Good luck.
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
Ketchup
Hero Member
*****
Offline Offline

Posts: 1021



View Profile
« Reply #14 on: May 21, 2010, 09:22:58 AM »

rebov, those ports coming back as filtered could indicate that there is a firewall in place.   
Logged

~~~~~~~~~~~~~~
Ketchup
Pages: [1] 2 3 4   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.122 seconds with 23 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.