-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auth successful,Execution command error #3
Comments
that error code is: Is this a test lab environment? is the behavior consistent? |
I have tested it separately on my local machine (Win10 10.0.18363) and virtual machine (win2008serverR2 6.1.7601 Service Pack 1 Build 7601), reporting the same error. |
I have the same err,, whether it use hash or password.
|
yeah ok, I'll try and find some time to dig into this at some point in the near future - any additional details would be great |
the bad stub error is being caused by a bad padding value in either the client name (the attacking machine) or the server name (the victim machine)...somewhere. I've 'fixed' the server name problem in this commit 15e254d, the client name problem can be resolved by using |
go run main.go -t 192.168.192.129 -u administrator -pwd xxxxx -c whoami 不过用在127.0.0.1时,能成功过了。不过能回显whoami之类的命令嘛? |
No - you won't be able to see output of the command, only the PID. The hostname is 15 chars long, - let me see if I can reproduce. |
wmiexec.py uses SMB, and shells out to cmd.exe to execute commands: that is not going to be supported in goWMIExec (though you can do the same operations manually if you really want) |
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
The text was updated successfully, but these errors were encountered: