mirror of
https://github.com/Zxilly/UA2F.git
synced 2025-12-31 07:21:07 +00:00
fix: add User-agent
fix for some fucking idiot programmer in Tencent Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>
This commit is contained in:
parent
99f431261d
commit
deca58d5ff
@ -260,8 +260,13 @@ static int queue_cb(const struct nlmsghdr *nlh, void *data) {
|
||||
tcppklen = nfq_tcp_get_payload_len(tcppkhdl, pktb); //获取 tcp长度
|
||||
|
||||
if (tcppkpayload) {
|
||||
char *uapointer = memmem(tcppkpayload, tcppklen, "\r\nUser-Agent: ", 14);
|
||||
|
||||
char *uapointer = memmem(tcppkpayload, tcppklen, "\r\nUser", 6);
|
||||
if (uapointer) {
|
||||
uapointer = memmem(tcppkpayload, tcppklen, "\r\nUser-Agent: ", 14);
|
||||
}
|
||||
if (!uapointer) {
|
||||
uapointer = memmem(tcppkpayload, tcppklen, "\r\nUser-agent: ", 14);
|
||||
}
|
||||
if (uapointer) {
|
||||
debugflag++; //flag5
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user