Working at company like AVET INS allows to get involved with different interesting research projects. Lately we stumbled across writing completely new shellcode for PowerPC architecture. As shellcodes are not the nicest targets for debugging the best option is to place shellcode in some kind of wrapper for testing purposes. In case of Unix-like platforms C is a good choice for writing such wrapper. Here is the simplest wrapper for PCC shellocde compiling under GCC:
long shellcode[] ={
};
void main(void) {
__asm__("b shellcode");
}
pl
en
