[*] Emulating binary name: hostapd
[*] 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/hostapd
[*] Emulating binary ./usr/sbin/hostapd with parameter NONE
[*] Emulating binary ./usr/sbin/hostapd with parameter -v
Configuration file: NONE
Could not open configuration file 'NONE' for reading.
[*] Emulating binary ./usr/sbin/hostapd with parameter -V
hostapd v0.4.8
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2005, Jouni Malinen <jkmaline@cc.hut.fi> and contributors
./usr/sbin/hostapd: invalid option -- V
hostapd v0.4.8
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2005, Jouni Malinen <jkmaline@cc.hut.fi> and contributors
usage: hostapd [-hdBKt] <configuration file(s)>
options:
-h show this usage
-d show more debug messages (-dd for even more)
-B run daemon in the background
-K include key data in debug messages
-t include timestamps in some debug messages
-v show hostapd version
[*] Emulating binary ./usr/sbin/hostapd with parameter -h
[*] Emulating binary ./usr/sbin/hostapd with parameter -help
hostapd v0.4.8
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2005, Jouni Malinen <jkmaline@cc.hut.fi> and contributors
usage: hostapd [-hdBKt] <configuration file(s)>
options:
-h show this usage
-d show more debug messages (-dd for even more)
-B run daemon in the background
-K include key data in debug messages
-t include timestamps in some debug messages
-v show hostapd version
[*] Emulating binary ./usr/sbin/hostapd with parameter --help
hostapd v0.4.8
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2005, Jouni Malinen <jkmaline@cc.hut.fi> and contributors
usage: hostapd [-hdBKt] <configuration file(s)>
options:
-h show this usage
-d show more debug messages (-dd for even more)
-B run daemon in the background
-K include key data in debug messages
-t include timestamps in some debug messages
-v show hostapd version
[*] Emulating binary ./usr/sbin/hostapd with parameter --version
./usr/sbin/hostapd: invalid option -- -
hostapd v0.4.8
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2005, Jouni Malinen <jkmaline@cc.hut.fi> and contributors
usage: hostapd [-hdBKt] <configuration file(s)>
options:
-h show this usage
-d show more debug messages (-dd for even more)
-B run daemon in the background
-K include key data in debug messages
-t include timestamps in some debug messages
-v show hostapd version
./usr/sbin/hostapd: invalid option -- -
hostapd v0.4.8
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2005, Jouni Malinen <jkmaline@cc.hut.fi> and contributors
[*] Emulating binary ./usr/sbin/hostapd with parameter version
usage: hostapd [-hdBKt] <configuration file(s)>
options:
-h show this usage
-d show more debug messages (-dd for even more)
-B run daemon in the background
-K include key data in debug messages
-t include timestamps in some debug messages
-v show hostapd version
Configuration file: version
Could not open configuration file 'version' for reading.
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/hostapd <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.