Advertisement
Guest User

PROTESTAS CHILE 2019 ESP8266 DIFUSIÓN

a guest
Oct 23rd, 2019
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. #include <ESP8266WiFi.h>
  2. #include <DNSServer.h>
  3. #include <ESP8266WebServer.h>
  4.  
  5. const byte DNS_PORT = 53;
  6. IPAddress apIP(192, 168, 1, 1);
  7. DNSServer dnsServer;
  8. ESP8266WebServer webServer(80);
  9.  
  10. String responseHTML = ""
  11. "<!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>";
  12.  
  13. void setup() {
  14. WiFi.mode(WIFI_AP);
  15. WiFi.softAPConfig(apIP, apIP, IPAddress(255, 255, 255, 0));
  16. WiFi.softAP("01A-Difundir!");
  17.  
  18. // if DNSServer is started with "*" for domain name, it will reply with
  19. // provided IP to all DNS request
  20. dnsServer.start(DNS_PORT, "*", apIP);
  21.  
  22. // replay to all requests with same HTML
  23. webServer.onNotFound([]() {
  24. webServer.send(200, "text/html", responseHTML);
  25. });
  26. webServer.begin();
  27. }
  28.  
  29. void loop() {
  30. dnsServer.processNextRequest();
  31. webServer.handleClient();
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement