Skip to content
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

Verbosity control flags, default + output #23

Open
chux0r opened this issue Mar 25, 2024 · 1 comment
Open

Verbosity control flags, default + output #23

chux0r opened this issue Mar 25, 2024 · 1 comment
Assignees
Labels
meta- so meta nice feature to have Not core, but not frivolous. Mature products have this.

Comments

@chux0r
Copy link
Owner

chux0r commented Mar 25, 2024

(noflags, default): moderately verbose
-v|--verbose: chatty
--silent: no output
--debug: OMG flood my screen with telemetry

@chux0r chux0r converted this from a draft issue Mar 25, 2024
@chux0r chux0r self-assigned this Mar 28, 2024
@chux0r chux0r added the nice feature to have Not core, but not frivolous. Mature products have this. label Mar 28, 2024
@chux0r chux0r moved this from Backlog to In Progress in Netbang advanced features Mar 28, 2024
@chux0r
Copy link
Owner Author

chux0r commented Mar 28, 2024

  1. Verbosity global added to netbang
  2. Verbosity added to parsePortsCdl()

BUG FOUND ON TEST. Not related, but will open a new issue "Ports will take numbers > 65535 without throwing an error. Number wraps around and is used.

--ctg

mongoose@thoughtcrime:~/workbench/dev/golang/netbang$ ./netbang -p 80,8urr1to-,111,10000,80000 --debug scanme.org
DEBUG: buildPortsList(): Process input [ 80,8urr1to-,111,10000,80000 ] with parsePortsCdl()
DEBUG: parsePortsCDL(): parsing " 80,8urr1to-,111,10000,80000 "
DEBUG: parsePortsCDL(): Evaluating item [ 80 ]
DEBUG: parsePortsCDL(): Item [ 80 ] is a number [ 80 ]. Appended. Current port slice [ [80] ]
DEBUG: parsePortsCDL(): Evaluating item [ 8urr1to- ]
DEBUG: parsePortsCDL(): [ 8urr1to- ] result: NAN
DEBUG: parsePortsCDL(): [ 8urr1to- ] is possibly a port range.
DEBUG: ArgsToPortRange. Result: RANGE[ 0 ]:[ 0 ]
DEBUG: parsePortsCDL(): Evaluating item [ 111 ]
DEBUG: parsePortsCDL(): Item [ 111 ] is a number [ 111 ]. Appended. Current port slice [ [80 111] ]
DEBUG: parsePortsCDL(): Evaluating item [ 10000 ]
DEBUG: parsePortsCDL(): Item [ 10000 ] is a number [ 10000 ]. Appended. Current port slice [ [80 111 10000] ]
DEBUG: parsePortsCDL(): Evaluating item [ 80000 ]
DEBUG: parsePortsCDL(): Item [ 80000 ] is a number [ 80000 ]. Appended. Current port slice [ [80 111 10000 14464] ]

DEBUG: parsePortsCdl() Port range def string:  80,8urr1to-,111,10000,80000

DEBUG: parsePortsCdl() RETURN-> Named portlist strings slice:  []

DEBUG: parsePortsCdl() RETURN-> Uint16 ports slice:  [80 111 10000 14464]
DEBUG: buildPortsList(): Adding [ [80 111 10000 14464] ] to ThisScan...Portlist.
DEBUG: buildPortsList(): Resulting PortList [ [80 111 10000 14464] ]

Bang target: [scanme.org], Portcount: [4]
=====================================================
TCP portbangers unleashed...😎💀💀💀
Jobs run: 4
scanme.org Scan Results
================================================================================
[scanme.org:80] -->     [😎] OPEN
[scanme.org:10000] -->  [💀] ERROR: dial tcp 45.33.32.156:10000: connect: connection refused
[scanme.org:14464] -->  [💀] ERROR: dial tcp 45.33.32.156:14464: connect: connection refused
[scanme.org:111] -->    [💀] ERROR: dial tcp 45.33.32.156:111: i/o timeout

@chux0r chux0r moved this from In Progress to Paused in Netbang advanced features Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta- so meta nice feature to have Not core, but not frivolous. Mature products have this.
Projects
Status: Paused
Development

No branches or pull requests

1 participant