Abstract
This study focuses on designing and implementing a cost-effective and energy-efficient WiFi packet sniffer system using the ESP32. The ESP32-CAM module, which combines WiFi, Bluetooth, and microSD support, is used to capture IEEE 802.11 frames in real-time via promiscuous mode. Packets are stored in packet capture format, which is compatible with tools such as Wireshark and Scapy. Developed using the official ESP-IDF, it offers low-level control and high performance. Two user interfaces were implemented: a UART-based text menu and a web-based HTTPS menu hosted on the ESP32 itself. Functional and performance evaluations were conducted with a focus on capturing broadcast and management frames without payload decryption. The system achieves 99.99% packet capture accuracy at 500,000 packets with a total hardware cost of $25 and power consumption of 2.1 W during active capture, representing a 95% cost reduction and 80% power savings compared to commercial alternatives. The download and file-listing speeds through the web-based menu were also evaluated, revealing that the system performs optimally with fewer files but experiences interruptions during large-scale operations. The proposed system provides a lightweight, standalone, and highly portable alternative to conventional packet sniffing tools despite the limitations in encryption handling and resource constraints. This makes it suitable for educational, diagnostic, and preliminary network analysis, particularly in low-power scenarios.
References
- J. Crnogorac, J. Crnogorac, M. Vucinic, E. Kocan, T. Watteyne, IEEE Access. 10 (2022). 105101.
- D. Harianto, H.S. Bintang, A. Ardiyanto, V.L.D. Widyawan, Int. J. Eng. Contin. 4/1 (2024) 19.
- G.d.C. Bertoli, G.V.C. Fernandes, P.H.B. Monici, C.H. de Araujo Guibo, L.A. Pereira Jr., A. Santos, J. Internet Serv. Appl. 15/1 (2024) 289.
- F. Palmese, A.E.C. Redondi, 2023 21st Mediterra-nean Communication and Computer Networking Conference (MedComNet), Island of Ponza, Italy, 2023, p.176.
- J. Yang, X. Chen, H. Zou, D. Wang, Q. Xu, L. Xie, IEEE Internet Things J. 9/16 (2022) 13086.
- H. Choi, M. Fujimoto, T. Matsui, S. Misaki, K. Yasumoto, IEEE Access. 10 (2022) 24395.
- Y. Zhu, Z. Xiao, Y. Chen, Z. Li, M. Liu, B.Y. Zhao, et al., Network and Distributed System Security Symposium 2020, San Diego, USA, 2020.
- A. Trivedi, C. Zakaria, R. Balan, A. Becker, G. Corey, P. Shenoy, et al., Proc. ACM Interact. Mobile Wearable Ubiquitous Technol. 5/1 (2021) 376.
- D. Hercog, T. Lerher, M. Truntič, O. Težak, Sensors. 23/15 (2023) 6739.
- N. Shone, T.N. Ngoc, V.D. Phai, Q. Shi, IEEE Trans. Emerging Top. Comput. Intell. 2/1 (2018) 41.
- J. Chao, R. Rodriguez, SPIE Future Sensing Techno-logies 2023, Yokohama, Japan, 2023, p.69.
- S. Han, Q. Wu, Y. Yang, Int. J. Distrib. Sens. Netw. 18/10 (2022).
- J.C. Soto, Innovare Rev. Cienc. Technol. 12/1 (2023) 30.
- P. Sun, P. Liu, Q. Li, C. Liu, X. Lu, R. Hao, et al., Secur. Commun. Netw. 2020/1 (2020) 8890306.
- I. Imran, M.F. Zuhairi, S.M. Ali, Z. Shahid, M.M. Alam, M.M. Su’ud, IEEE Access. 12 (2024) 25700.
- A. Alageel, S. Maffeis, In: W. Susilo, X. Chen, F. Guo, Y., Zhang, R. Intan (Eds.), Information Security, ISC 2022,. Lecture Notes in Computer Science, vol 13640, Springer, Cham. 2022, p.290.
- A. Oyelakin, A.O. Ameen, T.S. Ogundele, T. Salau-Ibrahim, U.T. Abdulrauf, H.I. Olufadi, et al., J. Syst. Eng. Inf. Technol. 2/2 (2023) 45.
- M. Prasad, S. Tripathi, K. Dahal, In: R. Patgiri, S. Bandyopadhyay, M.D. Borah, D.M. Thounaojam (Eds.), Big Data, Machine Learning, and Applica-tions, BigDML 2019, Communications in Computer and Information Science, vol. 1317, Springer, Cham, p.60.
- U.S. Virk, D. Verma, G. Singh, S. Laroiya, Int. J. Sci. Res. Eng. Manag. 08/10 (2024) 6.
- G.A.P. Nugraha, I.M.A.D. Suarjaya, I.P.A.E. Pratama, JITTER Jurnal Ilmiah Teknologi dan Komputer. 3/2 (2022) 1043.
- A.-T.B. Praja, M. Tahir, W.I. Cahyani, N. Zahro’Eva, S. Anam, A. Prameswari, Restikom. 7/1 (2025) 97.
- Y.-C. Fan, S.-B. Wang, Information. 13/1 (2022) 18.
- M.W. Nadeem, H.G. Goh, Y. Aun, V. Ponnusamy, IEEE Access. 11 (2023) 49153.
Recommended Citation
Setiawan, Boy Boy; Maulani, Maghfiroh; Pratama Putra, Zico; and Senoyodha Brennaf, Muhammad
(2025)
"Dual-Interface WiFi Packet Sniffer System using ESP32-CAM with Real-Time PCAP Generation for IoT Network Analysis,"
Makara Journal of Technology: Vol. 29:
Iss.
3, Article 5.
DOI: 10.7454/mst.v29i3.1734
Available at:
https://scholarhub.ui.ac.id/mjt/vol29/iss3/5
Included in
Computer and Systems Architecture Commons, Digital Communications and Networking Commons, Signal Processing Commons, VLSI and Circuits, Embedded and Hardware Systems Commons

