public class PortScannerApp extends Object
PortScanner
class.
The user can specify the number of threads and the port range on the commandline.------------------------ WebARTS Threaded Port Scanner ------------------------ Syntax: java -jar PortScanner.jar [numThreads] hostname/IP scans the default port range: 9-50001 or java -cp PortScanner.jar ca.bc.webarts.tools.portscanner.PortScannerApp [numThreads] [startPort] [lastPort] hostname/IP where numThreads is a single int specifying the number of doughnuts to order :) hostname/IP is either a hostname or an IP address *
Modifier and Type | Field and Description |
---|---|
static int |
numThreads_ |
static int |
portEnd |
static int |
portStart |
Constructor and Description |
---|
PortScannerApp() |
Modifier and Type | Method and Description |
---|---|
private static PortScanner |
init(String ipAddress,
int fromPort,
int toPort,
ObserverNotifier observer)
Initializes the passed in ObserverNotifier with a new PortScanner.
|
static void |
main(String[] args)
main entry to this app.
|
public static int numThreads_
public static int portStart
public static int portEnd
public PortScannerApp()
private static PortScanner init(String ipAddress, int fromPort, int toPort, ObserverNotifier observer)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses