Refactorisé les noms des fichiers .html afin qu'ils se trouvent à la fin du directory
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
-- Scripts pour tester le sniffer de smartphone qui essaient de se connecter sur des AP WIFI
|
||||
-- source: https://nodemcu.readthedocs.io/en/dev/modules/wifi/#wifieventmonregister
|
||||
|
||||
print("\n b.lua zf190215.1856 \n")
|
||||
print("\n b.lua zf190217.1253 \n")
|
||||
|
||||
--f= "set_time.lua" if file.exists(f) then dofile(f) end
|
||||
|
||||
@@ -148,10 +148,10 @@ d = 10 ^ ((TxPower - RSSI) / (10 * n))
|
||||
]]
|
||||
|
||||
|
||||
|
||||
wifi.eventmon.register(wifi.eventmon.AP_PROBEREQRECVED, zsniff)
|
||||
|
||||
--[[
|
||||
wifi.eventmon.register(wifi.eventmon.AP_PROBEREQRECVED, zsniff)
|
||||
|
||||
wifi.eventmon.unregister(wifi.eventmon.AP_PROBEREQRECVED)
|
||||
zshow()
|
||||
zsort_rssi()
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr" dir="ltr">
|
||||
|
||||
<head>
|
||||
<meta charset='utf-8' name='viewport' content='width=device-width, initial-scale=1.0'>
|
||||
<title>ESP8266 home page</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>ESP8266 home page 190215.1817</h1>
|
||||
<h2>Différentes pages HTML:</h2>
|
||||
<h3>
|
||||
<a href="page1.html">Page 1, affichage de la température dynamique en code Lua inline.</a><br>
|
||||
<a href="page2.html">Page 2, tableau dynamique écrit en Lua inline.</a><br>
|
||||
<a href="page3.html">Page 3, affichage des résultats du WIFI sniffer écrit en Lua inline.</a><br>
|
||||
<a href="page_qui_existe_pag.html">Page qui n'existe pas !</a><br>
|
||||
</h3>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,7 +1,7 @@
|
||||
-- petit script de serveur WEB avec Active Server Page ZYX
|
||||
-- pour l'instant la partie ASP n'est que mono tâche !
|
||||
|
||||
print("\n web_srv2.lua zf190127.1458 \n")
|
||||
print("\n web_srv2.lua zf190217.1259 \n")
|
||||
|
||||
ztemp=12
|
||||
|
||||
@@ -13,7 +13,7 @@ end
|
||||
-- envoie un fichier HTML sur le port. ATTENTION: longueur de la ligne maximale de 1'024 bytes !
|
||||
function send_file(zclient, zfilename)
|
||||
zzclient = zclient -- export le port sur l'environnement global !
|
||||
if zfilename == "" then zfilename = "index.html" end
|
||||
if zfilename == "" then zfilename = "z_index.html" end
|
||||
if file.open(zfilename, "r") then
|
||||
repeat
|
||||
local line = file.read('\n')
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
-- Petit script pour configurer le client WIFI du NodeMCU
|
||||
|
||||
print("\n wifi_cli_conf.lua zf181205.1931 \n")
|
||||
print("\n wifi_cli_conf.lua zf190217.1245 \n")
|
||||
|
||||
--credentials par défaut
|
||||
cli_ssid="3g-s7"
|
||||
--cli_ssid="3g-s7"
|
||||
cli_ssid="3G-zf"
|
||||
cli_pwd="12234567"
|
||||
|
||||
--ses propre credentials
|
||||
|
||||
20
WIFI_sniffer/z_index.html
Normal file
20
WIFI_sniffer/z_index.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr" dir="ltr">
|
||||
|
||||
<head>
|
||||
<meta charset='utf-8' name='viewport' content='width=device-width, initial-scale=1.0'>
|
||||
<title>ESP8266 home page</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>ESP8266 home page 190217.1258</h1>
|
||||
<h2>Différentes pages HTML:</h2>
|
||||
<h3>
|
||||
<a href="z_page1.html">Page 1, affichage de la température dynamique en code Lua inline.</a><br>
|
||||
<a href="z_page2.html">Page 2, tableau dynamique écrit en Lua inline.</a><br>
|
||||
<a href="z_page3.html">Page 3, affichage des résultats du WIFI sniffer écrit en Lua inline.</a><br>
|
||||
<a href="page_qui_existe_pag.html">Page qui n'existe pas !</a><br>
|
||||
</h3>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user