mirror of
https://github.com/V4bel/dirtyfrag.git
synced 2026-05-16 10:50:10 +00:00
prepare check only mode (no finaly exploit step)
This commit is contained in:
parent
4a609f92be
commit
69efcdbea2
1 changed files with 4 additions and 1 deletions
5
exp.c
5
exp.c
|
|
@ -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) {
|
||||||
(void)run_root_pty();
|
if(!co_flag) {
|
||||||
|
(void)run_root_pty();
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue