i'm doing a project where i run several command line files on an "investigated' computer and the use netcat to put the results of the 'investigation' onto the 'investigator' computer...
so I have it working using netcat,
type f:\diagsfile.txt | nc %ip_add1% 1234
on the 'investigator' computer and ; it basically is a batch file ported to netcat with an option
nc -l -p 1234 > diagsfile.txt
on the 'investigated' computer to open port 1234 and accept a file which will be called diagsfile.txt
the thing i'd like to do is make it fully automatic on the investigator end so i don't have to tell netcat to open a port ... just have the investigated machine do it automatically
is there a way to do that?