chux0r / netbang

Scrappy scanner written in Go. Exploring the relevance of "scanning" in the new realm, what redteams need, and what methods can get us what we need quickly and, if at all possible, silently.
https://github.com/chux0r/netbang
GNU General Public License v2.0
2 stars 1 forks source link

MVP feature :: TCP scanning #2

Closed chux0r closed 11 months ago

chux0r commented 1 year ago

Build and test: TCP Connect TCP Half-open TCP full-open TCP close TCP connection error collection/handling TCP session error collection/handling Response collection

chux0r commented 1 year ago

3 depends on TCP scanning to be moved into its own func.

chux0r commented 1 year ago

tcpScan barebones is complete and implemented in main(); tested on tcp_test_win portlist on localhost; output nominal:

PS C:\Users\geigner\workbench\dev\golang\netscanx> go run ./main.go
Success
Error: [dial tcp 127.0.0.1:137: connectex: An attempt was made to access a socket in a way forbidden by its access permissions.]
Error: [dial tcp 127.0.0.1:139: connectex: No connection could be made because the target machine actively refused it.]
Success
Success
Success
Success
Success
Error: [dial tcp 127.0.0.1:8000: connectex: No connection could be made because the target machine actively refused it.]
Error: [dial tcp 127.0.0.1:9999: connectex: No connection could be made because the target machine actively refused it.]
chux0r commented 1 year ago

TCP Connection, 3-way handshake(FULL) barebones done. See var conn *Conn

chux0r commented 1 year ago

New spec: need tcpScan() to use only a single arg to accommodat channel broker.

chux0r commented 1 year ago

blocker for #3 resolved: tcpScan() uses single arg

chux0r commented 11 months ago

12/12 status. Done so far: TCP connect TCP full-open TCP close TCP connection error collection/handling TCP session error collection/handling Response collection

still need: TCP half open

chux0r commented 11 months ago

moving TCP half-open scanning to feature: "special packet flags constructor". TCP scanning is implemented