Category Archives: linux

Shellcode: Dual Mode (x86 + amd64) Linux shellcode

Introduction Someone asked me recently what do you mean by “dual mode shellcode”? and it seems the wording is slightly ambiguous to those unfamiliar with the different operating modes of a CPU like x86 so I just wanted to clarify … Continue reading

Posted in assembly, linux, programming, security, shellcode | Tagged , , , , , | Leave a comment

Shellcode: Execute command for x32/x64 Linux / Windows / BSD

Introduction I was hoping to present here a code that would execute perfectly on 32/64-bit Linux/BSD and Windows systems derived from code discussed here The 64-bit code will execute on all 3 systems but not 32-bit versions of BSD because … Continue reading

Posted in assembly, bsd, linux, shellcode, windows | Tagged , , , , , | 1 Comment

Shellcode: Detection between Windows/Linux/BSD on x86 architecture

Introduction While writing simple Linux/BSD shellcodes, I had a quick look through a FreeBSD/Linux bind shell written in 2002 by a talented coder who went by the pseudonym Z0MBiE. Some of you will know he wrote a lot of cool … Continue reading

Posted in assembly, bsd, freebsd, linux, programming, security, shellcode, windows | Tagged , , , , , , , | 4 Comments

Shellcode: Linux amd64

Introduction Just a quick blog about some simple shellcodes for x64 build of Linux you might find useful as a reference if nothing else. 😉 Assemble as binary files with NASM/YASM and edit before execution. For example: yasm -fbin rs.asm … Continue reading

Posted in assembly, linux, programming, shellcode | Tagged , , , | 1 Comment

Shellcodes: Executing Windows and Linux Shellcodes

Introduction Recently, I finished an interactive shell for windows written in C which is also position independent. The server component runs on UNIX based OS and I was trying to test out delivery of the PIC to windows machine over … Continue reading

Posted in assembly, linux, shellcode, windows | Tagged , , , , , | 2 Comments