Skip to content

Commit

Permalink
fixed if error
Browse files Browse the repository at this point in the history
  • Loading branch information
1ikeadragon committed Jul 25, 2024
1 parent 53007d7 commit 4024359
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 1 addition & 6 deletions Dockerfiles/recon/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
FROM golang:latest

RUN apt update -y && apt install -y nmap git vim python3 python3-pip unzip curl screen
RUN apt update -y && apt install -y nmap git vim python3 python3-pip unzip curl

WORKDIR /recon

COPY recon.sh /recon

RUN chmod +x /recon/recon.sh

RUN go install -v github.com/projectdiscovery/pdtm/cmd/pdtm@latest && go install -v github.com/OJ/gobuster/v3@latest && go install github.com/lc/gau/v2/cmd/gau@latest && go install github.com/ffuf/ffuf/v2@latest && go install -v github.com/tomnomnom/anew@latest

RUN pdtm -i subfinder,dnsx,httpx,nuclei,katana,chaos-client,notify

ENV PATH="/root/.local/bin:/root/.pdtm/go/bin:/root/go/bin:/usr/local/bin:${PATH}"

CMD [ "./recon.sh" ]
4 changes: 1 addition & 3 deletions submon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ echo -e '
'

if [ -z "$1" ] || [ -z "$2" ]; then
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then
echo -e "\033[33m[-]\033[0m usage: submon.sh target.com HRS skid.yaml"
exit 1
fi
Expand All @@ -36,13 +36,11 @@ function run_monitoring() {
notify_setup=$(yq eval .webhooks "$skidyml")

echo -e "\e[32m[+]\e[0m Configuring tools\n"
if [ -f ""]
echo "$subfinder_setup" > $subfinder_config
echo "$notify_setup" > $notify_config
else
echo -e "\033[33m[-]\033[0m Provider config file not found! Continuing without keys and hooks"
fi

}

set_config
Expand Down

0 comments on commit 4024359

Please sign in to comment.