The command shell is a method of directly communicating with a remote system via an instruction or command-line interface. Existing remote command execution tools besides being difficult to set up, require client software to be installed on the remote systems that you wish to access.
netexec allows you to execute a command on a remote machine without physically logging in to that machine. Full interactivity for console applications is provided. No client software installation is required.
This tool helps system administrators perform housekeeping tasks and helps security auditors to execute programs on remote systems as the direct access to those are not always possible.
Just copy netexec onto your executable path. Executing "netexec" with no command line options displays usage syntax.
The syntax is straightforward and easy to learn, making remote command-line administration and security auditing much more efficient.
By pressing the Ctrl+C key combination, the runtime menu will appear as shown below
You can enclose applications that have spaces in their name with quotation marks
e.g. netexec 10.10.8.7 "c:\long name\application.exe".
Input is only passed to the remote system when you press the Enter key. Typing Ctrl-C terminates the remote process. Alternatively, you could also write the above command in the following manner:
netexec 10.10.8.7 application.exe -dir "c:\long name"
If you fail to specify a user name, the remote process runs with the credentials of the logged-in user. Note that the password is transmitted in clear text to the remote system. Arguments supplied to netexec are case sensitive.netexec sets %SystemRoot%\system32\ as the default directory on the remote computer.Download netexec (72 KB)
To launch an interactive command prompt on 10.10.8.7 using administrator credentials:
netexec 10.10.8.7 -u administrator cmd
To upload the file a.exe on the remote system, with the directory on the remote system set to c:\myprogram\, type
netexec 10.10.8.7 -u administrator a.exe -dir c:\myprogram\
NOTE: Ensure that the file a.exe exists on the remote system
To copy and execute the application myexe.exe on a remote system without leaving a copy of the application on the remote machine,
netexec 10.10.8.7 -u administrator -cp myexe.exe
To connect to a remote host by the name "foo" with the currently logged in user's credentials and obtain a shell,
Operating Systems supported:
netexec has been tested on Windows NT 4.0 Server, Windows NT 4.0 workstation, Windows 2000, Windows XP and Windows 2003.
netexec is the first in an entire command-line toolkit named NSTools from Net-Square, that aid in the administration and audit of remote Windows NT/2K/XP/2003 systems.