Usually u-boot is not part of the emmc but of the spi-nor. Look for a spi-nor flash chip on the board.
You would need a spi clamp to dump the contents.
I still have to reball my flash chip and get it back in the device before I can test that.
This is for the admin page at /warehouse and /cgi-bin/warehouse.cgi
But maybe they set the same uname/pw for uboot? @ghoffman maybe you can test that, since I still have to reball the flash chip and reassemble my router before I can test anything
i confirmed access tot he 192.168.1.1/warehouse page.using ThylacineGone/4p@ssThats10ng
unfortunately, thre is nothing useful on the page. there are default SSID/ default password values that are different than the ones on the router case.
none of those name/pw combos work for uboot or for the booted console availble on the serial port
unfortunatley more - i could not get any name/pw combos work for the uboot password.
thanks...
@meisterlone -
for the record i also tried your username/pw for ssh and was unsuccesful.
i'm wondering if the username/pw you extracted is specific to your device?
walking through some of the use userdata.bin strings, i saw a default SSID of SpectrumSetup17, which is different from mine. is that the SSID on your router case? if so, i think you might have to try once you get your device back together - impressive work.
do a regular GET request- it should throw an error like 400 INVALID_REQUEST or something.
Then do a post request with empty body. I am expecting it should accept the request but show "Unknown command"
The username/pass from previous post may also be required here for the POST to work
Hit space key to stop autoboot: %2d
%2d
Username#
root
Password#
You have %d times left to enter correct password.
You have %d times left to enter correct username.
@lytr -
username root confirmed but no success with these on uboot or post-boot serial console-
unfortunately i think the key will be to unlock at uboot somehow, and i don't have anything but serial uart
So that actually works, and then you have access to some commands. I tried some of the commands and they worked ( get_current_firmware_version, fan_rpm_set etc)
Unfortunately I cant get it to execute my injected commands.
update_fan_rpm_set_handler() {
controller=$(get_fan_controller)
status=`ovsh s Node_Services --where service==$controller status -o %s 2>/dev/null`
if [ $status == "enabled" ]; then
echo "TM is not deactivated. Please deactivate TM and then perform fan test"
exit 1
fi
set_rpm=`echo "$command_params" | /bin/sed -n 's/^.*rpm=\([^&]*\).*$/\1/p' | /bin/sed "s/%20/ /g"`
/usr/opensync/bin/fw_utils --set_fan_rpm "$set_rpm" > "$log_file" 2>&1
cat "$log_file"
/bin/rm "$log_file"
}
Above code suggests it should be possible using the set fan rpm handler, because its passing $command_params which is text I can control.. not sure what to try next. I tried a bunch of escape characters and I tried /sbin/reboot instead of sudo reboot, I cant get those executed.
Theres also an "update_firmware" warehouse command that takes a tftp address and file name, but that is probably going to check the image and fail on verifying it. I havent looked into that yet because im not sure what firmware to try flash even. Maybe the initrams for the dynalink RT5010W?
For now i would just really like to get root access on the device, and I thought the command injection was my ticket
@meisterlone -
how did you get warehouse mode?
is there access to fw_printenv / fw_setenv or another way to set uboot environment?
i'd set up a tftp server for the wrx36 nitramfs if i could figure out how/where to get it to look