For file transfer:
At sender:
-------------
nc -lvp 4444 < file1.txt
4444 ---> random port number
At receiver:
--------------
nc <machine1_ip> 4444 > file1_renamed.txt
---------------------
Remote Administration:
At remote machine:
----
nc -lvp 4444 -e cmd.exe
At the machine where we want to connect the remote machine:
-------
nc <machine1_ip> 4444
It will provide access to the command prompt opened on the remote machine.
At sender:
-------------
nc -lvp 4444 < file1.txt
4444 ---> random port number
At receiver:
--------------
nc <machine1_ip> 4444 > file1_renamed.txt
---------------------
Remote Administration:
At remote machine:
----
nc -lvp 4444 -e cmd.exe
At the machine where we want to connect the remote machine:
-------
nc <machine1_ip> 4444
It will provide access to the command prompt opened on the remote machine.
No comments:
Post a Comment