Netcat is a simple, yet flexible, free program command line, through which you can get the shell of a remote system, send and receive files and email ... and so on and so forth! Let's see how it works.
Netcat is a small open source program written in C and available for several operating systems, with which we can make numerous operations over the network, so as to be considered a bit 'the "boxcutter" Swiss network administrators.
In this article we will see in particular how it is possible to remotely control a PC shell (regardless of the operating systems used) and transfer files to and from it.
Downloading and installing netcat
Clearly you need to be installed on both PC Netcat.
We can download the Windows version from this address. Please note that versions for other operating systems are fully compatible, so you can easily take control of a Linux system from a Windows PC, for example.
Download the file in a folder and extract the contents, copy the file nc.exe folder Windows or Windows System32 so that it is always available from any folder you launch it. This must be done on both PCs).
WARNING: Some antivirus identify nc.exe as Virus (Hacking Tool) ... Netcat is actually used by hackers and crackers, because of its flexibility and ease of use. However, there are many legitimate usage scenario, and the application itself, does not expose any security risk: therefore ignored any warnings, and add to the list of applications Netcat trust.
The methods
There are two methods to get the remote shell:
The "direct" method (Shell Direct), where our PC contact the remote PC, which is waiting for connections on a port. In this case it is important that the remote machine is connected through a modem or (if you use a router) is set up Port Forwarding. The method "Reverse" (Reverse Shell), in which our computer waits for connections and the remote system to connect to us. In this case we may have to set our router to perform port forwarding.
In both cases, do not forget to allow access to the port in use even on your firewall.
The method "Direct Shell"
Preparation of the machine you want to check: Open the command prompt selecting Start-> Run and writing cmd
Now type the command nc-l-p 43712-e cmd.exe-vv in doing so put Netcat listening for connections on port 43712 (but it's fine any other port, provided it is free, of course).
On your PC: Open the command prompt here as before, and type nc 192.168.1.180 43 712 , where instead of the IP address 192.168.1.180 is obviously the system to be controlled.
Within a few seconds you should see a screen like this:
And here's got control of your PC. From here, you can browse the hard drive, start programs, turn off the PC and so on.
The method "Reverse Shell"
Preparation of the local PC: Open the command prompt as described above and type the command nc-l-p 43712-vv in order to put your PC on hold.
On the remote PC: Still in the command prompt, run the command nc-e cmd.exe 192.168.1.180 43 712
The screens that appear are similar to those seen previously.
See Pictures and Read more : With Netcat to best manage and control the PCs on your network
ไม่มีความคิดเห็น:
แสดงความคิดเห็น