Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci authored Dec 11, 2024
1 parent e905fea commit 7fa52f1
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@
## Architecture
Grasshopper functions as a chained relay system. Take a chained DNS query For example:
```
┌────────────┐ ┌───────────────┐
│ ENCRYPTED │ │ RE-ENCRYPTION │
└──────┬─────┘ │ AES ───► 3DES │
│ └───┬───────────┘
┌─────────┐▼ ┌────────────┐│ ┌─────────┐
<HOP0> HOPS(AES) │ DECRYPTED │▼ <HOP5>
┌───────────────┐ └ ┌────┐ └ DATA HOPS(3DES) HOPS(FINAL)
│ dig xxx @hop0 ┼──► CLEAR TEXT │HOP1┼─CIPHER──► PACKET ┌─┴──┐ CIPHERTEXT ┌────┐ ┌────────────┐
└───────────────┘ ┌ │Hop2│ ┌ │Hop4├──────►(3DES) │Hop6│───►│ 8.8.8.8:53 │
│ ▲ │HOP3│ <HOP2> ▲ │Hop5│ ┌ │Hop7│ └────────────┘
│ │ └────┘ │ │ └─┬──┘ │ └────┘
└──┼──────┘ └─────┼──────┘ └─────────┘
┌──┼────────┐
│ │
│ OPTIONAL ┼───────────────
│ PACKET │
│ PROCESSOR │
│ │
┌────────────┐ ┌───────────────┐
│ ENCRYPTED │ │ RE-ENCRYPTION │
└──────┬─────┘ │ AES ───► 3DES │
└───┬───────────┘
┌─────────┐▼ ┌────────────┐│ ┌─────────┐
<HOP0> HOPS(AES) │ DECRYPTED │▼ <HOP5> HOPS(FINAL)
┌───────────────┐ └ ┌────┐ └ DATA HOPS(3DES)
│ dig xxx @hop0 ┼──► CLEAR TEXT │HOP1┼─CIPHER ──► PACKET ┌─┴──┐ └ DNS ┌─┼──┐ ┌────────────┐
└───────────────┘ ┌ │Hop2│ (AES) ┌ │Hop4├─ CIPHER ──► QUERY │Hop6│───►│ 8.8.8.8:53 │
│ ▲ │HOP3│ <HOP2> ▲ │Hop5│ (3DES) ┌ │Hop7│ └────────────┘
│ │ └────┘ │ │ └─┬──┘ │ └────┘
└──┼──────┘ └─────┼──────┘ └─────────┘
┌──┼────────┐
│ │
│ OPTIONAL ┼──────────────────┘
│ PACKET │
│ PROCESSOR │
│ │
└───────────┘
```

Expand Down

0 comments on commit 7fa52f1

Please sign in to comment.