mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-04-27 02:59:08 -04:00
18 lines
373 B
Python
18 lines
373 B
Python
#!/usr/bin/python
|
|
import sys
|
|
|
|
CIPHER = "OMQEMDUEQMEK"
|
|
LETTERS = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
|
|
CIPHER = ""
|
|
shift = 1
|
|
|
|
while i < len(LETTERS):
|
|
for c in CIPHER:
|
|
if c in LETTERS:
|
|
CIPHER += LETTERS[(LETTERS.index(c)+shift)%(len(LETTERS))]
|
|
print("Shift used: " + str(shift))
|
|
print("Ciphertext: " + CIPHER)
|
|
print("CIPHER: " + CIPHER)
|
|
shift = shift + 1
|
|
CIPHER = ""
|