Skip to content

Commit

Permalink
Merge pull request #7 from AndrewEastwood/main
Browse files Browse the repository at this point in the history
Improved entrypoint script: accept ip
  • Loading branch information
nanabanano authored Mar 13, 2022
2 parents dfaf3c4 + 74ae733 commit 1eaf356
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docker_entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/bin/bash

HOSTNAME=$1
IP=$(dig +short "$HOSTNAME"| tail -n 1)
python3 -u DRipper.py -s "$IP" -t 135 -p 443
if [ -z "$HOSTNAME" ] ; then
echo error: check your hostname.
else
IP=$(dig +short "$HOSTNAME"| tail -n 1)
if [ ! -z "$IP" ] ; then
python3 -u DRipper.py -s "$IP" -t 135 -p 443
else
python3 -u DRipper.py -s "$HOSTNAME" -t 135 -p 443
fi
fi

0 comments on commit 1eaf356

Please sign in to comment.