6 Incheckningar 9dca83fd68 ... 753535c4dd

Upphovsman SHA1 Meddelande Datum
  Jonas Pflanzer 753535c4dd Merge branch 'develop' 4 år sedan
  Jonas Pflanzer e8fa22efc0 Lorem Ipsum is new speĺled correctly 4 år sedan
  Jonas Pflanzer a3cb0c7053 Link READMEs 4 år sedan
  Serdyukov, Denys 70458ae589 Add example CLI usage scenario 4 år sedan
  Serdyukov, Denys 00f46b9289 Add example CLI usage scenario 4 år sedan
  Serdyukov, Denys 8f0f157644 Add information about the status command to cli/README.md, correct GUI-CLI Protocol. 4 år sedan
3 ändrade filer med 64 tillägg och 1 borttagningar
  1. 1 1
      README.md
  2. 63 0
      cli/README.md
  3. 0 0
      gui/README.md

+ 1 - 1
README.md

@@ -3,7 +3,7 @@
 CCats is a covert channel tool which works as man in the middle.
 Our motivation is to create a tool which allows you to send files over a covert channel between two controlled servers.
 <br/><br/>
-This repository consists of three programs: a server (daemon), a CLI-client and a GUI-client.
+This repository consists of three programs: a [server (daemon)](daemon/README.md), a [CLI-client](cli/README.md) and a [GUI-client](gui/README.md).
 <br/><br/>
 The server manages the uploaded files and transmits the files over the covert channel.
 The clients let you connect and login to the server and upload files and start file transmission over the covert channel.

+ 63 - 0
cli/README.md

@@ -97,3 +97,66 @@ The program can be exited by typing `exit` at any time.
 ## Displaying a list of commands
 
 `help` can be used at any time and shows a list of commands.
+
+# Example usage scenario
+```
+user@pc:~/ccats/build$ ./bin/ccats-cli
+machine mode is 0 file is  enablessl is 0 verbose is 0
+
+Please connect to a server via "connect <ip> <port>", then
+login by entering "login <username> <password>"
+or sign up and log in with "signup <username> <password>".
+
+ccats> connect 0.0.0.0
+Version check ok.
+ccats> login user pass
+Login ok.
+ccats> keyfile key.bin
+Using keyfile key.bin.
+ccats> status
+user@0.0.0.0:1234 - Status: ok
+ccats> put ./loremipsum.txt
+Begin uploading file loremipsum.txt
+ccats> extendedlist
+Files stored on server:
+size (kBytes)  decryptable  file
+         0.51  unknown      loremipsum3.txt
+       339.98  yes          loremipsum.txt
+         0.74  plaintext    loremipsum4.txt
+       339.98  yes          somefancyfile.html
+         0.60  no           loremipsum2.txt
+ccats> queue loremipsum.txt
+File loremipsum.txt queued succesfully.
+ccats> queue loremipsum4.txt
+File loremipsum4.txt queued succesfully.
+ccats> extendedstatus
+
+Transfers between different servers:
+type      progress  method               bytes/sec  file
+upload         42%  tcpurgency             9000.01  loremipsum.txt
+queued          0%  tcpurgency                0.00  loremipsum4.txt
+
+ccats> get ./subpath/somefancyfile.html
+Begin downloading file somefancyfile.html.
+ccats> exit
+Disconnect successful.
+done
+```
+
+### Batchfile example
+
+The same result as above can be produced by writing all commands into a batchfile:
+```
+connect 0.0.0.0
+login user pass
+keyfile key.bin
+status
+put ./loremipsum.txt
+extendedlist
+queue loremipsum.txt
+queue loremipsum4.txt
+extendedstatus
+get ./subpath/somefancyfile.html
+exit
+```
+After calling `./bin/ccats-cli --batch batchfile.bat` these get executed and the same output from above can be found in `batchfile.bat.out`. If an error occurs, the execution is cancelled and the error can be found in `batchfile.bat.err`.

+ 0 - 0
gui/Readme.md → gui/README.md