Skip to content

Commit

Permalink
Fix WEP website configuration and config AP
Browse files Browse the repository at this point in the history
  • Loading branch information
r4ulcl committed May 30, 2024
1 parent e14ac45 commit b32fa6d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions APs/config/html/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

if (strpos($_SERVER['REMOTE_ADDR'], '192.168.6.') !== false) { //only MGT Relay
echo "Hello";
} elseif (strpos($_SERVER['REMOTE_ADDR'], '192.168.1.') !== false) { //only HIDDEN
} elseif (strpos($_SERVER['REMOTE_ADDR'], '192.168.1.') !== false) { //only wep
echo "flag{iAYcxpe6N2A98zhglx6E}";
} elseif (strpos($_SERVER['REMOTE_ADDR'], '192.168.3.') !== false) { //only WPS
echo "flag{KD5TaejRFIDgIQwjgUfB}";
Expand Down Expand Up @@ -102,7 +102,7 @@

if ($_SESSION["Username"] == "administrator") {
if (strpos($_SERVER['REMOTE_ADDR'], '192.168.1.') !== false) { //only WEP
echo "flag{g9Ywbxflpye7P0sVAgRQ}";
echo "flag{iAYcxpe6N2A98zhglx6E}";
} else {
echo "Your Princess Is in Another Castle!";
}
Expand Down
9 changes: 9 additions & 0 deletions APs/config/html/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@
echo "<br><br>";
}

if (strpos($_SERVER['REMOTE_ADDR'], '192.168.1.') !== false) {
#relay user
echo "<br><br>";
echo "<br><br>";
echo "flag{iAYcxpe6N2A98zhglx6E}";
echo "<br><br>";
echo "<br><br>";
}

if (strpos($_SERVER['REMOTE_ADDR'], '192.168.8.') !== false) { //only MGT TLS
echo "<br><br>";
echo "Hello Global Admin:";
Expand Down
4 changes: 0 additions & 4 deletions APs/config/wlan_config_aps
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ WLAN_MGTRELAY_TABLETS=wlan28
IP_MGTRELAY_TABLETS='192.168.18'
MAC_MGTRELAY_TABLETS='F0:9F:C2:7A:33:28'

WLAN_WEP=wlan29
IP_WEP='192.168.19'
MAC_WEP='F0:9F:C2:AA:19:29'

WLAN_=wlan30
IP_='192.168.20'
MAC_=''
5 changes: 2 additions & 3 deletions docker-compose-minimal.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
version: '3.4'
services:
aps:
build: ./APs/
image: r4ulcl/wifichallengelab-aps
restart: unless-stopped
container_name: WiFiChallengeLab-APs
env_file: ./APs/.env
Expand All @@ -12,7 +11,7 @@ services:
privileged: true #NETNS

clients:
build: ./Clients/
image: r4ulcl/wifichallengelab-clients
restart: unless-stopped
container_name: WiFiChallengeLab-Clients
env_file: ./Clients/.env
Expand Down

0 comments on commit b32fa6d

Please sign in to comment.