Add md5sum faking strategy

This commit is contained in:
Vadim Vetrov
2024-09-13 19:04:48 +03:00
parent aef2b5b469
commit e38e0e7bd9
5 changed files with 72 additions and 12 deletions

View File

@@ -30,7 +30,7 @@ int gen_fake_sni(const void *iph, uint32_t iph_len,
* Invalidates the raw packet. The function aims to invalid the packet
* in such way as it will be accepted by DPI, but dropped by target server
*/
int fail_packet(uint8_t *payload, uint32_t plen);
int fail_packet(uint8_t *payload, uint32_t *plen, uint32_t avail_buflen);
#define PKT_ACCEPT 0
#define PKT_DROP 1