mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-05-04 07:45:04 -04:00
some small fixes
This commit is contained in:
parent
4f8d5148af
commit
16757b10ac
412 changed files with 139509 additions and 0 deletions
18
Useful_Scripts/xor_bytes.py
Normal file
18
Useful_Scripts/xor_bytes.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
|
||||
__author__ = "bt3gl"
|
||||
|
||||
|
||||
def xor_str(str1, str2):
|
||||
flag = ""
|
||||
for i in range(len(str1)):
|
||||
flag += (chr(int(str1[i], 16) ^ int(str2[i], 16)))
|
||||
print flag
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
kTXt = ''.join('28 36 38 2C 10 03 04 14 0A 15 08 14 02 07 08 18 0D 00 61 04 16 11 0B 12 00 07 61 03 0C 73 02 1F 02 1D 06 12 63 04 08 03 0B 1C 14 03 63 1D 0E 03 0A 10 04 2A 61 8F AC C1 00 00 00 00').split()
|
||||
xORk = ''.join('43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57 43 53 41 57').split()
|
||||
|
||||
xor_str(kTXt, xORk)
|
Loading…
Add table
Add a link
Reference in a new issue