Skip to content

Commit 33152bf

Browse files
Update external/source/exploits/CVE-2023-0386/cve_2023_0386.c
Add setuid(0) and setgid(0) Co-authored-by: Brendan <[email protected]>
1 parent 30704c4 commit 33152bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

external/source/exploits/CVE-2023-0386/cve_2023_0386.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ int main(int argc, char const *argv[])
189189
snprintf(DIR_MERGE, STR_LENGTH, "%s/%s", argv[2], "merge");
190190

191191
preps();
192-
192+
setuid(0)
193+
setgid(0)
193194
int pid = fork();
194195
if (pid == 0)
195196
{

0 commit comments

Comments
 (0)