File tree Expand file tree Collapse file tree 2 files changed +21
-19
lines changed
Expand file tree Collapse file tree 2 files changed +21
-19
lines changed Original file line number Diff line number Diff line change @@ -129,4 +129,24 @@ if [ -d "$PROJECT_FOLDER/venv" ]; then
129129 fi
130130
131131 source $PROJECT_FOLDER /venv/bin/activate
132- fi
132+ fi
133+
134+ # Auto Create Project Note Structure.
135+ function create_project_structure () {
136+ if [ -f " index.md" ]; then # lock the project folder
137+ return
138+ fi
139+ mkdir -p $PROJECT_FOLDER /{hosts,users,services}
140+ touch $PROJECT_FOLDER /hosts/host-list.md
141+ touch $PROJECT_FOLDER /users/user-list.md
142+ touch $PROJECT_FOLDER /services/service-list.md
143+ touch $PROJECT_FOLDER /index.md
144+ echo " Project Folder sturcture created completed!"
145+ }
146+ create_project_structure
147+ unset -f create_project_structure
148+
149+ function clean_project_structure () {
150+ rm -rf $PROJECT_FOLDER /{hosts,users,services} $PROJECT_FOLDER /index.md
151+ echo " Project Folder sturcture cleaned completed!"
152+ }
Original file line number Diff line number Diff line change @@ -165,21 +165,3 @@ function wfuzz_vhost_https () {
165165 wfuzz -c -w $wordlist -H " Host: FUZZ.$host " -u " https://$host " $3 $4 $5 $6 $7 $8 $9 $1 0 $1 1 $1 2 $1 3 $1 4 $1 5 $1 6 $1 7 $1 8 $1 9
166166}
167167
168- function create_project_structure () {
169- if [ -f " index.md" ]; then # lock the project folder
170- return
171- fi
172- mkdir -p $PROJECT_FOLDER /{hosts,users,services}
173- touch $PROJECT_FOLDER /hosts/host-list.md
174- touch $PROJECT_FOLDER /users/user-list.md
175- touch $PROJECT_FOLDER /services/service-list.md
176- touch $PROJECT_FOLDER /index.md
177- echo " Project Folder sturcture created completed!"
178- }
179- create_project_structure
180- unset -f create_project_structure
181-
182- function clean_project_structure () {
183- rm -rf $PROJECT_FOLDER /{hosts,users,services} $PROJECT_FOLDER /index.md
184- echo " Project Folder sturcture cleaned completed!"
185- }
You can’t perform that action at this time.
0 commit comments