[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/sullo/nikto
Browse files Browse the repository at this point in the history
  • Loading branch information
sullo committed Sep 22, 2020
2 parents 15be723 + f6d99d0 commit 1f2e188
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
9 changes: 9 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.git
.gitignore
.gitattributes
.editorconfig
.github
COPYING
devdocs
documentation
README.md
17 changes: 4 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.10.0
FROM alpine:3.12

LABEL version="2.1.6" \
author="Author Paul Sec (https://github.com/PaulSec), Nikto User https://github.com/drwetter" \
Expand All @@ -10,25 +10,16 @@ COPY ["program/", "/nikto"]

ENV PATH=${PATH}:/nikto

RUN echo 'Selecting packages to Nikto.' \
&& apk update \
&& apk add --no-cache --virtual .build-deps \
RUN echo 'Installing packages for Nikto.' \
&& apk add --update --no-cache --virtual .build-deps \
perl \
perl-net-ssleay \
&& echo 'Cleaning cache from APK.' \
&& rm -rf /var/cache/apk/* \
&& echo 'Creating the nikto group.' \
&& addgroup nikto \
&& echo 'Creating the user nikto.' \
&& echo 'Creating the nikto user.' \
&& adduser -G nikto -g "Nikto user" -s /bin/sh -D nikto \
&& echo 'Changing the ownership.' \
&& chown -R nikto.nikto /nikto \
&& echo 'Creating a random password for root.' \
&& export RANDOM_PASSWORD=`tr -dc A-Za-z0-9 < /dev/urandom | head -c44` \
&& echo "root:$RANDOM_PASSWORD" | chpasswd \
&& unset RANDOM_PASSWORD \
&& echo 'Locking root account.' \
&& passwd -l root \
&& echo 'Finishing image.'

USER nikto
Expand Down

0 comments on commit 1f2e188

Please sign in to comment.