Before we start , I would like to bring your attention to this SLAE course from securitytube which will help you learn Shellcoding - http://www.securitytube-training.com/online-courses/securitytube-linux-assembly-expert/
AGENDA :
1. Write encryption and decryption algorithm using high level language
2. Test encryption algorithm on shellcode
3. Verify decryption algorithm on encrypted shellcode
I have used C# language and made a window based gui application in order to encrypt and decrypt shellcode using AES encryption schema.
Crypter :
A crypter is a program which encrypts the shellcode (in our case) so that anti-virus evasion can be done and has a module called decrypter which decrypts and execute the original shellcode.
I will use execve shellcode and encrypt,decrypt it using our newly made custom crypter.
execve Shellcode :
Extracted shellcode -
"\x31\xdb\xf7\xe3\x04\x0b\x53\x53\x59\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\xcd\x80"
C# code for Crypter :
Proof Of Concept -
1. AES encrypt :
2. AES Decrypt shellcode :
3. Executed the newly generated shellcode.c :
[x] All the codes can be found here at my github :
https://github.com/hexachordanu/SLAE/blob/master/Assignment-7/
This blog post has been created for completing the requirements of the SecurityTube Linux Assembly Expert certification:
http://www.securitytube-training.com/online-courses/securitytube-linux-assembly-expert/
Student-ID: SLAE-1219
1. Write encryption and decryption algorithm using high level language
2. Test encryption algorithm on shellcode
3. Verify decryption algorithm on encrypted shellcode
I have used C# language and made a window based gui application in order to encrypt and decrypt shellcode using AES encryption schema.
Crypter :
A crypter is a program which encrypts the shellcode (in our case) so that anti-virus evasion can be done and has a module called decrypter which decrypts and execute the original shellcode.
I will use execve shellcode and encrypt,decrypt it using our newly made custom crypter.
execve Shellcode :
Extracted shellcode -
"\x31\xdb\xf7\xe3\x04\x0b\x53\x53\x59\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\xcd\x80"
C# code for Crypter :
Proof Of Concept -
1. AES encrypt :
3. Executed the newly generated shellcode.c :
[x] All the codes can be found here at my github :
https://github.com/hexachordanu/SLAE/blob/master/Assignment-7/
This blog post has been created for completing the requirements of the SecurityTube Linux Assembly Expert certification:
http://www.securitytube-training.com/online-courses/securitytube-linux-assembly-expert/
Student-ID: SLAE-1219
I have read your blog its very attractive and impressive. I like it your blog.
ReplyDeleteLinux training in marathahalli Bangalore