table of contents
winexe(1) | General Commands Manual | winexe(1) |
NAME¶
winexe - Command line tool to execute a command on a remote Windows host
SYNOPSIS¶
winexe OPTIONS //host command
DESCRIPTION¶
This tool allows to execute a command on a remote Windows system. It is derived from the samba tools and shares several options with other samba tools.
OPTIONS¶
- --uninstall
- Uninstall winexe service after remote execution.
- --reinstall
- Reinstall winexe service before remote execution.
- --system
- Use SYSTEM account.
- --runas=[DOMAIN]USERNAME%PASSWORD
- Run as user (BEWARE: password is sent in cleartext over net).
- --interactive=INT
- Desktop interaction: 0 - disallow, 1 - allow. If you allow use also --system switch (Win requirement). Vista do not support this option.
- --ntlmv1=INT
- Only use the NTLM v1 protocol for authentication: 0 - disabled, 1 - NTLMv2 Authentication disabled.
- -?, --help
- Show help.
- --usage
- Display brief usage message.
- -d, --debuglevel=DEBUGLEVEL
- Set debug level.
- --debug-stderr
- Send debug output to STDERR.
- -s, --configfile=CONFIGFILE
- Use alternative configuration file.
- --option=NAME=VALUE
- Set smb.conf option from command line.
- -l, --log-basename=LOGFILEBASE
- Basename for log/debug files.
- --leak-report
- enable talloc leak reporting on exit.
- --leak-report-full
- enable full talloc leak reporting on exit.
- -R, --name-resolve=NAME-RESOLVE-ORDER
- Use these name resolution services only.
- -O, --socket-options=SOCKETOPTIONS
- socket options to use.
- -n, --netbiosname=NETBIOSNAME
- Primary netbios name.
- -W, --workgroup=WORKGROUP
- Set the workgroup name.
- --realm=REALM
- Set the realm name.
- -i, --scope=SCOPE
- Use this Netbios scope.
- -m, --maxprotocol=MAXPROTOCOL
- Set max protocol level.
- -U, --user=[DOMAIN]USERNAME[%PASSWORD]
- Set the network username.
- -N, --no-pass
- Don't ask for a password.
- --password=STRING
- Password.
- -A, --authentication-file=FILE
- Get the credentials from a file.
- -S, --signing=on|off|required
- Set the client signing state.
- -P, --machine-pass
- Use stored machine account password (implies -k).
- --simple-bind-dn=STRING
- DN to use for a simple bind.
- -k, --kerberos-file=STRING
- Use Kerberos.
- --use-security-mechanisms=STRING
- Restricted list of authentication mechanisms available for use with this authentication.
- -V, -version
- Print version.
EXAMPLES¶
winexe -U "COMPANY/user%mysecret" //192.168.1.42 "ipconfig /all"
Connect to the Windows system running at IP address 192.168.1.42 with the user "user" in domain "COMPANY" and the password "mysecret". If you drop the password, it will be asked for.
SEE ALSO¶
MORE INFORMATION ABOUT THE OPENVAS PROJECT¶
The canonical places where you will find more information about the OpenVAS project are: http://www.openvas.org/ (Official site) http://wald.intevation.org/projects/openvas/ (Development Platform)
COPYRIGHT¶
The omp command line client is released under the GNU GPL, version 2, or, at your option, any later version.
User | Manuals |