c-sto / gowmiexec Goto Github PK
View Code? Open in Web Editor NEWReally stupid re-implementation of invoke-wmiexec
Really stupid re-implementation of invoke-wmiexec
how to compix
1.6167636056505682e+09 info wmiexec/wmiexec.go:176 Successfully connected to host and sent an RPC request packet
panic: Got an unexpected response. Wanted 0x02 got 3
goroutine 1 [running]:
main.main()
/home/runner/work/goWMIExec/src/github.com/C-Sto/goWMIExec/main.go:43 +0x65c
goWMIExec_win_v0.0.1-dev-e.exe -target "192.168.13.103:135" -username "administrator" -hash 976b0b02b3e232e15f934c78b87402ac -command "C:\Windows\system32\cmd.exe /c whoami"
1.6061078325528357e+09 info wmiexec/wmiexec.go:176 Successfully connected to host and sent an RPC request packet
1.6061078325528357e+09 info wmiexec/wmiexec.go:188 Resolved names, all network string bindings for host:
1.606107832553833e+09 info wmiexec/wmiexec.go:197 WIN-MLS4E80HOTO
1.6061078325571969e+09 info wmiexec/wmiexec.go:197 192.168.13.103
1.6061078325571969e+09 info wmiexec/wmiexec.go:205 Using first value as target hostname: WIN-MLS4E80HOTO
1.6061078325601912e+09 info wmiexec/wmiexec.go:300 WMI Access possible!
1.6061078325601912e+09 info wmiexec/wmiexec.go:340 Connecting to 192.168.13.103:49154
1.6061078325641837e+09 error wmiexec/wmiexec.go:476 Error: 2147944183
github.com/C-Sto/goWMIExec/pkg/wmiexec.(*wmiExecer).Exec
/home/runner/work/goWMIExec/src/github.com/C-Sto/goWMIExec/pkg/wmiexec/wmiexec.go:476
github.com/C-Sto/goWMIExec/pkg/wmiexec.WMIExec
/home/runner/work/goWMIExec/src/github.com/C-Sto/goWMIExec/pkg/wmiexec/wmiexec.go:786
main.main
/home/runner/work/goWMIExec/src/github.com/C-Sto/goWMIExec/main.go:41
runtime.main
/opt/hostedtoolcache/go/1.x/x64/src/runtime/proc.go:203
panic:
goroutine 1 [running]:
main.main()
/home/runner/work/goWMIExec/src/github.com/C-Sto/goWMIExec/main.go:43 +0x65c
1.599615871744067e+09 info wmiexec/wmiexec.go:68 Hostname too long (over 16 chars). Using first 15 chars: APPLEDEMACBOOK-
1.599615871774055e+09 info wmiexec/wmiexec.go:176 Successfully connected to host and sent an RPC request packet
1.5996158717741098e+09 info wmiexec/wmiexec.go:188 Resolved names, all network string bindings for host:
1.599615871774127e+09 info wmiexec/wmiexec.go:197 vagrant-pc
1.5996158717741382e+09 info wmiexec/wmiexec.go:197 192.168.3.120
1.59961587177415e+09 info wmiexec/wmiexec.go:205 Using first value as target hostname: vagrant-pc
1.599615871833118e+09 info wmiexec/wmiexec.go:299 WMI Access possible!
panic: runtime error: slice bounds out of range [:33] with capacity
i don't know why but i always get this error
panic: nca_s_fault_access_denied,
.\GO-WMIEXEC.exe -target "192.168.152." -username "" -password "*****" -command "whoami"
1.661889712004783e+09 info wmiexec/wmiexec.go:188 Getting network bindings from remote host
1.6618897120142725e+09 info wmiexec/wmiexec.go:193 Resolved names, all network string bindings for host:
1.6618897120152485e+09 info wmiexec/wmiexec.go:195 WinDev2208Eval
1.6618897120152485e+09 info wmiexec/wmiexec.go:195 192.168.152.129
1.6618897120160189e+09 info wmiexec/wmiexec.go:195 192.168.78.128
1.661889712026315e+09 info wmiexec/wmiexec.go:197 Using first value as target hostname: WinDev2208Eval
1.6618897120369613e+09 error wmiexec/wmiexec.go:287 Error: nca_s_fault_access_denied 5
GO-WMIEXEC/pkg/wmiexec.(*wmiExecer).Auth
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.