NASM - The Netwide Assembler

NASM Forum => Example Code => Topic started by: greco558 on March 10, 2018, 01:49:51 AM

Title: byte sequence search
Post by: greco558 on March 10, 2018, 01:49:51 AM
Hi All,
 Here is a program to search a file for byte sequences from 1 byte to 128 bytes in length, I don't
think anyone would search a file with a sequence 128 bytes long.

To run program from command line > ./bytesq -f filename -s 0a845f67ff

As you can see from above you enter hex byte sequence you are searching for after -s option.
program will return the starting byte location or locations the sequence appears in file.


Best Regards
John Endler