-
Notifications
You must be signed in to change notification settings - Fork 819
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ja3_fingerprint: add modify-incoming option (#10886)
This adds the optional modify-incoming argument to the ja3_fingerprint.so plugin. This argument alters the header modification behavior to add the X-JA3-* headers to the incoming client request rather than to the outgoing proxy request. This allows other plugins later in the plugin.config file to view the added headers as if they were added by the client, which can be helpful to some plugins.
- Loading branch information
Showing
7 changed files
with
145 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/gold_tests/pluginTest/ja3_fingerprint/modify-incoming-client.gold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
+++++++++ Incoming Request +++++++++ | ||
-- State Machine Id`` | ||
GET `` | ||
host: `` | ||
content-length: `` | ||
x-request: `` | ||
uuid: `` | ||
X-JA3-Sig: `` | ||
x-JA3-RAW: `` | ||
`` |
11 changes: 11 additions & 0 deletions
11
tests/gold_tests/pluginTest/ja3_fingerprint/modify-incoming-proxy.gold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
+++++++++ Proxy's Request after hooks +++++++++ | ||
`` | ||
+++++++++ Proxy's Request after hooks +++++++++ | ||
-- State Machine Id`` | ||
POST `` | ||
Host: `` | ||
Content-Type: `` | ||
uuid: `` | ||
x-request: `` | ||
X-JA3-Sig: `` | ||
`` |
10 changes: 10 additions & 0 deletions
10
tests/gold_tests/pluginTest/ja3_fingerprint/modify-sent-client.gold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
+++++++++ Incoming Request +++++++++ | ||
`` | ||
+++++++++ Incoming Request +++++++++ | ||
-- State Machine Id`` | ||
POST `` | ||
Host: `` | ||
Content-Type: `` | ||
uuid: `` | ||
x-request: `` | ||
`` |
15 changes: 15 additions & 0 deletions
15
tests/gold_tests/pluginTest/ja3_fingerprint/modify-sent-proxy.gold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
+++++++++ Proxy's Request after hooks +++++++++ | ||
`` | ||
+++++++++ Proxy's Request after hooks +++++++++ | ||
-- State Machine Id`` | ||
POST `` | ||
Host: `` | ||
Content-Type: `` | ||
uuid: `` | ||
x-request: `` | ||
Client-ip: `` | ||
X-Forwarded-For: `` | ||
Via: `` | ||
Transfer-Encoding: `` | ||
X-JA3-Sig: `` | ||
`` |