-
-
Notifications
You must be signed in to change notification settings - Fork 673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty pcap with SD Serial support (Flipper Zero app) on ESP-WROOM-32 #249
Comments
Did you enable the SavePCAP setting? |
Yes, I have enabled this setting in the Flipper zero app. Also, I have read the same kind of issue on #141 but I'm up to date. But maybe it's somehow related? |
Hi, i have same problem with empty pcap files like you. ESP32 WROOM |
hi i have empty pcap files too esp32 wroom |
Hello, I have the same problem on my brand new Flipper Zero Wi-Fi Module v1 with an ESP32-S2-WROVER module. The new files are written onto the internal SD of the flipper but are 0 bytes. I use the latest ESP32 Marauder v0.10.2 installed with FZEasyMarauderFlash and the Flipper-Xtreme) |
Ok I found something. On ESP-WROOM-32, we have "serial0 aka TX0/RX0" and "serial2 aka TX2/RX2", but I don't see any TX1/RX1 printed on the chip. That's why I had soldered TX2 and RX2.
I also found this kind of information on this link:
Problem: On ESP-WROOM-32, I don't see GPIO 9 and 10 :( So, I did a modification into the marauder code so that I now get the pcap files filled. I replaced "Serial1" with "Serial2" into the following lines:
Now it works on my ESP-WROOM-32! I'm not sure about the correct way to solve the problem:
@justcallmekoko I guess you'll have a more enlightened opinion than me :) |
I had the same problem with the Flipper Zero Wifi Dev Board, I search in the logs and I find a error menssage: |
Hi, i have same problem with empty pcap files like you. ESP32 WROOM i put the last update thanks koko |
Same esp-wroom-32 on f0. Empty pcap files. I have 100% faith we will see a fix soon. Let me ask though. If I solder on an external card will it work? |
@coded-with-claws hi! i tried edit code like u said, but it does'nt works, can u said where did u connect rx2 tx2 ? |
Hi @clipboard1 I connected like I explained into the description:
|
@coded-with-claws I did everything as you described, but I still get 1kb pmkid pcaps. What I did:
|
@clipboard1 |
hi to all i just fix it i deleded marauder and i installed esp32 penetretion tool it works well |
Wait what? I'm trying to get pcaps to save on flipper that surely wouldn't work |
I have this issue on esp32-s2. Empty PCAP, logs work fine. |
you have to use |
I'd rather not. The entire point is to be able to properly use marauder.
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: paolocamm ***@***.***>
Sent: Monday, April 24, 2023 12:00:06 PM
To: justcallmekoko/ESP32Marauder ***@***.***>
Cc: DubTechnic ***@***.***>; Comment ***@***.***>
Subject: Re: [justcallmekoko/ESP32Marauder] Empty pcap with SD Serial support (Flipper Zero app) on ESP-WROOM-32 (Issue #249)
hi to all i just fix it i deleded marauder and i installed esp32 penetretion tool it works well
—
Reply to this email directly, view it on GitHub<#249 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AH4DP3SHHH32LZJCRN4LMRLXC2WRNANCNFSM6AAAAAAWY5VEFI>.
You are receiving this because you commented.Message ID: ***@***.***>
|
I've tried both with the latest version. Now no logs or pcap. |
I believe they only work on the official dev board. I don't believe they work on the esp-wroom-32. |
I have the official dev board |
SAME HERE |
I just updated my Flipper to Xtreme firmware XFW-0046 06-05-2023. Cloned a new version of FZEasyMaurauderFlash. After installing the requirements it downloaded esp32_marauder_v0_10_4_20230505_flipper_sd_serial.bin. Then I flashed the official Wifi dev board with option 2 (Flash SD Serial Marauder on Devboard or ESP32-S2). Now my pcap files aren't empty anymore. Not sure what fixed it. Nevertheless I wanted to share this. Hope some will find it helpful. |
Have you tested with the latest version of flipper unleashed firmware to confirm the issue is resolved there as well? Wonder if the fix is contained in the Xtreme firmware code or the latest esp32_marauder_v0_10_4_20230505_flipper_sd_serial.bin. |
I didn't try, but after a lot of different flash, I think it's good start, I have take some time to understand which of the - "serial0 aka TX0/RX0" and "serial2 aka TX2/RX2" -, I have to use, just a correction it is not TX0/RX0 but TXD/RXD, like Dev/Debug ? if I am not wrong this could have sens, thanks |
I tried this exact process and with the same hardware and I have no logs or pcaps at all. not empty ones, nothing. |
I just updated the Wifi Dev Board firmware to 0.10.4 using Easy Flipper Zero Marauder Flash. https://github.com/SkeletonMan03/FZEasyMarauderFlash Chose option "(2) Flash SD Serial Marauder on Devboard or ESP32-S2" as suggested by @chrisbward and now the pcaps are saving to the SDCard! |
The following worked for me and the flipper wifi dev board v1 and extreme firmware (XFW-0046_06052023) but should work with unleashed as well: Go here https://esp.huhn.me/ Connect to device and put the following bins in the appropriate place: 0x1000 = FZEasyMarauderFlash-main\Extra_ESP32_Bins\Marauder\bootloader.bin Obviously powercycle and plugin and do your thing. Pcaps now saved to disk. |
Initially I selected 1 and had the zero bytes issue. Reflashed with option 2 and now my pcap files are saving correctly. Wifi dev board v1 |
Hi,
@justcallmekoko : could you add me the permission to propose a pull request? I have prepared the code but I'm denied when trying to push my branch :) Thanks! |
Hi, I chose LOLIN D32 like advised in the wiki. |
@coded-with-claws do you have a fork of this repo somewhere with builds? I was trying to use act to run the git actions locally but builds failed. I think your adjustments are correct to support a larger number of boards. I tried forking and building with the changes, but didn't seem to work (getting the 1kb pcap files like others indicated...better than empty files I guess) unless I'm missing something. |
@tmaiaroto I pushed the changes on a fork and proposed a pull request: #401 |
@coded-with-claws It did say they weren't valid pcap files. it wasn't like it stopped at 1kb. or maybe it did and something wasn't finished properly. but they wouldn't open in wireshark. i'm using pins 16, 17 on the esp-wroom-32 board marked D16 and D17 and put those into 15 and 16 on the FZ (right after the TX/RX). I'll try the bin files from your PR maybe I messed something up though all I did was change Update: I get same results with the bins the Git actions built from your PR. Maybe I have the wrong pins connected or something. I flipped them in case I got the RX/TX mixed up and it did produce a different file but both were not readable/valid. Error says |
@tmaiaroto Do you test with "sniffraw"? (in order to be sure to get valid pcap files) |
@coded-with-claws I did use sniffraw. I'll see if I can somehow test the connections. I'm just using some dupont cables there, they're brand new. 🤷♂️ Something definitely populates the files I can leave it scan for some time and get larger files. |
@tmaiaroto I guess with brand new dupont cables it should be fine. You said you wired D16 and D17, maybe it's not the good pins? |
@coded-with-claws I'm experiencing the same result. I used the .bin file you provided on a ESP-WROOM-32 (ESP32-D0WDQ6) from aliexpress, connected both RX/TX pins, and after sniffing raw data i get a file with some data in them, but i get the same error on Wireshark (commview: NCFX data length 0 < 20). Edit: I switched RX/TX pins, but the files weren't readable, the error described before only happens when they are in the right position. I also tried all sniffing methods, all of them are able to write data, but the same error happens. |
@Asdii Your pins 16 & 17 are located exactly as my pins RX2 & TX2, and in between I have the same pins... So your wiring seems good to me. |
I'll give those a try, thanks! Before, I took the bin files from the GitHub actions that should have built the files pushed. Same results, files have content written but Wireshark shows an error when trying to open them. |
@coded-with-claws i used this link I don't understand why it wouldn't work, i inspected some of the code inside buffer.cpp (I believe that's the one responsible of the serial writing) but couldn't find anything relevant, everything seems right. Maybe it's the flipper app that's expecting something different?, is there a way to see the Serial1 output before it's written to a file? |
I got a devboard from justcallmekoko. It doesn't seem to write to the flipper's sd card either, but it has an sd card slot of its own. I guess that's what most folks do. I'm more interested in solving this problem and making something custom than having a working unit. I don't exactly have any real use case here, it's more about learning and building something custom. So I guess I'll keep tinkering. @coded-with-claws do you have a link to the board you bought? I'm curious if maybe I just got some flawed or incorrectly put togther ESP32-WROOM board. I only have one RX0/TX0 I don't see an RX2/TX2. Your fixes make complete sense to me based on what I've read. Switching to use different pins seems exactly right. Yet it doesn't seem to work on the board I have. I got some board off Amazon (a 3 pack they were so cheap) that has USB-C. The chip does not say expressif on it. It does say ESP-WROOM-32 though. So maybe I got a knock off or something that isn't implemented quite right. |
I made this little test to see the output from the second serial communication by switching Serial1 with Serial 2 on the Flipper Zero and oppening Serial1 on PuTTy. 1.- Switch serial communications: 2.- Connect the ESP32 to your PC @coded-with-claws could you do the same on your end to see if the data is simmilar? i'm trying to discard possible issues, and i know it's binary data, but at least it should be simmilar ascii. |
Hi, I tried flashing the compiled bin provided by @coded-with-claws on WeTransfer. Like @Asdii my pcaps are blank and the Wireshark error is the same, although pcaps dimension is not 0 anymore. |
It's this one I have: https://fr.aliexpress.com/item/1005001929935550.html?spm=a2g0o.order_detail.order_detail_item.5.11617d56iQx5cP&gatewayAdapt=glo2fra At all: I don't have much time to help investigate, sorry. |
Guys, maybe I found something! First of all, I have this board: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/hw-reference/esp32/get-started-devkitc.html#get-started-esp32-devkitc-board-front Reading the documentation, I discovered that Serial1 is declared on GPIO9 (D2) and GPIO10 (D3), but these pins are used for internal communication and the documentation suggests avoiding the use of them. Can someone give it a try and compile the bin? I don't have the environment anymore :( |
Yes it's correct, changing to Serial2 does the trick. |
Does that bin has the serial communication switched? (Serial1 to Serial2) |
Awesome, @casimirextreme that worked, thanks! I have a board with pins labeled D16 and D17 that I have plugged into the Flipper 15,16 respectively and it captured the data just fine now after using esptool to flash this file. |
Yes. |
Currently Mac users Couldn't Compile i believe ? Can anyone please provide Compiled bin files. Also Wiring from Esp32-WROOM to FZ |
The bin is for the ESP32. You'll only have to unzip @casimirextreme zip file and install it with esptool. ESP32: 3v3 -> FZ: 9 (3v3) |
Doing this solved the problem. Thank you so much @casimirextreme and @coded-with-claws. Now i have pcap files that are readable on wireshark. |
My pcap was empty when using RogueMaster. |
Nearly the same here. Was using xtreme and tried multiple suggestions. After countless flashing of the wifi module the solution was simple: I switched the unleashed. And now it's working fine. |
Since v0.13.7, with Unified serial PCAPs, we no longer need to do those changes. |
Hi,
I compiled Marauder 0.10.2 branch develop (checked out yesterday) with WRITE_PACKETS_SERIAL and MARAUDER_V4, and uploaded it to my ESP-WROOM-32 (with Arduino IDE following the instructions from the Wiki), connected with double serial on my Flipper zero (Unleashed firmware with companion app supporting the SD serial pcap saving).
I say "double serial" because I got:
When I run a "sniff pmkid" or a "sniff raw", I get lines displayed (
Received EAPOL:
orRSSI ... Ch... BSSID
) but I get empty pcap files (0 bytes forpmkid_0.pcap
andraw_0.pcap
) on the SD card of Flipper zero.I soldered the connections for the pcap SD serial saving like it is expected:
- ESP32: RX2 -> FZ: 15 (TX pin)
- ESP32: TX2 -> FZ: 16 (RX pin)
And I checked the electrical continuity with a multimeter.
Is the SD serial support supposed to work on ESP32 (not ESP32-S2)?
To Reproduce
Steps to reproduce the behavior:
Sniff PMKID on channel
Received EAPOL:
Expected behavior
The pcap files should not be empty because packets were captured, according to the Marauder log.
Marauder:
Additional context
Except this problem for writing pcaps, the Flipper zero app works nice with Marauder on my ESP32.
Thanks :)
The text was updated successfully, but these errors were encountered: