rbsec / dnscan

GNU General Public License v3.0
1.13k stars 410 forks source link

Adding support for Module import #15

Open latest-release opened 5 years ago

latest-release commented 5 years ago

It is possible to add support for module like import to be used in conjunction with other Modules for example

import dnscan or from dnscan import finder

So that it can be used like

results = finder.subdomainfinder("example.com") # return dict

The reason am asking for this is because I have intergrated this module here at https://www.nmmapper.com/sys/tools/subdomainfinder/ But I just use the hard way not module like import. Thank you.

rbsec commented 5 years ago

As you've probably seen, the __main__ in dnscan is quite big and does a lot of setup, which would mean that allowing you can call the functions directly would mean most of that being rewritten.

I've got nothing against the idea of it, so I'll put it on my todo list; but to be honest I've not touched dnscan for a while and don't have a huge amount of time for developing it at the moment, so it may not be something that happens soon.

Always nice to see it being used in other projects through.