'Dump tcp port to file on W10 without netcat

I use this netcat command:

nc 192.168.1.67 7 >test.txt

to dump raw data from port 7 on 192.168.1.67 to local file test.txt (or indeed test.bin).

Windows 10 defender silently deletes netcat from machines for convenience and security.

I dont want to tell defender to ignore netcat on every machine I use, or fight with it to install netcat in the first place.

Is there a simple command line alternative to achieve the same thing with Windows? Or a variant of netcat that doesnt annoy virus checkers yet allows this command?



Solution 1:[1]

NMAP appears to fit the bill:

https://nmap.org/ncat/

installs netcat for the 21st century..

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 IanH