mirror of
https://github.com/h3xduck/TripleCross.git
synced 2025-12-22 17:53:06 +08:00
Adapted memory analysis to larger memory addresses inside the virtual address space. Solved bugs and others, adapting code for RELRO.
This commit is contained in:
15
src/helpers/opcode_reverser.py
Normal file
15
src/helpers/opcode_reverser.py
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env python3
|
||||
import sys
|
||||
from itertools import chain
|
||||
|
||||
while True:
|
||||
arg = input()[::-1]
|
||||
group = 2
|
||||
result = "".join(chain.from_iterable([reversed(elem) for elem in zip(*[iter(arg)]*group)]))
|
||||
|
||||
if(len(result) != len(arg)):
|
||||
print("String not with even characters?")
|
||||
#exit(1)
|
||||
|
||||
print(result)
|
||||
|
||||
Reference in New Issue
Block a user