-
Notifications
You must be signed in to change notification settings - Fork 283
/
Diagram
76 lines (61 loc) · 5.78 KB
/
Diagram
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
v1.1 Alpha version
_____
|_ _| _ _ __ _ __ __ _
| || | | | '_ \| '_ \ / _` |
| || |_| | | | | | | | (_| |
|_| \__,_|_| |_|_| |_|\__,_|
Tunna 1.1a, for HTTP tunneling TCP connections by Nikos Vassakis
http://www.secforce.co.uk / nikos.vassakis <at> secforce.com
################################################################################################################
High level Diagram:
+-------------------------------------------+ +-------------------------------------------+
| Local Host | | Remote Host |
|-------------------------------------------| |-------------------------------------------|
| +----------+ +------------+ | +-------------+ | +------------+ +----------+ |
| |Client App|+----->|Tunna Client|<==========| Firewall |======>| Webshell |+------>|Server App| |
| +----------+ +------------+ | +-------------+ | +------------+ +----------+ |
+-------------------------------------------+ +------------------------------------------ +
Technical Diagram:
+-------------------------------------------+ +-------------------------------------------+
| Local Host | | Remote Host |
|-------------------------------------------| |-------------------------------------------|
| | | |
| +-----------------+ | | +-----------------+ |
| | Tunna Client | | | | Web Shell (URL) | |
| |-----------------| | | |-----------------| |
| | +-------------+ | | | | | |
| | |HTTP encap. | | | HTTP Traffic | | +-----------+ | |
| | +------^------+ <=================================> |HTTP>Unwrap| | |
| | | | | | | +-----+-----+ | |
| | +-------------+ | | | | | | |
| | | SOCKS 4a | | | | | +-----v-----+ | |
| | +------^------+ | | | | | SOCKS 4a | | |
| | | | | | | +-----+-----+ | |
| | +------+------+ | | | | | | |
| +-| Local Port |-+ | | +--------v--------+ |
| +------^------+ | | | |
| | | | | |
| +----------------+ | | | | +----------------+ |
| |Local Client | | | | +--------> Remote Service | |
| |----------------| | | | |----------------| |
| |Connect to local| | | | |Connection | |
| |Socket | | | | |received from | |
| | +--------+ | | |localhost | |
| | | | | | | |
| | | | | | | |
| +----------------+ | | +----------------+ |
+-------------------------------------------+ +-------------------------------------------+
SOCKS 4a Diagram:
Incoming Connections Remote Services
+--------+ +--------+
|L Port +----+ +------> R Port |
+--------+ | | +--------+
| |
+--------+ | +------------+ +------------| | +--------+
|L Port +----+------>| SOCKS 4a L |-------------------------->| SOCKS 4a R |---+------> R Port |
+--------+ | +------------+ +------------| | +--------+
| |
+--------+ | | +--------+
|L Port +----+ +------> R Port |
+--------+ +--------+
Every "L Port" is mapped to a "R Port" in the remote server