summaryrefslogtreecommitdiff
path: root/src/main/java/com/it_jaros/jscanner/Scanner.java
Commit message (Collapse)AuthorAge
* Changing scanner from collecting all results to a stream of output.Gravatar Matthias Jaros2026-07-09
| | | | Saves RAM and is not necessary to first collect everything
* Improved shutdown logic that finally works properlyGravatar Matthias Jaros2026-07-09
| | | | | | | Now if the user quits, then the main thread continues to collect all available results the producer and the host scan port threads close as soon as they check the flag and return whatever they have till now
* CleanupGravatar Matthias Jaros2026-07-09
|
* Same optimization for scanHostPorts as for runScan. Moved producer intoGravatar Matthias Jaros2026-07-09
| | | | same method using function and generics
* Moved producer thread into custom method which encapsulates logic forGravatar Matthias Jaros2026-07-09
| | | | that producer -> reduced complexity of runScan method
* Changed aquireUni.. to aquiere so that it can be interrupted in case of ↵Gravatar Matthias Jaros2026-07-09
| | | | sudden shutdown
* Replaced thread unsafe usage of hasNext()Gravatar Matthias Jaros2026-07-09
|
* Minor improvementsGravatar Matthias Jaros2026-07-09
|
* Fix memory hole in quiet mode at ProgressBarGravatar Matthias Jaros2026-07-09
|
* Same producer pattern for ports as for hostsGravatar Matthias Jaros2026-07-09
|
* Replaced nested while loops with producer thread and consumer stays inGravatar Matthias Jaros2026-07-09
| | | | main thread
* Only save results that found something. Not reachable hosts or no openGravatar Matthias Jaros2026-07-09
| | | | or filtered ports add no value to the scan and thus only cost RAM
* Added ability to read from stdin using StreamsGravatar Matthias Jaros2026-07-09
| | | | Replaced useless counters with already existing hasNext() methods
* Added comments and minor refactoringGravatar Matthias Jaros2026-07-09
|
* Replaced the nested executors with one per scanner. Which is fine for aGravatar Matthias Jaros2026-07-09
| | | | virtualthread executor
* Default timeout for close operation to 60 secondsGravatar Matthias Jaros2026-07-09
|
* Finally managed to get a gracefull shutdown with information about theGravatar Matthias Jaros2026-07-09
| | | | current state of scanned ports
* Reformatted code so that Scan is initialized in Scan class and ScannerGravatar Matthias Jaros2026-07-09
| | | | takes care of the actual Scan and not initializing Scan objects anymore
* Minor fixesGravatar Matthias Jaros2026-07-09
|
* Finally i managed to print also intermediate results when stoppingGravatar Matthias Jaros2026-07-09
| | | | process from running with strg-c
* Changed scanstate to class that now owns completetly the Result List andGravatar Matthias Jaros2026-07-09
| | | | does not allow modifications outside of defined methods. -> thread safe
* Added banner recognition parameter to enable it depending on use caseGravatar Matthias Jaros2026-07-09
|
* Added new Class ScanState in order to make ScannerGravatar Matthias Jaros2026-07-09
| | | | | stateless during scan process. Not regarding config which is given to the constructor
* Make scanner gracefully shutdown on Strg-CGravatar Matthias Jaros2026-07-09
|
* Added quiet flagGravatar Matthias Jaros2026-07-09
|
* CLI options sorted, renamed and description fixedGravatar Matthias Jaros2026-07-09
| | | | Fixed wrong default values by using one source of truth
* Added CompletionServiceGravatar Matthias Jaros2026-07-09
| | | | Use while loop to fill efficiently all available possible virtual threads before starting to check for results
* Properly and consistently named cli parameter and its internal representationGravatar Matthias Jaros2026-07-09
|
* Added banner recognition for basic discovery of servicesGravatar Matthias Jaros2026-07-09
|
* Renamed package from network_scanner to jscannerGravatar Matthias Jaros2026-07-09