?? scan.java
字號:
/*
* scan.java
*
* Created on 22 octobre 2008, 20:53
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package TP3;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.Socket;
import java.net.URL;
import java.net.UnknownHostException;
/**
*
* @author Administrateur
*/
public class scan {
/** Creates a new instance of scan */
public scan() {
}
public static void main(String [] args)
{
String hote ="localhost";
if(args.length>0)
hote=args[0];
String protocole []={"http","ftp","file","Telnet","Ldap"};
String fichier="";
for(int i = 135; i<136;i++)
{
for(int j=0;j<protocole.length;j++)
{
try
{
Socket s = new Socket(hote,i) ;
// String p = protocole[];
URL r = new URL(protocole[j],hote,i,fichier);
System.out.println("un serveur est rattach
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -