need4swede / Portall

Port Management Interface
MIT License
398 stars 8 forks source link

Feature request: scheduled nmap scans #26

Open jamess60 opened 3 months ago

jamess60 commented 3 months ago

I have a couple of vms I use to run my docker containers. As I spin up/shut down containers, my ports may change. I propose the ability to schedule nmap scans and update known hosts accordingly.

So far, I had good success with using chatgpt to convert nmap output to json input and using the import feature, but obviously this is a manual process.

idleite commented 3 months ago

The docker integration will auto update when finished

jamess60 commented 3 months ago

The docker integration will auto update when finished

Can you elaborate? What do you mean by this?

idleite commented 3 months ago

The docker integration in pr6 will allow you to define a list of docker hosts with their sockets. You can then set it up to check the docker sockets at and hourly or daily basis. This is still being worked on but, local docker import works but must be triggered manually

jamess60 commented 3 months ago

Ah I see, my bad, I did see this feature.

The nmap idea would allow you to scan the entire lan though, not just docker sockets. This would be useful for things like printers, iot devices etc

need4swede commented 3 months ago

This would be a fun thing to tackle, but it's not a priority at this time. As the app continues to evolve, there's room for additional features in the form of 'Plugins'. At this moment, there are a few plugins being developed, but the manner in which they are written and integrated is a bit of a process - one I hope to remedy in future releases. This does, however, delay the development of any additional features beyond those already in discussion, until a more robust, scalable solution is formed to pave the way for future additions.

Thanks for the suggestion, though! I will keep it open for now. Cheers!

jamess60 commented 3 months ago

Actually, a plugin format is not only a neat idea, but would also integrate well with the nmap idea. Could have a plugin that runs nmap and converts the txt output to json (shouldnt be difficult with python)