Skip to content

Latest commit

 

History

History
35 lines (33 loc) · 1.5 KB

notes.org

File metadata and controls

35 lines (33 loc) · 1.5 KB

Add command to search for references to address

Add string search command

Description

Search for string

Notes

Sections: .data, .rdata, .rsrc. No unicode support. Each string is separated by null byte. Can use fgets() and strstr().

Create find_string_addr() function in utils.c

Create print_dump_str() function for output

Add edit command

Description

Edit binary

Notes

Ask for starting address. User inputs a series of bytes (with or without space separators). Parse input string as bytes, ignoring spaces, keeping track of length. Replace those bytes and save to new file (for testing).

Write case

Create function to duplicate file (precursor to save edited file)

Change save_backup_file() to save_edits_to_file() and include edits

Parse edit string as bytes (ignoring spaces, only allow proper characters)

Function arguments: file pointer, file name, offset to start edit, byte edit string