• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 257
  • Last Modified:

How to implement a port scanner using JScript

I want to implement a small and simple port scanner, with an HTML front-end. I was flirting with using CGI but want to go for Javascript; however, there seems to be very little on the Net in the way of "how-to" go about this. As you may well have guessed I am not a seasoned programmer, so please be gentle. Any help and / or sample code greatly appreciated.

Thanks in advance.
0
chimaera
Asked:
chimaera
1 Solution
 
MarshawkCommented:
In truth, IMO, there is not such thing as a simple port scanner.

It is almost impossible to write a reasonably fast port-scanner without calling the winsock api  directly. You will need to use VB or C++ or similar tool. Even then you have to jump thru hoops to prevent agonizing slow results.

I had to write my own udp dns resolving code in order to get anything close to satisfactory results. It wasn't fun.

I don't know of any activex control that you could use, microsofts winsock control is really not up for the job of implementing a port scanner. Although in this day and age their is probably something somewhere.

Here is a pretty solid link about port scanners:
http://www.insecure.org/nmap/

You may be able to do something with java instead of javascript. But I am not familiar with java.

0
 
jaysolomonCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: Marshawk {http:#8116326}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jAy
EE Cleanup Volunteer
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now