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 36 guests and 1 member online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Network Pen Testingarrow Linksys router affecting outbound nmap scans
EH-Net
May 21, 2013, 06:29:20 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]   Go Down
  Print  
Author Topic: Linksys router affecting outbound nmap scans  (Read 12204 times)
0 Members and 1 Guest are viewing this topic.
seanovision
Newbie
*
Offline Offline

Posts: 7


View Profile
« on: November 10, 2007, 06:11:57 PM »

Hi,

I have a Linksys home router WRT54G V.5 with firmware v1.02.2.  Behind it, wired, an XP SP2 and Fedora4 scan box.

When I scan something on the Internet with nmap, I don't get back all of the ports that are actually open.  For instance, here's the results when I scan a buddy's IP from either Fedora or XP...

>nmap -P0 x.x.x.x

PORT   STATE SERVICE
25/tcp open  smtp

I get the exact same result whether the scanning box is in a DMZ or not.

Here's what it looks like when I connect the scan box directly to my cable modem with the same nmap command on either scan box...

PORT     STATE SERVICE
25/tcp   open  smtp
110/tcp  open  pop3
111/tcp  open  rpcbind
8000/tcp open  http-alt

What gives? What's Linksys doing to corrupt the scan, is it NAT? I scan through a NAT connection at work [granted a more sophisticated router :-)]but we don't get weird results like this.

Can anyone recommend a home router that they know doesn't interfere with scanning?

Thanks,

-Sean
Logged
Kev
Sr. Member
****
Offline Offline

Posts: 428


View Profile
« Reply #1 on: November 10, 2007, 07:56:14 PM »

Strange, because I have scanned through the same router with no problem. Make sure you turn off the firewall in the router and you allow port forwarding if needed.  Or just do what you are doing by passing the router. Remember that when you are scanning or exploiting the less security and crap you have to go through to connect the better off you will be.
Logged
seanovision
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #2 on: November 24, 2007, 02:25:14 PM »

I disabled the firewall settings in the router and tried nmap again with the two scanners either in a DMZ or not, but still messes up nmap results.  Physically bypassing the router is a pain, and it prevents my other computers from using the Internet so it looks like I'll buy another router (Linksys hasn't had a firmware update for my model for a long time).  I'll post what I eventually get and the results.
Logged
Kev
Sr. Member
****
Offline Offline

Posts: 428


View Profile
« Reply #3 on: November 24, 2007, 11:30:46 PM »

Yes please keep us posted. I should have qualified that my router had some linux hacks. If I can find what I did a while back I will post it. It made not only a difference in my control of the router but also on my range.
Logged
seanovision
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #4 on: November 26, 2007, 02:16:19 PM »

I should have qualified that my router had some linux hacks. 

Oh really? HHmmm, maybe I'l look into that first. Sounds like fun!
Logged
boney
Jr. Member
**
Offline Offline

Posts: 61



View Profile
« Reply #5 on: November 27, 2007, 06:17:02 PM »

Maybbe u shouldforward or trigger the ports.
Logged

C|EH

All my life I wanted a computer...
Now I want my life back !
seanovision
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #6 on: November 27, 2007, 09:12:20 PM »

I should have qualified that my router had some linux hacks. 

Oh really? HHmmm, maybe I'l look into that first. Sounds like fun!

Well, it turns out mine is the unhackable VXworks version... :-(

http://www.seattlewireless.net/index.cgi/LinksysWrt54g

http://www.linuxelectrons.com/features/howto/consolidated-hacking-guide-linksys-wrt54gl
Logged
seanovision
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #7 on: November 29, 2007, 04:53:19 PM »

Well, it turns out that it may be possible after all...

http://www.bitsum.com/openwiking/owbase/ow.asp?WRT54G5%5FCFE#h6

gonna try this tonight I think.
Logged
Kev
Sr. Member
****
Offline Offline

Posts: 428


View Profile
« Reply #8 on: November 29, 2007, 05:17:59 PM »

Hey thats cool and good luck with it.
Logged
seanovision
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #9 on: November 30, 2007, 10:23:01 PM »

OK, I killed two birds with one stone after all. See:

http://www.linuxquestions.org/questions/linux-networking-3/wpa-configuration-for-ubuntu-7.10-600289/

Anyway, flashing my Linksys WRT54G v.5 with the was going great until the last step.

http://www.scorpiontek.org/portal/content/view/27/36/1/3/

It never rebooted by itself after at least 30 minutes, so I power cycled.  After that it stopped responding altogether. Now I have an expensive 4-port switch.  :-(

So, thinking that I'll get myself a a WRT54GL at some point later, I needed something to keep me going for a while.  I got the cheapest wireless router I could find today, Trendnet TEW-452BRP, will cost $10 after when the rebates come in in a few months.  It of course was a pain to set up, you HAVE to use the Windows installation CD and move cables and power cycle stuff in exact order and exactly when the stupid software tells you to... BUT

I nmapped a few addresses connected directly to the router, then did the same ones connected to the router... and the results were exactly the same! Not to mention this new "cheap piece of crap" router solved my Linux wireless problems too... the signal even carries up two floors in my house very well!

Logged
Kev
Sr. Member
****
Offline Offline

Posts: 428


View Profile
« Reply #10 on: December 01, 2007, 09:23:51 AM »

Not to mention this new "cheap piece of crap" router solved my Linux wireless problems too... the signal even carries up two floors in my house very well!

 Amazing when the cheap hardware performs better than the overpriced name brand stuff, but I have run into that also.
  Good job on keeping with it until you solved your issue. Sounds like your good to go. To paraphrase an old saying, "there are few problems in hacking that persistence cant solve". Be a little careful about going to wild with scanning blindly over the net. Some ISPs monitor that and will cut your connection.
Logged
seanovision
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #11 on: December 01, 2007, 02:07:54 PM »


I nmapped a few addresses connected directly to the router, then did the same ones connected to the router...


Er, typo, should be directly connected to modem, then through router...

Be a little careful about going to wild with scanning blindly over the net. Some ISPs monitor that and will cut your connection.

Your're right, I don't, I happen to work for an ISP too!  :-)
Logged
Pages: [1]   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 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.