[*] Emulating binary name: logger
[*] Emulator used: qemu-mipsel
[*] Using root directory: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/DIR-600_fw_revb5_214b01_ALL_de_20130122/dir600b_v2.14_d1mg.bin_extract/1179788-3612812.squashfs_v4_le_extract (1/1)
[*] Using CPU config: NONE
[*] Emulating binary: /usr/sbin/logger
[*] Emulating binary ./usr/sbin/logger with parameter NONE
[*] Emulating binary ./usr/sbin/logger with parameter -v
[*] Emulating binary ./usr/sbin/logger with parameter -V
logger: no message !
logger exit with code 9
[*] Emulating binary ./usr/sbin/logger with parameter -h
./usr/sbin/logger: invalid option -- V
logger version 0.01
Usage: logger [OPTION]
-h show this help message
-v verbose mode
-s Log the message to standard error, as well as the system log
-p {pri} enter the message with the specified priority
-t {tag} Mark every line in the log with the specified tag.
facility names:
auth authpriv cron daemon ftp
kern lpr mail mark news
security syslog user uucp local0
local1 local2 local3 local4 local5
local6 local7
sysact debug attack drop notice
wireless apsysact apnotice time
priority names:
alert crit debug emerg err
error info none notice panic
warn warning
[*] Emulating binary ./usr/sbin/logger with parameter -help
logger version 0.01
Usage: logger [OPTION]
-h show this help message
-v verbose mode
-s Log the message to standard error, as well as the system log
-p {pri} enter the message with the specified priority
-t {tag} Mark every line in the log with the specified tag.
facility names:
auth authpriv cron daemon ftp
kern lpr mail mark news
security syslog user uucp local0
local1 local2 local3 local4 local5
local6 local7
sysact debug attack drop notice
wireless apsysact apnotice time
priority names:
alert crit debug emerg err
error info none notice panic
warn warning
[*] Emulating binary ./usr/sbin/logger with parameter --help
logger version 0.01
Usage: logger [OPTION]
-h show this help message
-v verbose mode
-s Log the message to standard error, as well as the system log
-p {pri} enter the message with the specified priority
-t {tag} Mark every line in the log with the specified tag.
facility names:
auth authpriv cron daemon ftp
kern lpr mail mark news
security syslog user uucp local0
local1 local2 local3 local4 local5
local6 local7
sysact debug attack drop notice
wireless apsysact apnotice time
priority names:
alert crit debug emerg err
error info none notice panic
warn warning
[*] Emulating binary ./usr/sbin/logger with parameter --version
./usr/sbin/logger: invalid option -- -
logger version 0.01
Usage: logger [OPTION]
-h show this help message
-v verbose mode
-s Log the message to standard error, as well as the system log
-p {pri} enter the message with the specified priority
-t {tag} Mark every line in the log with the specified tag.
facility names:
auth authpriv cron daemon ftp
kern lpr mail mark news
security syslog user uucp local0
local1 local2 local3 local4 local5
local6 local7
sysact debug attack drop notice
wireless apsysact apnotice time
priority names:
alert crit debug emerg err
error info none notice panic
warn warning
[*] Emulating binary ./usr/sbin/logger with parameter version
./usr/sbin/logger: invalid option -- -
logger version 0.01
Usage: logger [OPTION]
-h show this help message
-v verbose mode
-s Log the message to standard error, as well as the system log
-p {pri} enter the message with the specified priority
-t {tag} Mark every line in the log with the specified tag.
facility names:
auth authpriv cron daemon ftp
kern lpr mail mark news
security syslog user uucp local0
local1 local2 local3 local4 local5
local6 local7
sysact debug attack drop notice
wireless apsysact apnotice time
priority names:
alert crit debug emerg err
error info none notice panic
warn warning
For reproducing the EMBA user-mode emulation mechanism, the following commands could be used as starting point:
- Start EMBA docker container with the firmware directory as log directory:
# EMBA="." FIRMWARE="/home/runner/work/emba/emba/DIR-600_fw_revb5_214b01_ALL_de_20130122.zip" LOG="/absolute/path/to/EMBA/log/directory" docker-compose run emba
- Change your working directory to the root directory of your firmware:
# cd /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/DIR-600_fw_revb5_214b01_ALL_de_20130122/dir600b_v2.14_d1mg.bin_extract/1179788-3612812.squashfs_v4_le_extract
- Copy the static compiled user-mode emulator to your current working directory
# cp $(which qemu-mipsel) .
- Start the emulation with the following command:
# jchroot . -- ./qemu-mipsel ./usr/sbin/logger <parameters like -v or --help>
WARNING: EMBA is doing some more magic in the background. Probably it is not that easy, but give it a try.