El Blog de Seguridad
A place to keep a record of my journey through IT security
  • Home
  • About Me
  • Security Tools

network Category

Opening Ports in Windows 7 Firewall

network 1 Comment »

Maximumpcguides.com offers a very easy-to-follow guide on opening a port in Windows 7′s firewall.  I had thought that simply setting up a service to run and making sure firewallthat that service was listed as “approved” in the firewall, as well as making sure my router had the port open that I would be good to go.  Sadly it was not that simple.  One tool that helped me realize that this was the problem was uTorrent’s port checker URL: http://www.utorrent.com/testport?port=80.  Simply change the port number at the end of the URL to test if the port is open on your firewall.  If it isn’t, follow the above guide.

Here are the steps I followed, in case the above mentioned guide becomes unavailable:

  1. Browse to the Advanced Settings of the Windows Firewall
  2. Select Inbound Rules in the left column
  3. Select New Rule in the right column
  4. Select Port in the rule wizard
  5. List the port(s) that you want opened
  6. Select Allow the Connection
  7. Specify where you would like the rule applied
  8. Name the rule and click Finish.

March 1st, 2010 |

Tags: windows7 firewall ports




Nmap

Windows Command Line, network No Comments »

Scanning tools are useful both to hackers and system administrators.  At work we’ll be using a tool called Discovery and Dependency Mapping which basically scans the entire network and gathers information on all the devices on the network and their dependency on eachother.  This is probably a little more advanced than Nmap, but a real-life example of sys. admins wanting to know what’s on the network.

Nmap is a very useful, free scanning utility.  The first objective is to find out what hosts are out on a network.  Issuing the command “nmap -sP 192.168.100.*” would bring back all the hosts on the 192.168.100.0 network.

example of using nmap -sP

example of using nmap -sP

The next step is to stack fingerprint the network using the command “nmap -sT 192.168.100.102″:

nmap -sT

nmap -sT

To see what Nmap is doing, you can use Wireshark to capture the packets that go to and from the target computer.  Here’s an example of nmap hitting port 80 on the target computer:

wireshark_nmap_st1

This command (nmap -sT) shows you the ports open on the target system, as well as the services running on those ports.  This can help you identify what operating system the computer is running which allow you to probe deeper and find out, for example, the type of server and version.  If you’re worried about your scan showing up on the target computer’s logs (as evident in the three-way handshake completed when identifying port 80 as open in the above image), you can do a stealth mode scan with “nmap -sS x.x.x.x”.

Running the command “nmap -O x.x.x.x” will have Nmap guess the operating system on the machine.  I didn’t have much success with that command (from the command line), but using the GUI and command “nmap -T4 –version-light -sV -F -O 192.168.100.102″, it guessed the OS as Windows along with a list of possible versions.

nmap_gui_os_scan

Nmap GUI

Network traffic generated from using Nmap, shown by its signature, can be very detectable.  Nmap can be configured to mask its signature from being easily detected.


January 14th, 2009 |

Tags: network, port scanning, tools




Three-way Handshake

network No Comments »

The three-way handshake is the process by which two computers create a reliable connection to eachother using TCP (Transmission Control Protocol).  The computer requesting the connection sends out a synchronize packet (SYN), when the second computer receives this packet it responds by sending a synchronize packet and an acknowledgement packet (SYN/ACK).  When the initiating computer receives the acknowledgement from the requested computer, it then sends an ACK packet as well, completing the three-way handshake.  There now exists an open-communication channel between the two computers until one issues a “FIN” or “RST” packet or the connection times out.

This is a very important concept in IT security, and it is also very exploitable.  When you think about it, the requesting computer is making sure it is connecting to the right computer before completing the connection.  What happens if someone intercepts the SYN packet (disguised as the designated computer) and sends a spoofed SYN/ACK and the requestor then completes the connection thinking it’s connected to the desired computer?  Or someone can listen in on the connection you’ve made (if it isn’t secure) and disguise information/malware to look like it came from the computer you’re talking to.

Another vulnerability occurs when someone maliciously sends out a flood of SYN packets from a spoofed IP address to a server, causing the server to consume large amounts of resources trying to keep up with these malicious packets.  This is a form of a denial-of-service attack (DoS).  This vulnerability is less of a worry with modern networks.

Sources: wikipedia, Computer Security Lab Manual


November 3rd, 2008 |

Tags: DoS, network, SYN, tcp




  • Recent Posts

    • Internet/Computer Security Advice
    • Opening Ports in Windows 7 Firewall
    • Setting up Netbook to Dual Boot to Backtrack 4
    • XSS: Cross Site Scripting
    • nessusrc
  • Security Blogs

    • Craig Security
    • DarkNet.org
    • DarkReading.com
    • GNU Citizen
    • Iron Geek
    • Matasano
    • RootSecure.net
  • RSS Security Articles

    • The Inside Scoop on DoD Thinking September 3, 2010 Richard Bejtlich
    • Review of Hacking Exposed: Wireless, 2nd Ed Posted September 2, 2010 Richard Bejtlich
    • Successful Attack Against a Quantum Cryptography System September 2, 2010 schneier
    • CNN: The iPad is for grandparents, not just geeks September 2, 2010 (author unknown)
    • c|net: Twitter plans to record all links clicked September 2, 2010 (author unknown)
    • Network World: Deutsche Post kicks off bug bounty contest "Researchers can make up to $6,400 for finding flaws in German firm's secure message service" September 2, 2010 (author unknown)
    • Cyber-Offence is the New Cyber-Defense September 2, 2010 schneier
    • Threat Post: Google Code Discovered Serving Malware September 2, 2010 (author unknown)
    • CNet: Skyfire promises Flash video playback on its iPhone app September 2, 2010 (author unknown)
    • IT World: China demands real names from mobile phone users September 2, 2010 (author unknown)
  • Categories

    • Nessus
    • network
    • OWASP Top 10
    • Security Advice
    • Security Tools
    • Tutorial
    • Uncategorized
    • Windows Command Line
  • Archives

    • August 2010
    • March 2010
    • January 2010
    • November 2009
    • January 2009
    • November 2008
    • October 2008
Copyright © 2010 El Blog de Seguridad All Rights Reserved
RSS XHTML CSS Log in
Wp Theme by n Graphic Design
Powered by Wordpress