Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <ESP8266WiFi.h>
- #include <DNSServer.h>
- #include <ESP8266WebServer.h>
- const byte DNS_PORT = 53;
- IPAddress apIP(192, 168, 1, 1);
- DNSServer dnsServer;
- ESP8266WebServer webServer(80);
- String responseHTML = ""
- "<!DOCTYPE html><meta name='viewport' content='width=device-width, initial-scale=1'><head><title>Difundir! @archivandochile</title><html><body><h1>La tortura del estado no debe quedar impune!</h1><h1>(Este punto wifi no da internet)</h1><h1>Contra la censura en twitter!</h1><p>Menciona <a href='https://twitter.com/archivandochile'>@archivandochile</a> al compartir una imagen o video desde una cuenta publica de Twitter, si el tweet es guardado recibiras una respuesta automatica con el link.</P><h1>Guardemos imagenes y videos que quedaran en la memoria del pais!</h1><p>Los tweets guardados se almacenan en el canal de Telegram <a href='https://t.me/ArchivandoChile'>https://t.me/ArchivandoChile</a><h1>Saque una captura a esta pagina y difundala por todos lados!</h1><p>Quienes somos? Somos un grupo de estudiantes, hackers, informaticxs de todo el mundo reunidxs y trabajando arduamente para guardar toda evidencia de los sucesos que pasan en chile</p></body></html>";
- void setup() {
- WiFi.mode(WIFI_AP);
- WiFi.softAPConfig(apIP, apIP, IPAddress(255, 255, 255, 0));
- WiFi.softAP("01A-Difundir!");
- // if DNSServer is started with "*" for domain name, it will reply with
- // provided IP to all DNS request
- dnsServer.start(DNS_PORT, "*", apIP);
- // replay to all requests with same HTML
- webServer.onNotFound([]() {
- webServer.send(200, "text/html", responseHTML);
- });
- webServer.begin();
- }
- void loop() {
- dnsServer.processNextRequest();
- webServer.handleClient();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement