The other strings weren't being caught.
@@ -18,6 +18,7 @@ import mmap
import os
def patch_to_null(mbin, target):
+ mbin.seek(0)
offset = mbin.find(target.encode('ascii'))
if offset == -1:
return False