-----------------------------------------------------------------
[*] Initial strace run with jchroot on the command ./usr/bin/digest-mgmt to identify missing areas
[*] Emulating binary name: digest-mgmt in strace mode to identify missing areas (with jchroot)
[*] Emulator used: qemu-mipsel-static
[*] Chroot environment used: jchroot
[*] Using root directory: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract (1/2)
[*] Using CPU config:
--- SIGILL {si_signo=SIGILL, si_code=SI_KERNEL, si_pid=0, si_uid=0} ---
qemu: uncaught target signal 4 (Illegal instruction) - core dumped
[*] Identification of missing filesytem areas.
[*] No missing areas found.
-----------------------------------------------------------------
-----------------------------------------------------------------
[*] Initial strace run with jchroot on the command ./bin/digest-mgmt to identify missing areas
[*] Emulating binary name: digest-mgmt in strace mode to identify missing areas (with jchroot)
[*] Emulator used: qemu-mipsel-static
[*] Chroot environment used: jchroot
[*] Using root directory: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr (2/2)
[*] Using CPU config: 24KEc
1 brk(NULL) = 0x400110a0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3f7c7000
1 uname(0x3ff1d690) = 0
1 access("/etc/ld.so.preload",R_OK) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/etc/ld.so.cache",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/lib/tls/libdigest-mgmt.so",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 stat64("/lib/tls",0x3ff1d2e0) = 0
1 openat(AT_FDCWD,"/lib/libdigest-mgmt.so",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d424,512) = 512
1 prctl(46,1072813368,1072813092,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d2e0) = 0
1 mmap2(NULL,78080,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f7b3000
1 mprotect(0x3f7b6000,61440,PROT_NONE) = 0
1 mmap2(0x3f7c5000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x2) = 0x3f7c5000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libc.so.6",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d414,512) = 512
1 prctl(46,1072813512,1072813076,512,1065377792,0) = 0
1 _llseek(3,0,760,0x3ff1d1e8,SEEK_SET) = 0
1 read(3,0x3ff1d218,32) = 32
1 fstat64(3,0x3ff1d2d0) = 0
1 mmap2(NULL,1593152,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f62e000
1 mprotect(0x3f79b000,61440,PROT_NONE) = 0
1 mmap2(0x3f7aa000,28672,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x16c) = 0x3f7aa000
1 mmap2(0x3f7b1000,8000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f7b1000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libaprutil-1.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d354,512) = 512
1 prctl(46,1072813160,1072812884,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d210) = 0
1 mmap2(NULL,239312,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f5f3000
1 mprotect(0x3f61c000,65536,PROT_NONE) = 0
1 mmap2(0x3f62c000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x29) = 0x3f62c000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libapr-1.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d344,512) = 512
1 prctl(46,1072813176,1072812868,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d200) = 0
1 mmap2(NULL,301280,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f5a9000
1 mprotect(0x3f5e2000,61440,PROT_NONE) = 0
1 mmap2(0x3f5f1000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x38) = 0x3f5f1000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libbootblock.so.2",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d334,512) = 512
1 prctl(46,1072813128,1072812852,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d1f0) = 0
1 mmap2(NULL,78064,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f595000
1 mprotect(0x3f598000,61440,PROT_NONE) = 0
1 mmap2(0x3f5a7000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x2) = 0x3f5a7000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libexpat.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d274,512) = 512
1 prctl(46,1072812968,1072812660,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d130) = 0
1 mmap2(NULL,307440,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f549000
1 mprotect(0x3f583000,61440,PROT_NONE) = 0
1 mmap2(0x3f592000,12288,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x39) = 0x3f592000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libuuid.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d264,512) = 512
1 prctl(46,1072812984,1072812644,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d120) = 0
1 mmap2(NULL,94560,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f531000
1 mprotect(0x3f538000,61440,PROT_NONE) = 0
1 mmap2(0x3f547000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x6) = 0x3f547000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/librt.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d254,512) = 512
1 prctl(46,1072812968,1072812628,512,1065377792,0) = 0
1 _llseek(3,0,704,0x3ff1d028,SEEK_SET) = 0
1 read(3,0x3ff1d058,32) = 32
1 fstat64(3,0x3ff1d110) = 0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3f52f000
1 mmap2(NULL,94928,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f517000
1 mprotect(0x3f51e000,61440,PROT_NONE) = 0
1 mmap2(0x3f52d000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x6) = 0x3f52d000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libcrypt.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d244,512) = 512
1 prctl(46,1072812920,1072812612,512,1065377792,0) = 0
1 _llseek(3,0,648,0x3ff1d010,SEEK_SET) = 0
1 read(3,0x3ff1d040,32) = 32
1 fstat64(3,0x3ff1d100) = 0
1 mmap2(NULL,262716,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f4d6000
1 mprotect(0x3f4df000,61440,PROT_NONE) = 0
1 mmap2(0x3f4ee000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x8) = 0x3f4ee000
1 mmap2(0x3f4f0000,156220,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f4f0000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libpthread.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d234,512) = 512
1 prctl(46,1072813000,1072812596,512,1065377792,0) = 0
1 _llseek(3,0,768,0x3ff1d000,SEEK_SET) = 0
1 read(3,0x3ff1d030,32) = 32
1 fstat64(3,0x3ff1d0f0) = 0
1 mmap2(NULL,181248,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f4a9000
1 mprotect(0x3f4c3000,61440,PROT_NONE) = 0
1 mmap2(0x3f4d2000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x19) = 0x3f4d2000
1 mmap2(0x3f4d4000,5120,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f4d4000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libdl.so.2",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d224,512) = 512
1 prctl(46,1072812888,1072812580,512,1065377792,0) = 0
1 _llseek(3,0,648,0x3ff1cff8,SEEK_SET) = 0
1 read(3,0x3ff1d028,32) = 32
1 fstat64(3,0x3ff1d0e0) = 0
1 mmap2(NULL,73968,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f496000
1 mprotect(0x3f498000,61440,PROT_NONE) = 0
1 mmap2(0x3f4a7000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x1) = 0x3f4a7000
1 close(3) = 0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3f494000
1 set_thread_area(0x3f49b4a0) = 0
1 mprotect(0x3f7aa000,16384,PROT_READ) = 0
1 mprotect(0x3f4a7000,4096,PROT_READ) = 0
1 mprotect(0x3f4d2000,4096,PROT_READ) = 0
1 mprotect(0x3f4ee000,4096,PROT_READ) = 0
1 mprotect(0x3f52d000,4096,PROT_READ) = 0
1 mprotect(0x3f547000,4096,PROT_READ) = 0
1 mprotect(0x3f592000,8192,PROT_READ) = 0
1 mprotect(0x3f5a7000,4096,PROT_READ) = 0
1 mprotect(0x3f5f1000,4096,PROT_READ) = 0
1 mprotect(0x3f62c000,4096,PROT_READ) = 0
1 mprotect(0x3f7c5000,4096,PROT_READ) = 0
1 mprotect(0x40010000,4096,PROT_READ) = 0
1 mprotect(0x3f7fd000,4096,PROT_READ) = 0
1 set_tid_address(0x3f494078) = 1
1 set_robust_list(0x3f494080,12) = -1 errno=89 (Function not implemented)
1 rt_sigaction(32,0x3ff1dce0,NULL) = 0
1 rt_sigaction(33,0x3ff1dce0,NULL) = 0
1 rt_sigprocmask(SIG_UNBLOCK,0x3ff1dd28,NULL,16) = 0
1 getrlimit(3,0x3ff1ddb0) = 0
1 brk(NULL) = 0x400110a0
1 brk(0x400320a0) = 0x400320a0
1 brk(0x40033000) = 0x40033000
1 fstat64(1,0x3ff1db20) = 0
1 write(1,0x40017130,116)Usage:
'digest-mgmt set user password': Add/update user
'digest-mgmt init': Create new digest file with a root user
= 116
1 exit_group(1)
[*] Identification of missing filesytem areas.
[*] Found missing area: /etc/ld.so.cache
[*] Trying to identify this missing file: ld.so.cache
[*] Missing file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/etc/ld.so.cache
[*] Found missing area: /lib/tls/libdigest-mgmt.so
[*] Trying to identify this missing file: libdigest-mgmt.so
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/libdigest-mgmt.so
[*] Copy file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/libdigest-mgmt.so to /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/tls/
-----------------------------------------------------------------