Roachbones / discordless

Record Discord traffic via mitmproxy and export chatlogs to JSON or HTML.
GNU General Public License v3.0
71 stars 5 forks source link

Exporting 0 assets #4

Closed ttuleyb closed 1 year ago

ttuleyb commented 1 year ago

Hi, I have setup the project correctly following the guide on my Mac, treating it as linux but using brew for MITM instead.

For some reason the dce exporter never exports anything

user@macbook-air discordless % python3.9 dcejson_exporter.py

 🧿 Initializing export 🧿 

Analyzing REST traffic.
Analyzing websocket traffic.
Collected 306 messages, 3 attachmentoids, and 41 CDN images.
Exporting DiscordChatExporter-style JSON to dcejson_exports/export_1688050158.
skipping unidentified channel 1091166109899694180. ><'
skipping unidentified channel 1108422195778175048. ><'
skipping unidentified channel 1121872920277438505. ><'
skipping unidentified channel 1010921346848542810. ><'
skipping unidentified channel 869240824142102558. ><'
skipping unidentified channel 869237617789648906. ><'
skipping unidentified channel 1090471714888102009. ><'

Exporting 0 assets... >.<'
Export saved to dcejson_exports/export_1688050158
0 assets saved to dcejson_exports/export_1688050158/assets
Finished in 0 minutes.

 ✨ All done. UwU ✨ 

The html exporter works though

user@macbook-air discordless % python3.9 html_exporter.py   
Collected 306 messages and 1 attachments from 7 channels.
Sorted 50 messages in the * channel. (channel id *)
Prepared chatlog.
Rendered chatlog.
Chatlog saved to html_exports/*/*.

Sorted 50 messages in the * channel. (channel id *)
Prepared chatlog.
Rendered chatlog.
Chatlog saved to html_exports/*/*.
...

And examining the htmls I can see the messages

Roachbones commented 1 year ago

Turns out this was because WITM hadn't flushed its file buffers. Added a note to do this to the readme.