Re: All tcp ports open?

From: Chris Brenton (cbrenton_at_chrisbrenton.org)
Date: 08/30/04

  • Next message: Nathan R. Valentine: "Re: All tcp ports open?"
    To: Ben Timby <asp@webexc.com>
    Date: Mon, 30 Aug 2004 06:37:59 -0400
    
    

    On Sun, 2004-08-29 at 03:04, Ben Timby wrote:
    >
    > I am pen-testing a Windows webserver, and a port scan reveals ALL tcp
    > ports open. hping also confirms that a SA is returned for any S packets
    > sent to any port I try.

    Been there seen this, its how I like to configure a perimeter. ;-)

    A number of firewalls will do this if you tweak them right. Gauntlet,
    iptables, 4.x and prior Firewall-1, and TCPWrapper just to name a few.
    You can also see this type of response out of load balancers and SYN
    flood protection devices.

    > I can connect via netcat any of the ports, and
    > send data, but nothing is returned.

    So you complete a TCP three packet handshake, send a single ACK with a
    payload, and _nothing_ comes back, not even a RST? If so I would lean
    more towards it being a firewall giving you this response.

    > In order to verify services, I am
    > required to connect and check for a banner or send appropriate protocol
    > commands to elicit a response.

    nmap is your friend:
    nmap -sT -P0 -A -O -F -oN scan.txt 1.1.1.1/24

    "-A" will do some app specific queries to see if there is actually
    anything listening on the port.

    I included "-O" because if all the IP's fingerprint exactly the same,
    its very likely you are talking to a firewall. It sounded like you might
    be checking only 1 IP address however, in which case you can't compare
    the fingerprints of different IPs. You can however at least check to see
    if the fingerprint is for a known firewall that displays the activity
    you describe.

    I included "-F" so you are not scanning *every* port. On the up side
    your scan will go quicker. On the downside, you'll miss apps on
    non-standard ports.

    Happy fishing!
    Chris

    ------------------------------------------------------------------------------
    Ethical Hacking at the InfoSec Institute. All of our class sizes are
    guaranteed to be 12 students or less to facilitate one-on-one interaction
    with one of our expert instructors. Check out our Advanced Hacking course,
    learn to write exploits and attack security infrastructure. Attend a course
    taught by an expert instructor with years of in-the-field pen testing
    experience in our state of the art hacking lab. Master the skills of an
    Ethical Hacker to better assess the security of your organization.

    http://www.infosecinstitute.com/courses/ethical_hacking_training.html
    -------------------------------------------------------------------------------


  • Next message: Nathan R. Valentine: "Re: All tcp ports open?"

    Relevant Pages

    • Re: keeping ports open
      ... If a port is open, it means that 1) a software or service is running on your ... and 2) you're not using a firewall or your firewall isn't ... Use firewall software and hardware and antivirus software that is ... Follow the instructions for hardening Windows and IIS at ...
      (microsoft.public.security)
    • Re: How to Maintain an IIS Server?
      ... > server running on a Windows 2000 server. ... before a firewall and antivirus have been installed]. ... open ports; however, this will not identify which program is using the port. ...
      (microsoft.public.inetserver.iis.security)
    • Re: CEICW fails at firewall config
      ... ISA Server prevents connection to a remote desktop when you connect through ... Remote Web Workplace on a Windows Small Business Server 2003-based computer ... Acceleration Server as a firewall. ... connection uses TCP port 4125. ...
      (microsoft.public.windows.server.sbs)
    • Re: How to Maintain an IIS Server?
      ... >> server running on a Windows 2000 server. ... > before a firewall and antivirus have been installed]. ... > program or executable using that port. ...
      (microsoft.public.inetserver.iis.security)
    • RE: Firewall Friendly Video Conferencing
      ... Subject: Firewall Friendly Video Conferencing ... But the vast majority of applications use Both the TCP ... and UDP ports of the same number. ... Port Purpose ...
      (Security-Basics)