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

Method download

Skay_Exp/src/tools/nc/NetcatServer.java:60–65  ·  view source on GitHub ↗

In download mode, server reads data from the socket and writes it to standard output. @throws Exception

()

Source from the content-addressed store, hash-verified

58 * @throws Exception
59 */
60 @SuppressWarnings("Duplicates")
61 private static boolean download() throws Exception {
62 DataOutputStream outToClient = new DataOutputStream(connectionSocket.getOutputStream());
63 outToClient.writeBytes(new Scanner(System.in).useDelimiter("\\Z").next());
64 return true;
65 }
66
67 private static String getcmd(Scanner sc) throws Exception {
68 String cmd = sc.nextLine();

Callers 1

startMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected