Browse Source

README documents

cecylia 8 years ago
parent
commit
78ef8f2cfb
4 changed files with 41 additions and 1 deletions
  1. 4 1
      client/Makefile
  2. 18 0
      client/README
  3. 10 0
      client/ous.sh
  4. 9 0
      server/README

+ 4 - 1
client/Makefile

@@ -1,6 +1,6 @@
 CFLAGS=-g -Wall
 
-TARGETS= testget
+TARGETS= socks
 
 all: $(TARGETS)
 
@@ -9,6 +9,9 @@ rclient.o ptwist168.o testget.o:: ptwist.h
 testget: testget.c rclient.o ptwist168.o ptwist.h
 	gcc -g -o $@ $^ -I/home/sltiheen/Downloads/include/openssl libssl.a libcrypto.a -ldl
 
+socks: socks5proxy.c
+	gcc -o $@ $^ -lpthread -lssl -lcrypto
+
 clean:
 	-rm *.o
 

+ 18 - 0
client/README

@@ -0,0 +1,18 @@
+To install:
+
+make openssl (cbocovic/slitheen version)
+copy path to include files and libraries to makefile
+
+make phantomjs (cbocovic/slitheen version)
+move it to this directory
+
+run make
+
+make
+
+To run:
+
+$./socks
+$./ous.sh
+
+set web browser proxy to send to localhost:1080

+ 10 - 0
client/ous.sh

@@ -0,0 +1,10 @@
+#!/bin/bash
+
+count=0
+while true
+do
+	count=$((count+1))
+	echo "Calling phantomJS fr the $count th time"
+	./phantomjs --ssl-callbacks=slitheen --ssl-protocol=tlsv1.2 --ssl-ciphers=DHE-RSA-AES256-GCM-SHA384 loadpage.js > out-$count-put.out
+done
+

+ 9 - 0
server/README

@@ -0,0 +1,9 @@
+To install:
+
+open slitheen-proxy.c and change the MAC address to your client machine
+make openssl
+copy libraries and include directories into makefile
+make
+
+To run:
+./slitheen-proxy [interface to client] [interface to world]