Skip to content

Commit

Permalink
Add space clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mcnamee committed Mar 3, 2024
1 parent b563064 commit dccb715
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ RUN git clone --depth 1 https://github.com/Mebus/cupp.git $TOOLS/cupp && \
# dalfox
RUN git clone --depth 1 https://github.com/hahwul/dalfox.git $TOOLS/dalfox && \
cd $TOOLS/dalfox && \
go install
go install && \
rm -rf $TOOLS/dalfox

# dnmasscan
RUN git clone --depth 1 https://github.com/rastating/dnmasscan.git $TOOLS/dnmasscan && \
Expand Down Expand Up @@ -373,6 +374,13 @@ RUN sed -i 's^ZSH_THEME="robbyrussell"^ZSH_THEME="bira"^g' ~/.zshrc && \
echo 'export EDITOR="nano"' >> ~/.zshrc && \
git config --global oh-my-zsh.hide-info 1

# Clean up space - remove version control
RUN cd $HOME && find . -name '.git' -type d -exec rm -rf {} + && \
cd $TOOLS && find . -name '.git' -type d -exec rm -rf {} + && \
cd $ADDONS && find . -name '.git' -type d -exec rm -rf {} + && \
cd $WORDLISTS && find . -name '.git' -type d -exec rm -rf {} + && \
rm -rf /root/.cache

# ------------------------------
# --- Finished ---
# ------------------------------
Expand Down
10 changes: 9 additions & 1 deletion install-in-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ git clone --depth 1 https://github.com/Mebus/cupp.git $TOOLS/cupp && \
# dalfox
git clone --depth 1 https://github.com/hahwul/dalfox.git $TOOLS/dalfox && \
cd $TOOLS/dalfox && \
go install
go install && \
rm -rf $TOOLS/dalfox

# dnmasscan
git clone --depth 1 https://github.com/rastating/dnmasscan.git $TOOLS/dnmasscan && \
Expand Down Expand Up @@ -365,6 +366,13 @@ sed -i 's^ZSH_THEME="robbyrussell"^ZSH_THEME="bira"^g' ~/.zshrc && \
echo 'export EDITOR="nano"' >> ~/.zshrc && \
git config --global oh-my-zsh.hide-info 1

# Clean up space - remove version control
cd $HOME && find . -name '.git' -type d -exec rm -rf {} + && \
cd $TOOLS && find . -name '.git' -type d -exec rm -rf {} + && \
cd $ADDONS && find . -name '.git' -type d -exec rm -rf {} + && \
cd $WORDLISTS && find . -name '.git' -type d -exec rm -rf {} + && \
rm -rf /root/.cache

# --- Finished ---

# Start up commands
Expand Down

0 comments on commit dccb715

Please sign in to comment.