|
@@ -29,7 +29,7 @@ class EternalBlueExploit(BaseAttack.BaseAttack):
|
|
"""
|
|
"""
|
|
# Initialize attack
|
|
# Initialize attack
|
|
super(EternalBlueExploit, self).__init__("EternalBlue Exploit", "Injects an EternalBlue exploit'",
|
|
super(EternalBlueExploit, self).__init__("EternalBlue Exploit", "Injects an EternalBlue exploit'",
|
|
- "Resource Exhaustion")
|
|
|
|
|
|
+ "Privilege elevation")
|
|
|
|
|
|
# Define allowed parameters and their type
|
|
# Define allowed parameters and their type
|
|
self.supported_params = {
|
|
self.supported_params = {
|
|
@@ -186,7 +186,7 @@ class EternalBlueExploit(BaseAttack.BaseAttack):
|
|
# TCP
|
|
# TCP
|
|
tcp_pkt.setfieldval("sport",port_source)
|
|
tcp_pkt.setfieldval("sport",port_source)
|
|
tcp_pkt.setfieldval("dport",port_destination)
|
|
tcp_pkt.setfieldval("dport",port_destination)
|
|
- ## Window Size
|
|
|
|
|
|
+ ## Window Size (mapping)
|
|
source_origin_win = tcp_pkt.getfieldval("window")
|
|
source_origin_win = tcp_pkt.getfieldval("window")
|
|
if source_origin_win not in source_origin_wins:
|
|
if source_origin_win not in source_origin_wins:
|
|
source_origin_wins[source_origin_win] = source_win_prob_dict.random()
|
|
source_origin_wins[source_origin_win] = source_win_prob_dict.random()
|