[talk] x64 Shellcodes for FreeBSD / OpenBSD

Jesse Callaway bonsaime at gmail.com
Mon Apr 4 12:33:08 EDT 2016


On Mon, Apr 4, 2016 at 6:40 AM, Isaac (.ike) Levy
<ike at blackskyresearch.net> wrote:
>
> Hey All,
>
> Someone passes this along to me, thought it of general interest here:
>
> https://odzhan.wordpress.com/2016/04/03/x64-shellcodes-bsd/
>
> Shellcode for *BSD stuff, pretty rare to see in the wild?
>
> Best,
> .ike
>
>
> _______________________________________________
> talk mailing list
> talk at lists.nycbug.org
> http://lists.nycbug.org/mailman/listinfo/talk


I don't really understand the system calls or really the assembler
that much, but thought this was a pretty cool way to get a "negative
1" without fussing about the register width.

 xor     ebx, ebx
 dec     ebx
 push    ebx             ; PARAM: EBX=handle=-1

-- 
-jesse



More information about the talk mailing list