mirror of
https://github.com/elseif/MikroTikPatch.git
synced 2026-10-23 03:24:53 +00:00
1 parent
2f0f0b1abb
commit
f4af3671be
1 file changed
+1
@@ -11,6 +11,7 @@ def replace_key(old,new,data):
|
||||
pattern = re.compile(pattern_bytes, flags=re.DOTALL)
|
||||
def replace_match(match):
|
||||
print(f'public key patched {old[:16].hex().upper()}...')
|
||||
print(f'public key patched {match.group(0).hex().upper()}...')
|
||||
replaced = b''.join([new_chunks[i] + match.group(i+1) for i in range(len(new_chunks) - 1)])
|
||||
replaced += new_chunks[-1]
|
||||
return replaced
|
||||
|
||||
Reference in new issue
Block a user