Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
iamtorsten committed Aug 23, 2024
1 parent 3d36718 commit d20f695
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dump/mem_dump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8776,4 +8776,4 @@
0x1076: add byte ptr [rax], al
0x1078: add dword ptr [rax], eax
0x107a: add byte ptr [rax], al
-> ----------------------------------------------- <-
-> ----------------------------------------------- <-
3 changes: 1 addition & 2 deletions emu/ds.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def disassemble_code(code, address, dump=True):
# Disassemble the binary data
if dump:
with open(f"dump/mem_dump.txt", "a") as f:
f.write(f'{datetime.now().strftime("%Y%m%d_%H%M%S")}\n') # Write timestamp for better investigation
f.write(f'{datetime.now().strftime("%Y%m%d_%H%M%S")}\n') # Write timestamp for better investigation
for instr in md.disasm(code, address):
Print(f"0x{instr.address:x}:\t{instr.mnemonic}\t{instr.op_str}")
if dump:
Expand All @@ -20,4 +20,3 @@ def disassemble_code(code, address, dump=True):
if dump:
with open(f"dump/mem_dump.txt", "a") as f:
f.write(f"-> ----------------------------------------------- <-\n")

3 changes: 2 additions & 1 deletion mem.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from emu.injector import Inject

target = "" # Enter the name of the app to be monitored here.
source = "mem.js"

def on_message(message, data):
if message['type'] == 'send':
Expand All @@ -33,7 +34,7 @@ def on_message(message, data):
def main():
try:
# Load the Frida script
with open("hook/mem.js") as f:
with open(f"hook/{source}") as f:
script_code = f.read()

# Setup Device, Session and Source
Expand Down

0 comments on commit d20f695

Please sign in to comment.