x1mdev / ReconPi

ReconPi - A lightweight recon tool that performs extensive scanning with the latest tools.
https://x1m.nl/posts/recon-pi/
MIT License
713 stars 116 forks source link

No need to check if dir is already present or not #86

Closed maverickNerd closed 4 years ago

maverickNerd commented 4 years ago

mkdir -p never removes/overwrite existing directory, removing if check as sometimes you need to manually run some tools and you are also maintaining same dir structure that ReconPi follows, then after the manual run, if you run ReconPi, it will not create other directories which you missed during manual enumeration and give you errors.

To avoid this condition, removing if check so that no matter what whenever ReconPi run on a particular domain, it tries to create dir structure and -p make sure that it does not overwrite any existing folder.