From 244d5c4c02130da8509f3a05222d8dc63484ac78 Mon Sep 17 00:00:00 2001 From: Bobby Hines Date: Tue, 26 Jun 2018 11:09:54 -0700 Subject: [PATCH 1/3] Added an "exit" option as Case 5 in the cli menu. Signed-off-by: Bobby Hines --- BadMod.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/BadMod.php b/BadMod.php index 07e620f..217a9b1 100644 --- a/BadMod.php +++ b/BadMod.php @@ -216,7 +216,8 @@ echo "\n [1] Get all server sites \n"; echo "\n [2] Ip generator \n"; echo "\n [3] import sites from txt \n"; -echo "\n [4] Scan single site \n\n"; +echo "\n [4] Scan single site \n"; +echo "\n [5] Exit \n\n"; start2 : echo $white." [(Exec)]>: "; $chos = trim(fgets(STDIN,1024)); switch($chos){ @@ -527,6 +528,17 @@ #// option 4 end\\# ################### +##################### +#// option 5 start\\# +##################### + case 5 : + exit(); + + break; +################### +#// option 5 end\\# +################### + ################### From f7d2abaf4d4d46e2888faa56e31c80f4946e83ab Mon Sep 17 00:00:00 2001 From: Bobby Hines Date: Tue, 26 Jun 2018 11:18:15 -0700 Subject: [PATCH 2/3] Returned to original values. Signed-off-by: Bobby Hines --- BadMod.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/BadMod.php b/BadMod.php index 217a9b1..07e620f 100644 --- a/BadMod.php +++ b/BadMod.php @@ -216,8 +216,7 @@ echo "\n [1] Get all server sites \n"; echo "\n [2] Ip generator \n"; echo "\n [3] import sites from txt \n"; -echo "\n [4] Scan single site \n"; -echo "\n [5] Exit \n\n"; +echo "\n [4] Scan single site \n\n"; start2 : echo $white." [(Exec)]>: "; $chos = trim(fgets(STDIN,1024)); switch($chos){ @@ -528,17 +527,6 @@ #// option 4 end\\# ################### -##################### -#// option 5 start\\# -##################### - case 5 : - exit(); - - break; -################### -#// option 5 end\\# -################### - ################### From d6b4ee52ceb4894d1c151af0898328693e1fd147 Mon Sep 17 00:00:00 2001 From: Bobby Hines Date: Tue, 26 Jun 2018 11:24:47 -0700 Subject: [PATCH 3/3] Added Dockerfile. Build: `docker build -t mrsqar-ye/badmod:latest .` Launch: `docker run -it --rm mrsqar-ye/badmod:latest` Launch w/persistence: `docker run -it --rm -v ${PWD}:/srv/BadMod/ mrsqar-ye/badmod:latest` Signed-off-by: Bobby Hines --- Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d129400 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM php:7-alpine +MAINTAINER "Bobby Hines " + +ENV TERM xterm + +RUN ["apk","update"] +RUN ["apk","upgrade"] + +COPY . /srv/BadMod + +WORKDIR /srv/BadMod +VOLUME /srv/BadMod + +ENTRYPOINT ["php","BadMod.php"] +CMD /bin/sh \ No newline at end of file