SLAE32 Assignment 7 - custom crypter

i’m not that strong in crypto, but i’ve read enough to be sure i won’t ever write my own encryption algorithm. i for sure can write an obfuscator, but nothing more.

that’s why i choose to use a user friendly language (python) and a ready-to-use library (pyDes) to use a well known - even if old and superseeded - encryption algorithm: DES

i’ll post python code to https://github.com/gulyslae/SLAE32 as 07_crypter.py

usage is pretty simple, just python2 e d payload

because i know i’m lazy, i made it ready to accept shellcode in any format:

  • 0x41,0x42,0x43
  • 0x414243
  • \x41\x42\x43
  • or any combination of the three

for debugging purpose, i also print back decrypted payload when encrypting

SLAE-1037 This blog post has been created for completing the requirements of the SecurityTube Linux Assembly Expert certification: http://securitytube-training.com/online-courses/securitytube-linux-assembly-expert/

Written on August 10, 2019