diff --git a/challenges/web/Status Checker/Dockerfile b/challenges/web/Status Checker/Dockerfile new file mode 100644 index 0000000..381ad0d --- /dev/null +++ b/challenges/web/Status Checker/Dockerfile @@ -0,0 +1,22 @@ +FROM debian:stable + +RUN apt update && apt install -y sudo cron apache2 php libapache2-mod-php curl vim +RUN rm /var/www/html/index.html +RUN echo "HEX{N3tw0rK_ErR_500_W1kS2kKiL}" > /root/flag.txt + +# Change the owner of the /var/www/ directory to www-data +RUN chown www-data:www-data /var/www/ + +# Add www-data to sudoers file for vim command +RUN echo 'www-data ALL=(ALL) NOPASSWD:/usr/bin/vim' >> /etc/sudoers + +# Copy the PHP script to the /var/www/html directory +COPY index.php /var/www/html/index.php + +# Change the Apache port to 50102 +RUN sed -i 's/80/52002/g' /etc/apache2/ports.conf /etc/apache2/sites-available/000-default.conf + +# Start apache2 and cron in the foreground +CMD service apache2 start && cron -f + +EXPOSE 52002 \ No newline at end of file diff --git a/challenges/web/Status Checker/README.md b/challenges/web/Status Checker/README.md new file mode 100644 index 0000000..d9351f8 --- /dev/null +++ b/challenges/web/Status Checker/README.md @@ -0,0 +1,18 @@ +# Status Checker + +Check out this simple HTTP status checker I made! + +## Summary + +- Author: Goh Zavier +- Discord Username: gzavz +- Category: Web +- Diffculty: Medium + +## Hints + +None + +## Flag + +``HEX{N3tw0rK_ErR_500_W1kS2kKiL}`` diff --git a/challenges/web/Status Checker/images/wimg-1.png b/challenges/web/Status Checker/images/wimg-1.png new file mode 100644 index 0000000..1541fae Binary files /dev/null and b/challenges/web/Status Checker/images/wimg-1.png differ diff --git a/challenges/web/Status Checker/images/wimg-2.png b/challenges/web/Status Checker/images/wimg-2.png new file mode 100644 index 0000000..40014f1 Binary files /dev/null and b/challenges/web/Status Checker/images/wimg-2.png differ diff --git a/challenges/web/Status Checker/images/wimg-3.png b/challenges/web/Status Checker/images/wimg-3.png new file mode 100644 index 0000000..f1f681a Binary files /dev/null and b/challenges/web/Status Checker/images/wimg-3.png differ diff --git a/challenges/web/Status Checker/images/wimg-4.png b/challenges/web/Status Checker/images/wimg-4.png new file mode 100644 index 0000000..2bab1f7 Binary files /dev/null and b/challenges/web/Status Checker/images/wimg-4.png differ diff --git a/challenges/web/Status Checker/images/wimg-5.png b/challenges/web/Status Checker/images/wimg-5.png new file mode 100644 index 0000000..fe479f1 Binary files /dev/null and b/challenges/web/Status Checker/images/wimg-5.png differ diff --git a/challenges/web/Status Checker/images/wimg-6.png b/challenges/web/Status Checker/images/wimg-6.png new file mode 100644 index 0000000..5f2544f Binary files /dev/null and b/challenges/web/Status Checker/images/wimg-6.png differ diff --git a/challenges/web/Status Checker/images/wimg-7.png b/challenges/web/Status Checker/images/wimg-7.png new file mode 100644 index 0000000..14a78e0 Binary files /dev/null and b/challenges/web/Status Checker/images/wimg-7.png differ diff --git a/challenges/web/Status Checker/index.php b/challenges/web/Status Checker/index.php new file mode 100644 index 0000000..60ee118 --- /dev/null +++ b/challenges/web/Status Checker/index.php @@ -0,0 +1,44 @@ + + +
+