Skip to content

Commit 8d6fa7c

Browse files
committed
use module_by_name in win32 example
1 parent 68e011b commit 8d6fa7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/win32.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ def __str__(self):
2222
inventory = Inventory()
2323
os = inventory.create_os("native")
2424
process = os.process_from_name("CalculatorApp.exe")
25-
module = process.module_from_name("CalculatorApp.dll")
25+
module = process.module_by_name("CalculatorApp.dll")
2626
header = process.read(module.base + 0x40, COFFHeader)
2727
print(header)

0 commit comments

Comments
 (0)