Programming

Saturday 2 May 2020, 00:23  #1
Programming ELF x64 - Shellcoding - Sheep warmup
Sgt4chan
  • 1 posts

Hello everybody,
i am struggling with executing my shellcode; if i feed a command in in the program like this: /xeb, it is converted to its utf-8 representation in the memory, instead of "eb". So I tried to input utf-8 symbols with corresponding hex values, but for most commands i can not find a fitting utf-8 symbol. Any hint on this would be welcome.

Tuesday 30 November 2021, 11:34  #2
Programming ELF x64 - Shellcoding - Sheep warmup
Clement Hamada
  • 2 posts

Hi, try inputting shellcode using a pipe.

The bash provides a convenient syntax
# ./ch12 <<< $’\xeb’