[NETSH] Add a special code path to execute commands that follow the pushd command

This enables the execution of commands like 'pushd interface ip' which is emitted by the dump command of WinXPs ifmon.dll.
This commit is contained in:
Eric Kohl
2025-10-18 01:37:51 +02:00
parent 6762703ce4
commit 4df8fbf9c2

View File

@@ -213,6 +213,16 @@ InterpretCommand(
else
ConPrintf(StdOut, L"Command: %s Error: %lu\n\n", pCommand->pwszCmdToken, dwError);
}
else
{
/* Execute the commands following a pushd command */
if ((_wcsicmp(pCommand->pwszCmdToken, L"pushd") == 0) &&
(dwArgIndex < dwArgCount))
{
State = STATE_ANALYZE;
break;
}
}
}
State = STATE_DONE;