Skip to content

Commit

Permalink
Fix for PCPP_IP_MORE_FRAGMENTS flag
Browse files Browse the repository at this point in the history
  • Loading branch information
xfangfang committed May 26, 2024
1 parent c0ac85d commit 8558b2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exploit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 8558b2e

Please sign in to comment.