Explorar o código

Reset seek before search

The other strings weren't being caught.
nosoop %!s(int64=4) %!d(string=hai) anos
pai
achega
3e3f4b3b31
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      str0.py

+ 1 - 0
str0.py

@@ -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