(eth.src bl:ac:kb:ox:ad:dr) and arp
and if any packets remain in the list, they must have been sent by the blackbox, and they read, in the info column, Who has X.X.X.X? Tell Y.Y.Y.Y
. And Y.Y.Y.Y
is the IP of the blackbox.Y.Y.Y.(Y+1)/255.255.255.0
(except if the last byte would make 255, in that case use 253 instead) as the address/mask of your PC's interface and try to log in.2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 | * Getting MAC and IP Address of Connected devices to ESP8266 */ #include <ESP8266WiFi.h> extern'C'{ } /* configuration wifi */ constchar*pass='password'; voidsetup(){ Serial.begin(115200); Serial.print('Configuring access point..'); WiFi.softAP(ssid,pass); IPAddressmyIP=WiFi.softAPIP(); Serial.print('AP IP address: '); } voidloop(){ client_status(); } voidclient_status(){ unsignedcharnumber_client; IPAddressaddress; stat_info=wifi_softap_get_station_info(); Serial.print(' Total Connected Clients are = '); address=IPaddress->addr; Serial.print('client= '); Serial.print(i); Serial.print((address)); Serial.print(stat_info->bssid[0],HEX);Serial.print(' '); Serial.print(stat_info->bssid[1],HEX);Serial.print(' '); Serial.print(stat_info->bssid[2],HEX);Serial.print(' '); Serial.print(stat_info->bssid[3],HEX);Serial.print(' '); Serial.print(stat_info->bssid[4],HEX);Serial.print(' '); Serial.print(stat_info->bssid[5],HEX);Serial.print(' '); stat_info=STAILQ_NEXT(stat_info,next); Serial.println(); } |