Seenthis
•
 
Identifiants personnels
  • [mot de passe oublié ?]

 

b_b

@b_b
http://www.weblog.eliaz.fr
RSS: b_b
tous les messages de b_b
  • @b_b
    b_b @b_b PUBLIC DOMAIN 21/10/2021
    4
    @biggrizzly
    @ericw
    @cy_altern
    @tofulm
    4

    X-VR-SPAMCAUSE decoder
    ▻https://gist.github.com/lkraider/9530798a695586fc1580d0728966f6f0

    Un petit script #python pour décoder l’entête X-VR-SPAMCAUSE des #mails marqués comme #SPAM, bien utile car tous les outils en ligne à ce sujet ne sont plus disponibles cf ▻https://wiki.visionduweb.fr/index.php?title=Installer_Exim#D.C3.A9crypter_le_contenu_de_la_vari

    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':
           if c in pair:
               offset = (ord('g') - ord(c)) * 16
               break
       return chr(sum(ord(c) for c in pair) - key - offset)

     
    if __name__ == '__main__':
       import sys
       print(decode(sys.argv[1]))
    b_b @b_b PUBLIC DOMAIN
    Écrire un commentaire

thèmes

  • #mails
  • #python
  • #SPAM
À propos de Seenthis Propriété intellectuelle Recommandations API