-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v2.1 from dev to main
- Loading branch information
Showing
112 changed files
with
1,349 additions
and
2,379 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Docker Image CI nzyme DEV | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'dev' | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push | ||
id: docker_build | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./nzyme | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/wifichallengelab-nzyme:dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Docker Image CI nzyme | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 | ||
with: | ||
images: ${{ secrets.DOCKERHUB_USERNAME }}/wifichallengelab-nzyme | ||
|
||
- name: Build and push | ||
id: docker_build | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./nzyme | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ logsClient/* | |
vagrant/.vagrant/* | ||
vagrant/date.log | ||
*.log | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
FROM debian | ||
#FROM kalilinux/kali-rolling | ||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y macchanger sudo iw libcurl4-openssl-dev curl libz-dev module-assistant libssl-dev libnl-genl-3-dev libnl-3-dev pkg-config libsqlite3-dev git hostapd dnsmasq make g++ libnl-3-dev libnl-genl-3-dev apache2 php wpasupplicant iproute2 net-tools iptables kmod iputils-ping gettext-base wget | ||
|
||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y macchanger sudo iw libcurl4-openssl-dev curl libz-dev module-assistant libssl-dev libnl-genl-3-dev libnl-3-dev pkg-config libsqlite3-dev git hostapd dnsmasq make g++ libnl-3-dev libnl-genl-3-dev apache2 openssl php libapache2-mod-php wpasupplicant iproute2 net-tools iptables kmod iputils-ping gettext-base wget | ||
|
||
#RUN date | ||
|
||
|
@@ -10,7 +11,6 @@ COPY config/psk/ /root/psk/ | |
COPY config/mgt/ /root/mgt/ | ||
COPY config/wpa3/ /root/wpa3/ | ||
COPY config/wep/ /root/wep/ | ||
COPY config/certs/ /root/mgt/certs/ | ||
|
||
#COPY var file | ||
COPY config/wlan_config_aps /root/ | ||
|
@@ -22,32 +22,52 @@ COPY config/connectINET.sh /root/ | |
COPY config/cronAPs.sh /root/ | ||
|
||
#Update certs | ||
#RUN cd /root/mgt/certs/ ; make install | ||
#RUN cd /root/certs/ ; make install | ||
|
||
COPY config/dnsmasq.conf /etc/dnsmasq.conf.tmp | ||
COPY config/interfaces /etc/network/interfaces.tmp | ||
|
||
#Copy HTML files | ||
COPY config/html /var/www/html/ | ||
RUN mkdir /var/www/html/.internalCA/ | ||
RUN cp /root/mgt/certs/ca.crt /var/www/html/.internalCA/ca.crt.txt \ | ||
; cp /root/mgt/certs/ca.key /var/www/html/.internalCA/ca.key.txt \ | ||
; cp /root/mgt/certs/ca.serial /var/www/html/.internalCA/ca.serial.txt \ | ||
; cp /root/mgt/certs/server.crt /var/www/html/.internalCA/server.crt.txt \ | ||
; cp /root/mgt/certs/server.key /var/www/html/.internalCA/server.key.txt \ | ||
; cp /root/mgt/certs/client.ext /var/www/html/.internalCA/client.ext.txt \ | ||
; cp /root/mgt/certs/client.conf /var/www/html/.internalCA/client.conf.txt \ | ||
; chown -R www-data:www-data /var/www/html/ ; rm /var/www/html/index.html | ||
|
||
RUN chown -R www-data:www-data /var/www/html/ | ||
RUN rm /var/www/html/index.html | ||
|
||
# Make sure Apache uses index.php as the default file | ||
RUN echo "<IfModule mod_dir.c>\n DirectoryIndex index.php index.html\n</IfModule>" > /etc/apache2/mods-enabled/dir.conf | ||
|
||
# Enable the SSL and rewrite modules | ||
RUN a2enmod ssl && a2enmod rewrite | ||
|
||
# Create a custom SSL VirtualHost configuration for Apache | ||
RUN echo "<IfModule mod_ssl.c>\n\ | ||
<VirtualHost *:443>\n\ | ||
ServerAdmin [email protected]\n\ | ||
DocumentRoot /var/www/html\n\ | ||
SSLEngine on\n\ | ||
SSLCertificateFile /root/certs/server.crt\n\ | ||
SSLCertificateKeyFile /root/certs/server.key\n\ | ||
<Directory /var/www/html>\n\ | ||
Options Indexes FollowSymLinks\n\ | ||
AllowOverride All\n\ | ||
Require all granted\n\ | ||
</Directory>\n\ | ||
ErrorLog \${APACHE_LOG_DIR}/error.log\n\ | ||
CustomLog \${APACHE_LOG_DIR}/access.log combined\n\ | ||
</VirtualHost>\n\ | ||
</IfModule>" > /etc/apache2/sites-available/default-ssl.conf | ||
|
||
# Enable the SSL site | ||
RUN a2ensite default-ssl.conf | ||
RUN a2enmod ssl | ||
|
||
#WPS | ||
RUN touch /var/run/hostapd_wps_pin_requests | ||
|
||
#Apache | ||
RUN update-rc.d apache2 defaults | ||
|
||
|
||
#Change name of wpa_supplicant to avoid airmon-ng check kill, etc | ||
RUN mv /usr/sbin/hostapd /usr/sbin/hostapd_aps | ||
#Change name of hostapd to avoid airmon-ng check kill, etc | ||
RUN mv /usr/sbin/hostapd /usr/sbin/host_aps_apd | ||
|
||
|
||
COPY config/ns-inet.sh /root/ | ||
|
@@ -72,5 +92,8 @@ COPY config/opennds.conf.tmp /etc/opennds/opennds.conf.tmp | |
COPY config/theme_user-email-login-basic.sh /usr/lib/opennds/ | ||
RUN chmod +x /usr/lib/opennds/theme_user-email-login-basic.sh | ||
|
||
# Expose both HTTP and HTTPS ports | ||
EXPOSE 80 443 | ||
|
||
# exec ns-inet.sh and waits aits | ||
CMD ["/bin/bash", "/root/ns-inet.sh"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.