carlospolop / legion

Automatic Enumeration Tool based in Open Source tools
https://book.hacktricks.xyz/pentesting-methodology
MIT License
877 stars 150 forks source link

Update main.py #29

Open badr-elmazaz opened 1 year ago

badr-elmazaz commented 1 year ago

made it more pythonic

carlospolop commented 1 year ago

Hi @badr-elmazaz, does this work? removing all the warriors doesn't look like it will

badr-elmazaz commented 9 months ago

Hi @carlospolop sorry, I had some notification issues that now I have solved, I just checked your reply. Actually it does not work. My real solution is to use a factory pattern here instead of using an elif structure, what do you think about it? It will be more robust and less timeconsuming when we will add new class. Let me know what you think about it, in this way I can contribuite with this idea.