You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alternatively, you can install it using `go install` command (requires Go [1.24](https://go.dev/doc/install) or later):
@@ -154,7 +158,7 @@ Options:
154
158
-logfile string
155
159
Log file path (Default: stdout)
156
160
-nocolor
157
-
Disable colored output forlogsin stdout (no effect if log file provided or -j flag specified)
161
+
Disable colored output for logs (no effect if -j flag specified)
158
162
-s string
159
163
Address of SOCKS5 proxy server (default "127.0.0.1:1080")
160
164
-sniff
@@ -432,6 +436,8 @@ ip link del veth1
432
436
433
437
`GoHPTS` proxy allows one to capture and monitor traffic that goes through the service. This procces is known as `traffic sniffing`, `packet sniffing` or just `sniffing`. In particular, proxy tries to identify whether it is a plain text (HTTP) or TLS traffic, and after identification is done, it parses request/response metadata and writes it to the file or console. In the case of `GoHTPS` proxy a parsed metadata looks like the following (TLS Handshake):
434
438
439
+
### JSON format
440
+
435
441
```json
436
442
[
437
443
{
@@ -553,13 +559,35 @@ And HTTP request with curl:
553
559
Usage as simple as specifying `-sniff` flag along with regular flags
554
560
555
561
```shell
556
-
gohpts -d -t 8888 -M redirect -sniff
562
+
gohpts -d -t 8888 -M redirect -sniff -j
557
563
```
558
564
559
565
You can also specify a file to which write sniffed traffic:
560
566
561
567
```shell
562
-
gohpts -d -sniff -snifflog ~/sniff.log
568
+
gohpts -sniff -snifflog ~/sniff.log -j
569
+
```
570
+
571
+
### Colored format
572
+
573
+
You can see the example of colored output in the picture at the very top. In this mode, `GoHPTS` tries to highlight import information such as TLS Handshake, HTTP metadata, something that looks line login/passwords or different types of auth and secret tokens. The output is limited comparing to JSON but way easier to read for humans.
574
+
575
+
To run `GoHPTS` in this mode you use the following flags:
0 commit comments