MCPcopy Create free account
hub / github.com/0linlin0/CyberBox / main

Method main

Skay_Exp/src/tools/nc/NetcatClient.java:71–77  ·  view source on GitHub ↗

Starts execution of the program, requiring a host name and port number as an argument. @param args @throws Exception

(String[] args)

Source from the content-addressed store, hash-verified

69 * @throws Exception
70 */
71 public static void main(String[] args) throws Exception {
72 if (args[0] != null && args[1] != null) {
73 start(args[0], Integer.parseInt(args[1]));
74 } else {
75 System.out.println("usage:\ndownload: java main.java.nc.NetcatClient [host] [port] > [downloaded-file]\nupload: java main.java.nc.NetcatClient [host] [port] > [original-file]");
76 }
77 }
78}

Callers

nothing calls this directly

Calls 1

startMethod · 0.95

Tested by

no test coverage detected