From ca95b5f95c9888df4228c403f7c5ca5ae63c157b Mon Sep 17 00:00:00 2001 From: gabrielkheisa Date: Fri, 30 Jun 2023 13:53:36 +0700 Subject: [PATCH] add --- README.md | 13 ++++ hasil.xlsx | Bin 0 -> 22387 bytes source_nodemcu.cpp | 171 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 184 insertions(+) create mode 100644 README.md create mode 100644 hasil.xlsx create mode 100644 source_nodemcu.cpp diff --git a/README.md b/README.md new file mode 100644 index 0000000..a7be046 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +

PENELITIAN PENGARUH MAC ADDRESS COLLISION PADA PERANGKAT YANG DAPAT MERUBAH MAC ADDRESS

+ +

Gabriel Possenti Kheisa Drianasta
+Program Studi Elektronika dan Instrumentasi, DIKE, FMIPA, UGM, Yogyakarta, Indonesia
+gabrielkheisa@mail.ugm.ac.id

+

+ + \ No newline at end of file diff --git a/hasil.xlsx b/hasil.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..77b29055dcd2d8c7d5b0b3ffe80bc51956bcdebe GIT binary patch literal 22387 zcmeFZRd6LclP+pzW@ct;Gh>^XnVFf}%*pCW&}Oo_Bu7+@ zc)pMzkr+3WW(8@L0}j~P`7Y&@^XT<1pgGDTKATe36z9sPa=<66N}ywjykVNmmKju< z5O`)y{-Vhwtxi;kAOw3?rC9h`xNkks#U@cW7`|^@S5+_?bkoTiM1)3_qVh>7uC1O9 zR8NftD`a{MOc8|&@Xh%!K!1<{jEFT@5N{twZqGPhQx#KHR9_7<2Hxr&La5DQeWCFp zA%++OcH}$giyW+HN|}aF8$%8!+muXz7M64*g=Jz5*9Q61o=M{MLPt&PqAp0MoY-ZK z6T+5r?6tc$3gTg;eZDiS+v#3R?olc=Dt}B^o0*FvU{{Uo$@U^1=uupe*pD&AXnt+C3WFw=XgK`~(J&`!8d)L79R0?u#PzH58%0 z#;UG^v6Uk|-JknEWAy*xf%%_ay*yr8wvPcO`11Q($nfLBMl6D$q^rR9HbNz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c^=0&$S0DyltFd%%FCUjcSCalSgL~NGjMoP%Iy4rPE*m! zOTX=#!K2Ye+}1_1B`$&CNpJkHN3z-$Usc%LH#^l5Vr=w+4qq9juGg)!{FQnuTh{}- zhi?VUPG}U3%1)MQ*bE#z@m&}^f19}WnMD~M0Y?ZFs=kgr+TiV%vtHu+ZSIy-qC~6r z9y9Kl%!)t!n0!Z_14^Scc0=7}@FV`-Qpjr&uLXtk5-PZok-wtNkCs)GCaGsmW^PR9 zd*$&~@U1%y|K?TCg|;|3P*=^^WaFo%UglQ_U<~1H=^4Ua`&*{APD<6{@86lAN4TZF zVZzFn;9*-`Vb}^#LUBPAT*lvebyU@=E~2 z4r(T2Uy5K5%Sw@Xu~SIm#Z^jn832K5B-oriS@N>hCFkCR#m?Rw2Z#&-jSdk$ntQv- z!xrg1!p$hvjXcv~Ta*6TWHvtLfH8ZsCgxNxoNa4kppkiJyjSbpZU^$RO{o1F2z^;6 zPH8P8B$ZFrGv%RQ>mDsRU*H)QaHiQ~Q%>@~GWf3%{{Fq-pS1jIX#A&me}6Cd_o!$8QFP|( zSj69Ap#8n@e~p*)A4LHG=Ar&7{J%s``a7S$N6+~WPHsB21a72{r|NF)g|Q=nH@l21po!4L~dhLf48uFOSf=#}uL!eU={G z1oZhmgbCX$(Zc}iY#+LT=+k8g19w>AF%U6%hHfDGic0Z7`RHC2E&D=@!-P9EfE5CSeA^9}~_ E04jPF=Kufz literal 0 HcmV?d00001 diff --git a/source_nodemcu.cpp b/source_nodemcu.cpp new file mode 100644 index 0000000..f17cc75 --- /dev/null +++ b/source_nodemcu.cpp @@ -0,0 +1,171 @@ +#include + +#include + +#include + +#include + +#include + +const char * ssid = ""; //ganti nama hotspot +const char * pass = ""; //ganti password + +//IPAddress localIP(192, 168, 1, 11); // The desired IP address for the NodeMCU +//IPAddress gateway(192, 168, 1, 1); // IP address of the gateway/router +//IPAddress subnet(255, 255, 255, 0); // Subnet mask +//IPAddress dns(8, 8, 8, 8); // DNS server address + +WiFiClient client; + +ESP8266WebServer server(80); + +// 84:F3:EB:CC:03:EF default MAC +// uint8_t newMACAddress[] = {0x84, 0xF3, 0xEB, 0xCC, 0x03, 0xEF}; +// uint8_t newMACAddress[] = {0x50, 0xD2, 0xF5, 0x2F, 0x21, 0x69}; // MAC router +// uint8_t newMACAddress[] = {0x04, 0xe5, 0x98, 0x32, 0xD0, 0x1E}; // MAC Android +// uint8_t newMACAddress[] = {0x34, 0x13, 0xE8, 0xC6, 0x4C, 0x42}; // MAC Komputer + +//04:E5:98:32:D0:1E + +uint8_t newMACAddress[] = { + 0x34, + 0x13, + 0xE8, + 0xC6, + 0x4C, + 0x42 +}; // MAC router (uji collision 1) + +// ping ec2.me-south-1.amazonaws.com 99.82.132.91 + +void do_ping(uint8_t a, uint8_t b, uint8_t c, uint8_t d) { + IPAddress remoteIP(a, b, c, d); // Target + + Serial.print("Pinging "); + Serial.println(remoteIP); + + int pingTime = Ping.ping(remoteIP); + pingTime = Ping.averageTime(); + + if (pingTime > 0) { + Serial.print("Ping successful! Latency: "); + Serial.print(pingTime); + Serial.println(" ms"); + } else { + Serial.println("Ping failed!"); + } +} + +void do_curl(const char * url) { + HTTPClient http; + + Serial.print("HTTP GET request to: "); + Serial.println(url); + + http.begin(client, url); // Specify the URL + + int httpCode = http.GET(); // Perform the GET request + + if (httpCode > 0) { // Check for a successful request + Serial.printf("HTTP GET request successful. Response code: %d\n", httpCode); + + String payload = http.getString(); // Get the response payload (HTML content) + + Serial.println("Response (first 10 characters):"); + Serial.println(payload.substring(0, 10)); + } else { + Serial.printf("HTTP GET request failed. Error code: %d\n", httpCode); + } + + http.end(); // Close the connection +} + +void traceroute(uint8_t a, uint8_t b, uint8_t c, uint8_t d) { + IPAddress destinationIP(a, b, c, d); // Target + Serial.println("Traceroute:"); + int udpPort = 33434; + + const int maxHops = 30; // Maximum number of hops to attempt + for (int ttl = 1; ttl <= maxHops; ttl++) { + WiFiUDP udp; + IPAddress hopIP = udp.remoteIP(); + udp.beginPacketMulticast(destinationIP, udpPort, WiFi.localIP(), ttl); + udp.write("Traceroute"); + udp.endPacket(); + + Serial.print("Hop "); + Serial.print(ttl); + Serial.print(": "); + + int packetSize = udp.parsePacket(); + if (packetSize) { + Serial.print(hopIP); + } else { + Serial.print("*"); + } + + Serial.println(); + + // Stop tracing if the destination is reached + if (hopIP == destinationIP) { + break; + } + } +} + +// run HTTP server +void http_server() { + server.send(200, "text/plain", "Hello World!"); +} + +void setup() { + Serial.begin(115200); + delay(10); + Serial.print(" Connect to : "); + Serial.println(ssid); + WiFi.begin(ssid, pass); + while (WiFi.status() != WL_CONNECTED) { + delay(500); + Serial.print("…."); + } + Serial.print("\n"); + Serial.print("IP address : "); + Serial.print(WiFi.localIP()); + Serial.print("\n"); + Serial.print("Connect to : "); + Serial.println(ssid); + Serial.print("\n"); + Serial.println(WiFi.macAddress()); + wifi_set_macaddr(STATION_IF, & newMACAddress[0]); + Serial.print("\n"); + Serial.println(WiFi.macAddress()); + + server.on("/", http_server); + server.begin(); + + Serial.println("HTTP server started."); + +} + +void loop() { + + // Uji HTTP server + server.handleClient(); + + /* + // Uji ping dan HTTP GET + do_ping(192,168,1,11); + do_ping(192,168,1,1); + do_ping(192,168,1,74); + do_ping(192,168,1,99); + do_curl("http://192.168.1.11"); // Alamat NodeMCU + do_curl("http://192.168.1.1"); // Alamat router + do_curl("http://192.168.1.74:1111"); // Alamat Android + do_curl("http://192.168.1.99"); // Alamat komputer + // traceroute(192,168,1,1); + // traceroute(192,168,1,99); + delay(1000); + + */ +} \ No newline at end of file