nodemcu

NodeMCU入坑指南-低成本打造零舍友闻风丧胆WiFi断网神器

无人久伴 提交于 2020-04-08 17:54:24
前言 最近对IoT方面比较感兴趣,所以在某宝上入手了一块NodeMCU的开发板,至于为什么我选择这块开发板呢?嘿嘿,当然是因为便宜啊🤭!在学习IoT的闲暇之余我了解到这个板子竟然还能制作成令舍友闻风丧胆的WiFi断网神器!哈哈,必须搞他! 这次我们要用到的是spacehuhn开源项目,通过这个spacehuhn项目任何人都能够将自己的esp8266模块打造成wifi干扰器,利用802.11wifi协议的漏洞,通过向目标AP和客户端设备发送大量解除认证帧从而使目标断开网络连接。 项目地址: https://github.com/spacehuhn/esp8266_deauther 如果访问GITHUB有困难的的话可以选择百度云下载 链接:https://pan.baidu.com/s/1KFhfC9uyPsnA0BXFvLmxXA 提取码:cg5m 操作步骤: 1.选择下载好的固件,使用flasher.exe将固件进行烧录 不会烧录操作的可以看我另一篇博客《 NodeMCU入坑指南-烧写固件并连接WIFI 》 2.烧写成功后,nodemcu会创建一个名为 pwned 密码为 deauther 的热点,如果没有的话可以重新拔插一下板子,连上该网络后在浏览器里打开192.168.4.1页面进行管理 连上这个WiFi后就可以开始作孽了🤭 选择一个WiFi就可以开始展开攻击了~

nodemcu 透传

﹥>﹥吖頭↗ 提交于 2020-04-05 17:40:46
1.刷入AT固件 把模块usb连接电脑后,运行ESP8266一键烧录工具,ESP8266Flasher.exe,设置好波特率位115200,flash等如下图 按钮齿轮,选固件 按钮flash开始 点击一键烧写,等一会就好了(左下角会出现绿色箭头)。刷入固件后复位重启。 2.设置透传参数 打开串口调试助手,测试AT指令,OK, AT+GMR查询版本。 AT+GMR 查询版本 AT+CWMODE=1 设置STA模式 AT+CWLAP 查询可以查到的wifi信号 AT+CWJAP="rwk00","12345678" 设置wifi账号和密码 3.查看nodemcu的ip AT+CIFSR 查看本地ip +CIFSR:STAIP,"192.168.43.98" +CIFSR:STAMAC,"8c:aa:b5:c5:e5:2c" OKAT+CIPMUX=0 设置成单路连接模式 AT+CIPMODE=1 设置为透传模式 4.手机上打开网络调试助手,建立tcp_server ip: 192.168.43.1 端口:8080注意,tcp服务器的ip地址和nodemcu的本地ip同域 5.连接TcpServer AT+CIPSTART="TCP","192.168.43.1",8080 连接服务器6.保存设置AT+SAVETRANSLINK=1,"192.168.43.1",8080,"TCP"

can't setup SSL connection even though it appears to connect with NodeMCU ESP8266 to AWS

纵然是瞬间 提交于 2020-02-06 07:55:09
问题 I'm trying to connect a NodeMCU ESP8266 and upload a shadow. I am following the tutorial from IoT Design Pro. When i first ran it, I did see the shadow updated on AWS. On subsequent loops, it stopped updating. Now i get a message "can't setup SSL connection". Here are my code and the serial output window: #include <ESP8266WiFi.h> #include <AmazonIOTClient.h> #include "ESP8266AWSImplementations.h" Esp8266HttpClient httpClient; Esp8266DateTimeProvider dateTimeProvider; AmazonIOTClient iotClient

STM32 HAL rx interrupt can't get bytes correctly

江枫思渺然 提交于 2020-02-05 06:15:08
问题 Hi guys I am trying to make serial rx interrupt using stm32 HAL library and I got error what I dont know. It is really simple program. PC gives bytes to stm32 board and stm32 will take those bytes using rx interrupt routine. Problem is when i send over 4 bytes ,such as "12345", stm32 board only got 4 bytes and last one byte(5) is gone somewhere. Here is picture for better understanding. Here is my code in HAL_UART_RxCpltCallback routine: HAL_UART_Transmit(&huart4, &receive1, 1, 1000); HAL

STM32 HAL rx interrupt can't get bytes correctly

不羁的心 提交于 2020-02-05 06:15:05
问题 Hi guys I am trying to make serial rx interrupt using stm32 HAL library and I got error what I dont know. It is really simple program. PC gives bytes to stm32 board and stm32 will take those bytes using rx interrupt routine. Problem is when i send over 4 bytes ,such as "12345", stm32 board only got 4 bytes and last one byte(5) is gone somewhere. Here is picture for better understanding. Here is my code in HAL_UART_RxCpltCallback routine: HAL_UART_Transmit(&huart4, &receive1, 1, 1000); HAL

nodemcu学习记录1

我的未来我决定 提交于 2020-02-04 04:41:19
第一次弄nodemcu,手头只有一个ESP12F,和一个usb转ttl模块,连接好串口. 一.下载modemcu固件 https://nodemcu-build.com/ ,输入email地址,点击"start you bulid",等待邮件.大约2-3分钟后收到一封邮件, This is just to let you know that your NodeMCU custom build is now running. 晕,通知你正在构建, 又等一会儿终于好了,下载固件,下载也超慢的.有两个固件一个是整形的一个是浮点型的,浮点型的要比整形的多处16K,用阿里云服务器下载会稍微快一点. 二.烧写固件 烧写成功. 来源: CSDN 作者: cloudstep 链接: https://blog.csdn.net/cloudstep/article/details/104158259

LUA bad argument #2

让人想犯罪 __ 提交于 2020-01-25 08:15:25
问题 i am a total beginner with LUA / ESP8266 and i am trying to find out where this error comes from: PANIC: unprotected error in call to Lua API (bad argument #2 to 'set' (index out of range)) This is the Whole Message in serial monitor: NodeMCU 2.2.0.0 built with Docker provided by frightanic.com .branch: master .commit: 11592951b90707cdcb6d751876170bf4da82850d .SSL: false .Build type: float .LFS: disabled .modules: adc,bit,dht,file,gpio,i2c,mqtt,net,node,ow,spi,tmr,uart,wifi build created on

NodeMCU Custom Firmware Problems

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-16 05:47:07
问题 After flashing an ESP8266 with a custom NodeMCU build ist doesn't work as with the version before. For the custom build I've used the cloud service at http://nodemcu-build.com, the prior version was nodemcu_float_0.9.6-dev_20150704.bin from github. The problem now is that communication over serial port now is quirky, sometimes it seems to work, sometime not. Example: When I list files: > for k,v in pairs(file.list()) do l = string.format("%-15s",k) print(l.." >..v.." bytes") end stdin:1: ')'

NodeMCU开发笔记一

房东的猫 提交于 2020-01-07 15:05:09
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Nodemcu是一个基于乐鑫ESP-12E WiFi模块的扩展板,由于ESP12-E的设计不太适合一般玩家的开发调试(pin口间距为2mm、需要使用AT指令),因而出现了很多使 ESP8266能更方便地使用的开发板,Nodemcu就是其中一种也是使用非常广泛的一款,另外相比于Photon等WiFi模块,Nodemcu的价 格要便宜得多,另外Nodemcu支持用LUA语言进行发开,使得编程更加轻松和高效。 淘宝上搜索" Nodemcu",能看到很多,价格大概30块左右。 使用步骤: 1、刷rom,使用工具 ESP8266Flasher 下载地址: https://github.com/nodemcu/nodemcu-flasher 或者百度网盘 http://pan.baidu.com/s/1c20XjaC 网盘里的nodemcu-devkit-master,是开发工具包,里面有文档和驱动。 注意,有32位和64位的区别 打开后界面如下 如果一切正常,可以看到对应的com口,点击Flash写入rom。 MAC就是物理地址。 NodeMCU的WIFI模块有三种模式, AP模式(即路由器模式), STA模式(我的理解是无线网卡模式), AP+STA模式。我们下面要讲的一个案例是用STA模式。在该种模式下

How to prevent WiFi Password from being leaked from Lua code?

梦想的初衷 提交于 2020-01-06 20:22:45
问题 I have a Lua program which connects to a wifi network. The wifi password is hardcoded in the Lua code. I put the Lua code on an ESP8266 which runs on the NodeMCU firmware. Here is the code I use: wifi.setmode(wifi.STATION) wifi.sta.config("SSID", "password") wifi.sta.connect() srv = net.createServer(net.TCP) srv:listen(80,function(conn) conn:on("receive", function(conn, payload) print(payload) local response = "HTTP/1.1 200 OK\r\n\r\n<h1> Hello, NodeMcu.</h1>" conn:send(response, function()