prepare check only mode (no finaly exploit step)

This commit is contained in:
Michael Gebetsroither 2026-05-08 23:37:03 +02:00
parent 4a609f92be
commit 69efcdbea2

3
exp.c
View file

@ -1897,6 +1897,7 @@ static int run_root_pty(void)
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
int verbose = (getenv("DIRTYFRAG_VERBOSE") != NULL); int verbose = (getenv("DIRTYFRAG_VERBOSE") != NULL);
int co_flag = (getenv("DIRTYFRAG_CORRUPT_ONLY") != NULL);
int force_esp = 0, force_rxrpc = 0; int force_esp = 0, force_rxrpc = 0;
int saved_err = -1; int saved_err = -1;
int rc = 1; int rc = 1;
@ -1950,7 +1951,9 @@ int main(int argc, char **argv)
restore_stderr(saved_err); restore_stderr(saved_err);
if (patched) { if (patched) {
if(!co_flag) {
(void)run_root_pty(); (void)run_root_pty();
}
return 0; return 0;
} }