sysdream / chashell Goto Github PK
View Code? Open in Web Editor NEWChashell is a Go reverse shell that communicates over DNS. It can be used to bypass firewalls or tightly restricted networks.
Chashell is a Go reverse shell that communicates over DNS. It can be used to bypass firewalls or tightly restricted networks.
Can this works for tunneling?
If no, will this be implemented and how is the data transfer performance?
In file "chaserv.go" import third package "miekg/dns"
Using some kind of func which should be included in that package in Row 210 233 234 235
And those func s are not Correct Quotations, which are marked as "non def"
I think it is mainly a problem of my missing go knowledge, but im getting the following error for compiling on debian linux/amd64:
--> linux/amd64 error: exit status 1 Stderr: chashell.go:4:2: cannot find package "chashell/lib/transport" in any of: /usr/lib/go-1.11/src/chashell/lib/transport (from $GOROOT) /root/.go/src/chashell/lib/transport (from $GOPATH)
dep ensure ran successfully. What am i missing?
I've tried building on multiple machines. Can't because protocol.Message_Infopacket is undefined.
make build dep
dep ensure &&
go build -ldflags "-X main.targetDomain=c.xxxxxxxxxxxxxxxxxxx-X main.encryptionKey=xxxxxxxxxxxxxxxxxxx -s -w" -gcflags "all=-trimpath=OPATH" -tags release -o release/chashell ./cmd/shell &&
go build -ldflags "-X main.targetDomain=c.xxxxxxxxxxxxxxxxxxx-X main.encryptionKey=xxxxxxxxxxxxxxxxxxx -s -w" -gcflags "all=-trimpath=OPATH" -tags release -o release/chaserv ./cmd/server
../../../chashell/lib/transport/polling.go:80:12: undefined: protocol.Message_Infopacket
make: *** [Makefile:27: build] Error 2
InfoPackets messages should be used in order to obtain the remote hostname.
I get the following when running the chashell_windows_386.exe or chashell_windows_amd64.exe client. If I run the linux or Mac OS clients, no server segmentation violation -- it all seems to work fine.
chashell >>> New session : 5ca22ca7f044be1438d8cc0a
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x46a0b6]
goroutine 42 [running]:
bytes.(*Buffer).Write(0x0, 0xc0000b0cc0, 0x24, 0x40, 0xb08b20, 0x0, 0x18)
/usr/local/opt/go/libexec/src/bytes/buffer.go:172 +0x26
main.parseQuery(0xc0000b59e0)
/Users/user/go/src/chashell/cmd/server/chaserv.go:149 +0xc6b
main.handleDNSRequest(0x862a40, 0xc0000bcd80, 0xc0000b5950)
/Users/user/go/src/chashell/cmd/server/chaserv.go:175 +0xac
chashell/vendor/github.com/miekg/dns.HandlerFunc.ServeDNS(0x7fc2a8, 0x862a40, 0xc0000bcd80, 0xc0000b5950)
/Users/user/go/src/chashell/vendor/github.com/miekg/dns/server.go:52 +0x44
chashell/vendor/github.com/miekg/dns.(*ServeMux).ServeDNS(0xc00000c2e0, 0x862a40, 0xc0000bcd80, 0xc0000b5950)
/Users/user/go/src/chashell/vendor/github.com/miekg/dns/serve_mux.go:128 +0x5d
chashell/vendor/github.com/miekg/dns.(*Server).serveDNS(0xc0000c2000, 0xc0000bcd80)
/Users/user/go/src/chashell/vendor/github.com/miekg/dns/server.go:687 +0x298
chashell/vendor/github.com/miekg/dns.(*Server).serve(0xc0000c2000, 0xc0000bcd80)
/Users/user/go/src/chashell/vendor/github.com/miekg/dns/server.go:572 +0x2bc
chashell/vendor/github.com/miekg/dns.(*Server).worker(0xc0000c2000, 0xc0000bc100)
/Users/user/go/src/chashell/vendor/github.com/miekg/dns/server.go:269 +0x1bf
created by chashell/vendor/github.com/miekg/dns.(*Server).spawnWorker
/Users/user/go/src/chashell/vendor/github.com/miekg/dns/server.go:284 +0x83
Some DNS Forwarders are sending multiple DNS queries to the same domain.
We need to handle this behavior.
Chashell should support DNS over HTTPS (DoH).
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.