Skip to content

Commit

Permalink
Allow anonymous in all networks, remove br with the flag in login
Browse files Browse the repository at this point in the history
  • Loading branch information
r4ulcl committed Dec 16, 2024
1 parent 6d176c5 commit ab00efc
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 26 deletions.
26 changes: 0 additions & 26 deletions APs/config/html/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,53 +79,27 @@

# Check IP from CONTOSOREG Relay
if (strpos($_SERVER['REMOTE_ADDR'], '192.168.7.') !== false) {
#relay user
echo "<br><br>";
echo "<br><br>";
echo "flag{3ddc7691df2591decd6ae75b30c4b917cedf6bd2}";
echo "<br><br>";
echo "<br><br>";
}

# Check IP from CONTOSOREG Tablets Relay
if (strpos($_SERVER['REMOTE_ADDR'], '192.168.18.') !== false) {
#relay user
echo "<br><br>";
echo "<br><br>";
echo "flag{de9d7be205df3a9422b7fe054995aac57c41bdbb}";
echo "<br><br>";
echo "<br><br>";
}

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

if (strpos($_SERVER['REMOTE_ADDR'], '192.168.14.') !== false) { #only SAE management
#relay user
echo "<br><br>";
echo "<br><br>";
echo "flag{a192e7909455cb1ffd1d2355e70e2ef0f4ccc811}";
echo "<br><br>";
echo "<br><br>";
}

if (strpos($_SERVER['REMOTE_ADDR'], '192.168.15.') !== false) { #only SAE IT
#relay user
echo "<br><br>";
echo "<br><br>";
echo "flag{f4629b4c22636fa0ae72eb5d1cf9caf88b4ecbee}";
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:";
echo "<br><br>";
echo "Your pass is: SuperSuperSecure@!@";
Expand Down
7 changes: 7 additions & 0 deletions APs/config/mgt/hostapd_wpe.eap_user
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@
* PEAP,TTLS,TLS,FAST [ver=1]
#"t" GTC,TTLS-PAP,TTLS-CHAP,TTLS-MSCHAP,MSCHAPV2,MD5,GTC,TTLS,TTLS-MSCHAPV2 "password" [2]

# Allow anonymous identity
"CONTOSO\anonymous" GTC
"CONTOSO\anonymous" MSCHAPV2
"anonymous@CONTOSO" GTC
"anonymous@CONTOSO" MSCHAPV2


"CONTOSO\Administrator" GTC "SuperSecure@!@" [2]
"CONTOSO\Administrator" MSCHAPV2 "SuperSecure@!@" [2]
"CONTOSO\juan.tr" MSCHAPV2 "bulldogs1234" [2]
Expand Down
4 changes: 4 additions & 0 deletions APs/config/mgt/hostapd_wpe_relay.eap_user
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,9 @@

#"t" GTC,TTLS-PAP,TTLS-CHAP,TTLS-MSCHAP,MSCHAPV2,MD5,GTC,TTLS,TTLS-MSCHAPV2 "password" [2]

# Allow anonymous identity
"CONTOSOREG\anonymous" MSCHAPV2
"anonymous@CONTOSOREG" MSCHAPV2

"CONTOSOREG\luis.da" MSCHAPV2 "u89gh68!6fcv56ed" [2]
"CORPO\god" MSCHAPV2 hash:cbdc3e5938885b7a507775cf22d56351 [2]
4 changes: 4 additions & 0 deletions APs/config/mgt/hostapd_wpe_relay_tablets.eap_user
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,8 @@

#"t" GTC,TTLS-PAP,TTLS-CHAP,TTLS-MSCHAP,MSCHAPV2,MD5,GTC,TTLS,TTLS-MSCHAPV2 "password" [2]

# Allow anonymous identity
"CONTOSOREG\anonymous" MSCHAPV2
"anonymous@CONTOSOREG" MSCHAPV2

"CONTOSOREG\luis.da" MSCHAPV2 "u89gh68!6fcv56ed" [2]
1 change: 1 addition & 0 deletions APs/config/mgt/hostapd_wpe_tls.eap_user
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@

# Allow anonymous identity
"GLOBAL\anonymous" TLS
"anonymous@GLOBAL" TLS

# Existing user identities
"GLOBAL\GlobalAdmin" TLS
Expand Down

0 comments on commit ab00efc

Please sign in to comment.