v0idcat / Gridscan

GNU General Public License v3.0
0 stars 0 forks source link

Change "vulners" script to "vuln" script to properly enum vulnerabilities on target. #3

Closed v0idcat closed 3 years ago

v0idcat commented 3 years ago

"vulners.nse" script provides less precise output compared to running nmap with the regular "--script vuln" command.

v0idcat commented 3 years ago

This should be a part of the new commands rework issue. Duplicate of #8

v0idcat commented 3 years ago

Had to remove --script=vuln flag from full scan function. It's better to place that scan under a separate function that can either be called by itself, or by full scan. This does mean we need to create a new vuln function scan (already done), and then decide where we want to use vulners script or not (I personally don't).

We should also call quickscan func whenever needed for vulnscan or full scan, and let that func parse its own data rather than letting vuln/full funcs to do so, unless the data isn't already parsed; this should reduce amount of lines and make things easier to read. We could rewrite the quickscan file check too, in filecheck() func, to see if the data has been parsed, since that's what it's supposed to be doing already. We should be able to simply import that global var for checking if files exist or not.