def test_pwn_dlresolve_64():
test_file = "tests/bin/bof_dlresolve_64"
input_type = "STDIN"
properties = {"pwn_type": {}}
properties["input_type"] = input_type
properties["file"] = test_file
properties["force_dlresolve"] = True
properties["win_functions"] = []
properties["pwn_type"]["type"] = "Overflow"
with suppress():
# Protections trigger exploit find type
properties["protections"] = protectionDetector.getProperties(test_file)
with suppress():
properties["pwn_type"]["results"] = overflowExploiter.exploitOverflow(
test_file, properties, inputType=input_type
)
assert properties["pwn_type"]["results"]["type"] == "dlresolve"
properties["send_results"] = overflowExploitSender.sendExploit(
test_file, properties
)
> assert properties["send_results"]["flag_found"] == True
E assert False == True
zeratool tests not passed on windows 10 wsl kali linux and kali 2023
于 2023-06-23 23:09:47 首次发布