-
Notifications
You must be signed in to change notification settings - Fork 44
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
[Enhancement] Write dump #35
Comments
Thanks @Zorakie , it is a very interesting idea indeed. And partially, it has been implemented in some way: if you connect the serial port created by USBvalve, you'll see that a partial dump of the disk operation is already printed out. Right now it is partial because the output on the serial is quite expensive and impacting timing of other operations. But I think that it can be de-synched and probably managed completely: in this case if you log the serial output you may have the complete dump of the operations. Adding and SD card is another option and it is feasible for sure, but it would require some redesign of the entire project. May be it could be a mid-long term project. Anyway, thanks for your suggestions, they are always interesting!! |
Any reason this cannot just be logged to the nearly 1MB of free storage the Raspberry Pico already has? The storage that shows up when plugged into the computer and has a txt file already created in there that says nuke the entire site from orbit. Text files are extremely small so the 1MB storage should be plenty to log any read/write operations. |
@Tz1rf |
what @Zorakie says is absolutely correct. @Tz1rf there are at least 2 reason for not using the internal USB storage:
|
This is why I suggested this storage space. I apologize if I described it incorrectly and caused a misunderstanding @cecio |
Well, here is the problem: 1MB is enough for such scripts, sure. But the idea behind the dump is, you want to store the data on the go, then remove the card where you know you have a safe .txt dump, and review later. Also the malware spreading is a valid thing. And really, 90% of time, you will be somewhere outside, testing if some shopping mall charger is not trying to spoof your phone or something. |
@Tz1rf sorry, I misunderstood your question. You are proposing to use the on board USB Mass storage device, just for logging purposes, correct? If so: this area is accessible only in BOOTSEL mode from what I see, and it is not accessible in other ways. But I'll try to dig a bit more. The other accessible area is the flash, but it's small and not accessible as filesystem. |
@cecio That is correct. Its not really a big deal if it cannot be used. I use this for research and forensics so it will always be plugged into a computer. I don't have concerns about killer USB devices as they have an absolutely zero chance of ever being used in my environment. My interests lie more inline with being able to see and log behavior so that it can be analyzed and understood so the debugger fully working in my opinion would be a better feature. As far as I can tell though it may not be possible on a pico because its a limitation of the processing power that the Pico has. Has any thought gone into using a Raspberry Pi Zero 2 for this project? Yes it increases the cost of building one, but the processing power of the Zero 2 is significantly higher. |
I added a SD-Card Logger on my Mods, Works like charm. ;) |
oh wow, great job!! |
@TryBreakFixAgain What is it able to log? I am very interested. If a custom PCB can be developed to use this SD Card add-on, I will make a new video showing how to build this. I wish I could help but I do not know much about creating gerber files for PCB, but based on the current one I would imagine adding the SD Card add-On to the back of the PCB with holes between the USB A Port and Screen might work. |
@Tz1rf At the moment I write out the complete serial output to a static text file called datalog.txt, including a display warning if it is larger than 5mb at startup. I still have to improve the complete handling of the log files, but I am encountering some problems, so I have published this status for now. A custom PCB should not be a problem, you can find all necessary infos in the readme of my fork in the point mappings. I will publish a log of an attack in the project wiki later today. |
Thanks for the additional information. Is the problem you are encountering have to do with the limited processing power of the Raspberry Pico? |
@Tz1rf not only, some limitations are based on the SD lib its a hard combination for me, im only a beginner with microcontrollers and coding, and my free time is very limited |
Hi,
This idea is probably one of the more complex ones:
It would be great to log possible read/write actions.
So basically:
That would help us to understand not only if the device is sending some data, but later on, we can remove the SD, put it into PC and find out, what has actually happened.
for MVP:
Let's see, I have no idea how hard this would be even with borrowing some existing Pico SD project, and also I am not sure if the limited processing power of Pico would allow it, but anyway, it would be cool :)
The text was updated successfully, but these errors were encountered: