Remove prehook

ether_thief
Bernhard Mueller 5 years ago
parent 7359a45990
commit e0c8e812f1
  1. 3
      mythril/analysis/module/modules/ether_thief.py
  2. 1
      mythril/laser/ethereum/transaction/symbolic.py

@ -34,7 +34,6 @@ class EtherThief(DetectionModule):
swc_id = UNPROTECTED_ETHER_WITHDRAWAL
description = DESCRIPTION
entry_point = EntryPoint.CALLBACK
pre_hooks = ["CALL", "STATICCALL"]
post_hooks = ["CALL", "STATICCALL"]
def reset_module(self):
@ -67,7 +66,7 @@ class EtherThief(DetectionModule):
constraints = copy(state.world_state.constraints)
"""
Fixme: Potential issue should only be created it call target is the attacker.
FIXME: Potential issue should only be created it call target is the attacker.
This requires a prehook in addition to the posthook
"""

@ -145,6 +145,7 @@ def execute_contract_creation(
)
_setup_global_state_for_execution(laser_evm, transaction)
new_account = new_account or transaction.callee_account
laser_evm.exec(True)
return new_account

Loading…
Cancel
Save