From 4df8fbf9c250ef103267bc8b401b620b4ba3e86c Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sat, 18 Oct 2025 01:37:51 +0200 Subject: [PATCH] [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. --- base/applications/network/netsh/interpreter.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/base/applications/network/netsh/interpreter.c b/base/applications/network/netsh/interpreter.c index f4f23d34e6d..35bb3a443a5 100644 --- a/base/applications/network/netsh/interpreter.c +++ b/base/applications/network/netsh/interpreter.c @@ -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;