4elta / recon

automate the boring stuff!
GNU General Public License v3.0
8 stars 3 forks source link

Add option to rescan services #49

Closed ikstream closed 1 year ago

ikstream commented 1 year ago

It would be great to have an option to rescan individual services.

If a single service's scans are botched for what ever reason I would like to rescan theses services. If we use the --overwrite flag we would rescan all services on all hosts, which might be very time and resource intense. Therefore something like below would be desirable in my opinion.

-r , --rescan 

e.g.:

python scan.py -i service.xml  --rescan http telnet ... 

One could delete the result files, but this might lead to fat fingering the deletion of additional files. This Could be combined with overwrite and used as --single-scan or something instead where only the provided services are scanned by recon, which might be the better option.

BR

4elta commented 1 year ago

what about this:

the parameters for --rescan are as followed:

<host>[:<port>[/<protocol>][:<service>]] [...]
ikstream commented 1 year ago

If I have like 20 hosts that would need an smb rescan, because I forgot to change the enum4linux-ng command this sounds quite tedious to me

4elta commented 1 year ago

then how about using * if you don't want to specify a particular host/protocol/service?

--rescan *:*:http localhost:udp:* vulnerable.lan:*:*
ikstream commented 1 year ago

Let me put it in my own words to see if I understand your idea correctly.

If that's correct it sounds like a great solution to me.

4elta commented 1 year ago

yeah, that was exactly what i have meant :raised_hands:

awesome! let me get to it :smile: