Closed laanwj closed 8 years ago
Choosing to merge this for now since it's a much simpler structure and it lends itself better to future improvements in this space (changing protocols, etc.) I'm not so sure about the ordering, I actually think we should probably come up with a few different sets of scans based on common failures (with web being a baseline since it's the most common, along with ssh and tls) - although I've not yet got a good idea about what that looks like practically.
Create a single table
allScans
with a mapping from scan name to{protocol.Scanner,bool runByDefault}
. Remove the functionPerformNextAction
with the huge switch statement and instead directly use the map for dispatching. Also use this map inGetAllActions
to avoid duplication.The only user visible impact should be that the scans are re-ordered.
This is just an experiment, don't know if you'll see it as an improvement :)