Starts execution of the program, requiring a port number as an argument. @param args @throws Exception
(String[] args)
| 135 | * @throws Exception |
| 136 | */ |
| 137 | public static void main(String[] args) throws Exception { |
| 138 | // if (args[0] != null) { |
| 139 | // start(Integer.parseInt("9000")); |
| 140 | getshell(9000); |
| 141 | // } else { |
| 142 | // System.out.println("usage:\ndownload: java main.java.nc.NetcatServer [port] < [original-file]\nupload: java main.java.nc.NetcatServer [port] > [uploaded-file]"); |
| 143 | // } |
| 144 | } |
| 145 | } |