Furbo2
Some notes on the Fubo2 treat thrower.
The Furbo2 is based on the Ambarella S2LM IronMan Board. It has a 128MB nand chip.
Hacking the Furbo2
Exploit the RTSP server
See Somerset Recon's blog post on this: https://www.somersetrecon.com/blog/2021/hacking-the-furbo-part-1
The GitHub repo with the presentation and exploit code is available at: https://github.com/Somerset-Recon/furbo-research
Enabling root access
In order to log in as root on the serial console, you'll have to first set the root password. Initially, the root password is set to something unknown. To work around this, you'll have to use the RTSP server exploit to get a root shell and then run echo -e "root\nroot" | passwd root.
You may try to boot into the system using init=/bin/sh by connecting the UART, then hold down [enter] while powering on the device to get into the Ambarella bootloader. Once in the bootloader, run:
amboot> boot console=ttyS0 ubi.mtd=lnx root=ubi0:rootfs rw rootfstype=ubifs init=/bin/sh video=amb0fb:720x480,720x480,1,0
You'll be dropped into a shell as root and you may try to run passwd as root to set the new root password. You can also set the passwords for the other accounts as well. This method doesn't seem to update the password expiry value and causes the login to fail with 'token manipulation error'.
Stop Furbo2 services
The Furbo2 systemd service seems to be responsible for starting the primary Furbo daemon that's responsible for phoning home to Furbo's servers and allowing your phone app to work. This service also sets up the WiFi interface.
Since my plan is to have the device 'offline' from the Internet, I disabled the furbo2 service and replaced the WiFi setup functionality with another systemd service. I noticed that something still triggers the furbo2 service even when it's disabled, so you'll have to stop this service when the device starts for the first 30 or so seconds.
Enable telnetd
The busybox version that's bundled has the telnetd applet. Enable the telnetd backdoor with this service file:
[Unit]
Description=Very important backdoor.
[Service]
Type=simple
Restart=always
RestartSec=5
ExecStart=/bin/busybox telnetd -F -l /bin/bash
[Install]
WantedBy=multi-user.target
Keep in mind that this is wildly insecure.
Enable dropbear / sshd
Use the statically compiled version of dropbear for ARMv7 from https://github.com/mzpqnxow/arm-dropbear-static. Copy the binary to /usr/bin/dropbear and then add the following systemd service file:
[Unit]
Description=Dropbear SSH Server
After=network.target
[Service]
Type=simple
ExecStartPre=/bin/mkdir /tmp/dropbear
ExecStart=/usr/bin/dropbear -F -P /run/dropbear.pid -R
[Install]
WantedBy=multi-user.target
That should open port 22 for SSH access. Access the system using your root account credentials.
RTSP access
The RTSP server is available on port 554. Use /stream0 for 1080p, /stream1 for 720p, /stream2 for 360p.
Disabling the overlay image
The Furbo logo is an overlay which is added from the image at /usr/share/oryx/video/overlay/FurboLogo{360,720,1080}p.bmp files.
To disable it, edit /etc/oryx/video/overlay.acs. which contains the definitions for each of the streams. Comment out the 'area1' sections by prepending a double dash.
Launching treats
There are a bunch of Furbo/Ambarella scripts under /usr/local/bin. Some noteworthy scripts are listed below:
| Script | Function | Usage |
|---|---|---|
fb_aplay.sh
|
Plays an audio clip. Wrapper around aplay.
|
fb_aplay.sh audio-input-fileaplay
|
fb_arecord.sh
|
Records from onboard microphone | fb_arecord.sh audio-output-file duration
|
fb_led.sh
|
Sets the LED color | fb_led.sh <color>
|
fb_icr.sh
|
Controls the IR led | fb_icr.sh day|night
|
fb_toss_loop.sh
|
Triggers the toss functionality | fb_toss_loop.sh 1
|