From 69efcdbea2d99afcc97753c578daf172b977c02f Mon Sep 17 00:00:00 2001 From: Michael Gebetsroither Date: Fri, 8 May 2026 23:37:03 +0200 Subject: [PATCH] prepare check only mode (no finaly exploit step) --- exp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/exp.c b/exp.c index 39e7263..832d447 100644 --- a/exp.c +++ b/exp.c @@ -1897,6 +1897,7 @@ static int run_root_pty(void) int main(int argc, char **argv) { int verbose = (getenv("DIRTYFRAG_VERBOSE") != NULL); + int co_flag = (getenv("DIRTYFRAG_CORRUPT_ONLY") != NULL); int force_esp = 0, force_rxrpc = 0; int saved_err = -1; int rc = 1; @@ -1950,7 +1951,9 @@ int main(int argc, char **argv) restore_stderr(saved_err); if (patched) { - (void)run_root_pty(); + if(!co_flag) { + (void)run_root_pty(); + } return 0; }