赞
踩
import java.io.IOException;
public class WebShell {
public static void main(String[] args) throws IOException {
Runtime.getRuntime().exec("calc");
}
}
import java.io.IOException; import java.io.InputStream; import java.util.Scanner; public class Ping { public static void main(String[] args) throws IOException { Process pro = Runtime.getRuntime().exec(new String[]{"cmd","/c","ping www.baidu.com"});// calc / other InputStream in = pro.getInputStream(); Scanner sc = new Scanner(in); while (sc.hasNextLine()){ System.out.println(sc.nextLine()); } } }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。