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

Method upload

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

In upload mode, client reads data from its standard input device and writes it to the socket. @throws Exception

()

Source from the content-addressed store, hash-verified

57 * @throws Exception
58 */
59 @SuppressWarnings("Duplicates")
60 private static void upload() throws Exception {
61 DataOutputStream outToServer = new DataOutputStream(clientSocket.getOutputStream());
62 outToServer.writeBytes(new Scanner(System.in).useDelimiter("\\Z").next());
63 }
64
65 /**
66 * Starts execution of the program, requiring a host name and port number as an argument.

Callers 1

startMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected