Browse Source

Reset seek before search

The other strings weren't being caught.
nosoop 4 năm trước cách đây
mục cha
commit
3e3f4b3b31
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      str0.py

+ 1 - 0
str0.py

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