sudo

command module
v0.0.0-...-f523140 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2019 License: MIT Imports: 4 Imported by: 0

README

sudo

Synopsis

sudo for windows is made for elevating user rights on the fly. It will invoke UAC request. The main purpose to get rid of mouse (to avoid shift+rightclick or Run as ...). Since runas cli commmand so much inconvenient to use.

Usage

C:\>sudo cmd /c dir

Then, you'll see the UAC dialog.

Examples

Display contents of file which can't access from you
sudo cmd /c type secret-file.txt > accessible-file.txt
Pipe from/to stream
echo 123 | sudo my-command.exe | more
Change IP address
sudo netsh interface ip add address "Local Area Connection" 33.33.33.33 255.255.255.255
Edit hosts file
sudo notepad c:\windows\system32\drivers\etc\hosts
Create admin's console
sudo

Installation

  • From scratch:

    You will need golang 1.10 or later.

    1. go get github.com/moldabekov/sudo
    2. go build -ldflags"-s -w" .
  • Binary:

    Download from release tab.

License

MIT

Credits

Yasuhiro Matsumoto (a.k.a. mattn) as a initial author.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL