From 8558b2e998eb40116bce54a0d1af4e96bf0c1efc Mon Sep 17 00:00:00 2001 From: xfangfang <2553041586@qq.com> Date: Sun, 26 May 2024 14:01:49 +0800 Subject: [PATCH] Fix for PCPP_IP_MORE_FRAGMENTS flag --- src/exploit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exploit.cpp b/src/exploit.cpp index 669b255..043a933 100644 --- a/src/exploit.cpp +++ b/src/exploit.cpp @@ -993,7 +993,7 @@ int Exploit::stage4() { ipLayer.getIPv4Header()->timeToLive = 0x40; ipLayer.getIPv4Header()->ipId = htobe16(1); ipLayer.getIPv4Header()->protocol = pcpp::IPProtocolTypes::PACKETPP_IPPROTO_UDP; - ipLayer.getIPv4Header()->fragmentOffset = htobe16(offset / 8 + (offset != 0)) | PCPP_IP_MORE_FRAGMENTS; + ipLayer.getIPv4Header()->fragmentOffset = htobe16(offset / 8 + (offset != 0)) | htobe16(0x2000); ipLayer.getFragmentOffset(); packet.addLayer(&ipLayer);