We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 145199c commit 6ba6107Copy full SHA for 6ba6107
1 file changed
mkhex.sh
@@ -107,10 +107,10 @@ then
107
if [[ $flag -eq 3 ]]
108
then
109
cat <<EOF
110
- int ret = mprotect ((void *)((uintptr_t)shellcode & ~4095), 4096,
+ int failure = mprotect ((void *)((uintptr_t)shellcode & ~4095), 4096,
111
PROT_READ | PROT_WRITE | PROT_EXEC);
112
113
- if (ret) {
+ if (failure) {
114
printf ("mprotect\n");
115
return EXIT_FAILURE;
116
}
@@ -121,10 +121,10 @@ EOF
121
122
123
DWORD why_must_this_variable;
124
- BOOL ret = VirtualProtect (shellcode, strlen(shellcode),
+ BOOL success = VirtualProtect (shellcode, strlen(shellcode),
125
PAGE_EXECUTE_READWRITE, &why_must_this_variable);
126
127
- if (!ret) {
+ if (!success) {
128
printf ("VirtualProtect\n");
129
130
0 commit comments