Skip to content

Latest commit

 

History

History
85 lines (68 loc) · 2.33 KB

README.md

File metadata and controls

85 lines (68 loc) · 2.33 KB

RTL960x Emulator

This script allow you to modify and reverse engineering RTL960x based firmware.

Architecture

  • MIPS (R3000 variant/PlayStation One)
  • ARMv8 (Cortex A55)

Prerequisite

You need these program installed:

  • tar (extract tar package)
  • squashfs-tools (extract/repack rootfs)
  • qemu-user-static (run MIPS VM)

Most Ubuntu based distro have tar and squashfs-tools installed!

Install

  • Download qemu-test.sh
  • Make executable chmod +x qemu-test.sh

Syntax

Pretty simple to do, script do everything, you simply play with it

.\qemu-test.sh firmware_file.tar

Ready

After you run, Terminal Emulator will land busybox just like telnet:

Installing: chroot QEMU MIPS
RTL960x Emulator is Running!


BusyBox v1.12.4 (2020-10-26 08:35:57 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

# 

During this screen, you can start modify the firmware, look into "firmware_file" folder.

Customise

You can customise the firmware by creating custom folder along side qemu-test.sh

Folder Structure

─┐
 ├ [custom]
 │    ├ [bin]
 │    ├ [home]
 │    │    └ [httpd]
 │    │         ├ [web]
 │    │         │    └ *.asp
 │    │         └ boa.conf
 │    └ [etc]
 │         ├ [init.d]
 │         │    └ rc*
 │         └ [scripts]
 │              └ *.sh
 │
 ├ [V2801F_V1.9.0-200825]
 │    ├ [squashfs-root]
 │    ├ fwu.sh
 │    ┊
 │    └ md5.txt
 │
 ├ custom.sh
 ├ V2801F_V1.9.0-200825.tar
 └ qemu-test.sh

Tip

The custom folder is a mirror of squashfs-root. All file in custom will be copied and replace to squashfs-root folder when exit from chroot environment

The custom.sh file will run outside of chroot when exit chroot environment, this a special script if you want do some housekeeping (remove unused file, inject new line, etc...)

To add custom run script, please use init.d/rc35 file

Picture

You can change to your own image, sample project file located at WebGui/Project Files

topbar.png

topbar.png

router.png

router.png