i-am-shodan / USBArmyKnife

USB Army Knife – the ultimate close access tool for penetration testers and red teamers.
MIT License
461 stars 40 forks source link

Issue with AP Connection #26

Open CreativeWolf opened 1 day ago

CreativeWolf commented 1 day ago

Hi,

Flashed the latest version available on the LilyGo T-Dongle S3.

Connection to Access Point iPhone14 keeps dropping in Android Phone - That seems like an Android Issue and with no solution.

Tried connecting from the same laptop where the T-Dongle S3 is connected to and yet, the status shows "Connection Error" and uptime shows "Unknown" tried refreshing the page.

Devtool shows, unable to fetch data.json

Appreciate any help

Thanks

i-am-shodan commented 22 hours ago

I suspect your issues are one in the same. If data.json can't be retrieved then something terrible is happening internally - possibly hardware related.

What happens when you run something like `curl 4.3.2.1:8000/data.json'. I suspect that it just times out.

You should try using a different SD card with nothing on it.

The code that creates data.json is linked below. You could comment out some of the lines starting with root and see which one is break.

https://github.com/i-am-shodan/USBArmyKnife/blob/faadcd0b70fd972918d236cdf46465c1b9a14b07/src/Comms/Web/WebServer.cpp#L144

There is a possibility that an upstream change has broken Arduino JSON handling. I'll flash a recent version to my device later and see if I can repro.

CreativeWolf commented 17 hours ago

Yes, `curl 4.3.2.1:8000/data.json' times out and as suspected looks like faulty SD Card.

Changed to a Samsung Evo Card from the earlier old SanDisk one and now the connection is stable. These are the screenshots from Status and Log Tabs for your review

Screenshot_20241123-182737_Chrome Screenshot_20241123-182744_Chrome

I'm not sure why the SD Card is fully greyed out — I checked the other closed issue where you had mentioned about the option to Formatting the SD Card when installing the Firmware, it didn't ask for that during Firmware Installation.

Cheers!

i-am-shodan commented 17 hours ago

Probably a bug. The device shouldn't have even loaded the web interface so I'm not sure what's wrong there.

i-am-shodan commented 11 hours ago

Happy to close this?