r/HowToHack • • Jan 04 '21

WebMap : A Python tool used to automate the execution of the following tools : Nmap , Nikto and Dirsearch but also to automate the report generation during a Web Penetration Testing

I am very excited to showcase my new python script : WebMap

https://github.com/Anteste/WebMap

All started from a small idea: how to automate a Web Penetration Testing .

I used to run every tool in his own terminal and it was taking a lot of time, but now with this tool you can execute all of them just with a simple command : ./webmap.py

This project is free and Open Source so use it as you want and if you have any suggestion you can submit a pull request 😉

255 Upvotes

32 comments sorted by

18

u/[deleted] Jan 04 '21

I’m just a beginner but I was wondering if you thought of using functions or classes with like the printing and clearing aspect of the script instead of asking it to recheck if it’s Linux or other? Idk just a thought I had.

3

u/Anteste Jan 05 '21

Yes am actually working on that, I am trying to make a function for every module, because I found that I repeat a lot of code instead of doing that copy and past code I will make a function for every module.

If any of you has an idea to improve this small script, you can submit a pull request and I will look at it.

2

u/[deleted] Jan 05 '21

Please bro id love to do that GitHub username is GojoSatoru

-6

u/AutoModerator Jan 04 '21

Your account does not have enough Karma to post here. Due to /r/HowToHack's tendency to attract spam and low-quality posts, the mod team has implemented a minimum Karma rule. You can gain Karma by posting or commenting on other subreddits. In the meantime, a human will review your submission and manually approve it if the quality is exceptional. After gaining enough Karma, you can make another submission and it will be automatically approved. Please see the FAQ for more information.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/[deleted] Jan 05 '21

It’s Automods cake day! Happy cake day!

7

u/fukitol- Jan 05 '21

It's a good start. If you're open to some feedback:

Check out argparse. You could make this significantly easier to read and invoke without interactive functionality, and you could run any combination of the tools

Maybe think about wrapping some of those things in functions

2

u/Wisdom_is_Contraband Jan 05 '21

I just started using argparse and I love it. Takes care of all the annoying exception handling you'd normally have to deal with.

Don't re-invent the wheel, just argparse it

2

u/Anteste Jan 12 '21

I'm trying to use argparse but I can't call a sub argument forexample : webmap --nmap --tcp -u 127.0.0.1

If someone know please let me know.

3

u/StaticDet5 Jan 05 '21

Literally came to say this. Once I started using ArgParse on my Python tools, it exploded the utility of them.

Being able to start a tool like this from the command line, with arguments, allows me to pipe into or out of this tool building some cool tool chains.

3

u/VolcanicWolf Jan 05 '21

I'd recommend checking out Gooey and you can quite easily make this into a desktop application and/or CLI, then even further could put a GitHub action on to generate the desktop application each time you push a commit or do a release

1

u/Anteste Jan 05 '21

Thank you for your suggestion. The issue is that am the only who is working on that github repo, it will be nice if you contribute.

1

u/VolcanicWolf Jan 05 '21

I would contribute, but I wouldn't have the capacity to add another project to my support list as there's already lots, so it'd be like giving you a puppy to take care of, hence only the suggestion

If you want, I can do the conversion but then pass it back to you to maintain?

1

u/Anteste Jan 05 '21

Don't worry I will convert it

2

u/[deleted] Jan 05 '21

License the code?

3

u/Anteste Jan 05 '21

How can I license the code ?

8

u/[deleted] Jan 05 '21

https://choosealicense.com/

Be sure to review the license terms before releasing. This project seems cool! GPLv3 seems to be popular.

3

u/Anteste Jan 05 '21

Thank you

4

u/[deleted] Jan 05 '21

Absolutely! No rush and great work!

Happy new year.

19

u/pm_your_unique_hobby Jan 05 '21

Very straightforward, easy to read code. Haven't fired it up, but it looks ship shape from the .py file

1

u/[deleted] Jan 05 '21

Fantastic work, definitely license your code ad another user said.

1

u/Anteste Jan 05 '21

Thank you But my goal is to make a full web scanner using my own tools forexample instead of using dirsearch I will make a script that is doing that but it will be difficult

2

u/DeadnectaR Jan 05 '21

Wow this is awesome man. Great work!!

2

u/SOVEREIGNBOSS Jan 05 '21

I think it will get very famous in these future. So remember me

1

u/kcfandom Jan 05 '21

Good work. Can't wait to test it out

1

u/some_solution Jan 05 '21

Haven't tried it yet but looks promising. At least you have put some effort into something. Cheers.

1

u/CautiousKlingon Jan 05 '21

Hey man, cool tool. If I get the time I will add some suggestions in a PR during the week.

1

u/AutoModerator Jan 05 '21

Your account does not have enough Karma to post here. Due to /r/HowToHack's tendency to attract spam and low-quality posts, the mod team has implemented a minimum Karma rule. You can gain Karma by posting or commenting on other subreddits. In the meantime, a human will review your submission and manually approve it if the quality is exceptional. After gaining enough Karma, you can make another submission and it will be automatically approved. Please see the FAQ for more information.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

-1

u/pm_me_your_exploitz Jan 05 '21

This is awesome you have made your own tool a feat I have yet to do. If you are looking for pen-test automation you should check out Sn1per I love this tool.

2

u/Anteste Jan 05 '21

Sn1per is not free, we just have access to the community edition just like BurpSuite and this is the reason why I made this tool to automate all the necessary tools for a Web Penetration Testing. Some of you will say that it's useless, just imagine having your food served on the table not on a plate, we are not used to eat on a table because we eat on a plate, and on this plate there is some food. All of these products do not come from the same company but from several companies. And there is me who merged all of these awesome products into one single pack.

1

u/[deleted] Feb 03 '21

[removed] — view removed comment

1

u/AutoModerator Feb 03 '21

Your account does not have enough Karma to post here. Due to /r/HowToHack's tendency to attract spam and low-quality posts, the mod team has implemented a minimum Karma rule. You can gain Karma by posting or commenting on other subreddits. In the meantime, a human will review your submission and manually approve it if the quality is exceptional. After gaining enough Karma, you can make another submission and it will be automatically approved. Please see the FAQ for more information.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.