Announcement

Collapse
No announcement yet.

checking ports

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • checking ports

    how do i check wich ports are open - and how to close them

  • #2
    maybe iam lame or starter or newbie but iam really interested in that area and i just writed my script - and it looks like
    #!/bin/sh
    i=1
    while [ $i -le 10000 ]
    do
    echo | telnet $1 $i
    i=`expr $i + 1`
    done
    it just for search for open ports... i need to close them too
    is there any faster way?
    anyone HELP!!

    Comment


    • #3
      Search Google using these key words ports, open and closed ports, and maybe iptables.

      Also, you may want to check your spelling and grammar in word or something before you post.
      Last edited by lil_freak; December 17, 2004, 11:23. Reason: forgot to add something
      "It is difficult not to wonder whether that combination of elements which produces a machine for labor does not create also a soul of sorts, a dull resentful metallic will, which can rebel at times". Pearl S. Buck

      Comment


      • #4
        nmap - Check open ports

        ident.conf ->FBSD (linux?) to close some

        google search to close windows ports (ie: "SEARCH: PORT 139 close windows")
        "Never Underestimate the Power of Stupid People in Large Groups"

        Comment


        • #5
          I don't believe a Google search sufficiently explains the situation.

          You can see listening ports (i.e., services that are accepting connections) by running `netstat -l` in Linux (or `netstat -a` in Windows and look for "LISTENING").

          As lil_freak indicates, though, listening services may still be firewalled. One solution is to use the tool `nmap` from a remote machine well away from your network.

          Comment


          • #6
            Originally posted by flying
            how do i check wich ports are open - and how to close them
            Depends by what you mean by "open"

            If "open" means, "ports opened by services/applications on your machine waiting for connection requests" then you may want to check out "netstat" for windows and *nix systems and on linux additionally try "lsof -i"

            If by "open" you mean "able to be talked to by people not on your computer" then you have a question filtering/firewalls, and you can use the suggestions above and apply them from a different machine.

            There are web-based "port scanners" which can scan your machine for you and give a report of what service ports are being blocked and which are not, or are partly being blocked.

            Here is one:
            http://www.dslreports.com/scan
            It requires Java to work, and has limited functions, compared to other more advanced port scanners, but it is something.

            Google for others.

            Comment


            • #7
              And here is another one which are very good, and have some more functions.
              https://grc.com/x/ne.dll?bh0bkyd2
              On the same site you will also find several freeware programs which help you disable the messenger service, Dcom (port 135) and the Universal plug and play service (If you are running Windows)
              http://www.grc.com/freepopular.htm
              When people call me normal I know it's time to seek mental help

              Comment


              • #8
                Active ports works well, as does TCPview . Nmap and angry ip scanner will work well for port scanning. And as someone already mentioned.. GOOGLE IS YOUR FRIEND!
                Happiness is a belt-fed weapon.

                Comment


                • #9
                  There are two port-related programs that you should be playing with if you are interested in port scanning:

                  NMAP at http://www.insecure.org/nmap/

                  and

                  Netcat at http://netcat.sourceforge.net/

                  Note that both programs can be run on Windows 2K if so desired. I didn't notice what operating system you were using. Take a little time and read up on these two programs. They serve a variety of other purposes as well as port scanning. Install them, try them out. If you have more questions, post here.

                  Comment

                  Working...
                  X