go-su-bru

command module
v0.0.0-...-498bc19 Latest Latest
Warning

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

Go to latest
Published: May 1, 2021 License: MIT Imports: 11 Imported by: 0

README

go-su-bru

Go based su password bruteforcer - uses goroutines to start multiple pseudoterminals, then just runs password candidates against su in each terminal over and over.

Unix only, and currently has a sole dependency on golang.org/x/sys/unix

DONT USE FOR ILLEGAL PURPOSES - if only because this is not exactly stealthy.

Usage

Directly invoking the script:

go run gosubru.go targetuser ./wordlist.txt

Additional options: if you specify a third param you can set the number of agents at once (the default is 256).

If you specify a fourth param you can specify the timeout limit for each su instance (default is 5 seconds):

args: username passwordfile [batchsize - defaults 256] [command timeout - defaults 3 (seconds)]

Note, with high batch sizes can be quickish, but su will always be slow. Don't use rockyou with this unless you have a free day or two.

Building

nothing special about compiling this, just make sure you have the unix lib installed:

go get -u golang.org/x/sys/unix
go build -o gosubru gosubru.go

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