When I copy Windows binaries like ping or netstat to a different location on the machine I can't get any output.
Example:
>C:\Windows\System32\ping.exe 127.0.0.1
Pinging 127.0.0.1 with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Ping statistics for 127.0.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
>copy C:\Windows\System32\ping.exe n_ping.exe
1 file(s) copied.
>n_ping.exe 127.0.0.1
>n_ping.exe 127.0.0.1 > test.out
>type test.out
>move n_ping.exe ping.exe
>.\ping.exe 127.0.0.1
>
Issue:
No output from n_ping command, but I see ICMP traffic in Wireshark.
Is there a way to get output from binaries like ping and netstat running outside of Windows folder?