Skip to content

Instantly share code, notes, and snippets.

View dotsh's full-sized avatar
👾

Mathieu V dotsh

👾
  • ZQA
View GitHub Profile
@dotsh
dotsh / spam_decode.py
Created January 17, 2022 10:38 — forked from lkraider/spam_decode.py
X-OVH-SPAMCAUSE decoder
def decode(msg):
text = []
for i in range(0, len(msg), 2):
text.append(unrot(msg[i: i + 2]))
return str.join('', text)
def unrot(pair, key=ord('x')):
offset = 0
for c in 'cdefgh':