I am trying to figure out exactly what SQL statements an executable is running. I can view or grep the file to see the text, but there is a lot of it. Is there a good way to retrieve these string from a binary file? The closest I've gotten so far is
But I still end up with loads of binary data. Ideally, I just want every match of the word delete followed by a space followed by a table name (letters and underscores) to end up as the results. I'd appreciate any advice you can offer. Thanks.
-----------------------------------------
I cannot be bought. Find leasing information at
Code:
grep -i --binary-files=text "delete " FILENAME > delete.txt
-----------------------------------------
I cannot be bought. Find leasing information at