From e9452b56950910f798bd9c42a2e684e65f68e126 Mon Sep 17 00:00:00 2001 From: sacha Date: Mon, 1 Apr 2024 17:54:41 +0200 Subject: [PATCH] Update wifi-sncf-tgv.sh --- wifi-sncf-tgv.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wifi-sncf-tgv.sh b/wifi-sncf-tgv.sh index f275158..61f698e 100644 --- a/wifi-sncf-tgv.sh +++ b/wifi-sncf-tgv.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ### Wifi @ SNCF TGV INOUI -### Sacha 20240401 +### Sacha 20240401 ### Validate captive portal access wifiinterface="wlp170s0" @@ -11,7 +11,7 @@ tmpfile=/tmp/wifi-tgv.tmp nmap --script broadcast-dhcp-discover -e $wifiinterface > $tmpfile DNS=$(grep "Domain Name Server" $tmpfile | awk -F: '{gsub (" ", "", $0); print $2}') -# Enabling the wifi +# Enabling the wifi echo "Enabling SNCF's Wifi" curl --silent --output /dev/null -X POST 'https://wifi.sncf/router/api/connection/activate/auto' --resolve wifi.sncf:443:$DNS