mirror of
https://huihui.cat/mirrors/MikroTikPatch.git
synced 2025-12-10 03:24:37 +01:00
Update patch.py
Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
parent
8d38a80dd8
commit
f1ed27cb52
1 changed files with 0 additions and 1 deletions
1
patch.py
1
patch.py
|
|
@ -11,7 +11,6 @@ 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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue