/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
import java.net.*;
import java.io.*;
/**
*
* @author 111
*/
public class ScanPort_DOS {
public ScanPort_DOS() {
for (int i = 0; i < 1025; i++) {
try {
Socket sk = new Socket("127.0.0.1", i);
System.out.println("Port:" + i + " Open");
} catch (IOException e) {
}
}
}
public static void main(String[] args) {
new ScanPort_DOS();
}
}
執行畫面如下:
沒有留言:
張貼留言