Added copyright infos and fixed oled scan bug

This commit is contained in:
Stefan Kremser
2017-04-07 15:55:31 +02:00
parent 0caac2698d
commit cb03c3eac3
9 changed files with 57 additions and 11 deletions

View File

@@ -113,9 +113,9 @@ Make sure you select the right com-port, the right upload size of your ESP8266 a
**11** Scroll down and before `#endif` add following lines:
`typedef void (*freedom_outside_cb_t)(uint8 status);`
`int Wi-Fi_register_send_pkt_freedom_cb(freedom_outside_cb_t cb);`
`void Wi-Fi_unregister_send_pkt_freedom_cb(void);`
`int Wi-Fi_send_pkt_freedom(uint8 *buf, int len, bool sys_seq);`
`int wifi_register_send_pkt_freedom_cb(freedom_outside_cb_t cb);`
`void wifi_unregister_send_pkt_freedom_cb(void);`
`int wifi_send_pkt_freedom(uint8 *buf, int len, bool sys_seq);`
![screenshot of notepad, copy paste the right code](https://raw.githubusercontent.com/spacehuhn/esp8266_deauther/master/screenshots/notepad_screenshot_1.JPG)

View File

@@ -89,8 +89,10 @@ void ClientScan::packetSniffer(uint8_t *buf, uint16_t len){
for(int i=0;i<apScan.results;i++){
if(apScan.isSelected(i)){
if(apScan.aps._get(i).compare(from)){
int clientNum = clients.getNum(to);
if(apScan.aps._get(i).compare(from) || apScan.aps._get(i).compare(to)){
int clientNum = -2;
if(apScan.aps._get(i).compare(from)) clientNum = clients.getNum(to);
else clientNum = clients.getNum(from);
if(clientNum == -1 && results < maxClientScanResults){
data_getVendor(to._get(0),to._get(1),to._get(2)).toCharArray(vendors[results],9);
results++;

File diff suppressed because one or more lines are too long

View File

@@ -13,7 +13,7 @@
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
//#define USE_DISPLAY // <-- uncomment that if you wanna use the display
//#define USE_DISPLAY /* <-- uncomment that if you wanna use the display */
#ifdef USE_DISPLAY
@@ -122,9 +122,23 @@ void startWiFi(bool start){
//==========AP-Scan==========
void startAPScan() {
scanMode = "scanning...";
#ifdef USE_DISPLAY
drawInterface();
#endif
if(apScan.start()) {
#ifdef USE_DISPLAY
apScan.sort();
rows = 3;
rows += apScan.results;
sites = rows/rowsPerSite;
if(rows%rowsPerSite > 0) sites++;
#endif
server.send ( 200, "text/json", "true");
attack.stopAll();
scanMode = "scan";
}
}

View File

@@ -59,5 +59,11 @@
</div>
<script src="js/functions.js"></script>
<script src="js/attack.js"></script>
<div id="copyright">
Copyright 2017 Stefan Kremser<br />
<br />
<a href="https://github.com/spacehuhn" target="_blank">github.com/spacehuhn</a><br />
<a href="https://twitter.com/spacehuhn" target="_blank">twitter.com/spacehuhn</a><br />
</div>
</body>
</html>

View File

@@ -37,5 +37,11 @@
</table>
<script src="js/functions.js"></script>
<script src="js/clients.js"></script>
<div id="copyright">
Copyright 2017 Stefan Kremser<br />
<br />
<a href="https://github.com/spacehuhn" target="_blank">github.com/spacehuhn</a><br />
<a href="https://twitter.com/spacehuhn" target="_blank">twitter.com/spacehuhn</a><br />
</div>
</body>
</html>

View File

@@ -39,5 +39,11 @@
</p>
<script src="js/functions.js"></script>
<script src="js/index.js"></script>
<div id="copyright">
Copyright 2017 Stefan Kremser<br />
<br />
<a href="https://github.com/spacehuhn" target="_blank">github.com/spacehuhn</a><br />
<a href="https://twitter.com/spacehuhn" target="_blank">twitter.com/spacehuhn</a><br />
</div>
</body>
</html>

View File

@@ -95,5 +95,11 @@
</table>
<script src="js/functions.js"></script>
<script src="js/settings.js"></script>
<div id="copyright">
Copyright 2017 Stefan Kremser<br />
<br />
<a href="https://github.com/spacehuhn" target="_blank">github.com/spacehuhn</a><br />
<a href="https://twitter.com/spacehuhn" target="_blank">twitter.com/spacehuhn</a><br />
</div>
</body>
</html>

View File

@@ -101,6 +101,12 @@ nav a:hover {
#content {
padding: 0.34em;
}
#copyright{
margin-top: 15px;
padding-bottom: 15px;
font-size: 0.85em;
text-align: center;
}
table {
padding: 0;
width: 100%;