-----------------------------------------------------------------
[*] Initial strace run with jchroot on the command ./mnt/tls_tunnel/tls_tunnel to identify missing areas
[*] Emulating binary name: tls_tunnel 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/1568982-13971496.squashfs_v4_le_extract (1/1)
[*] Using CPU config:
1 brk(NULL) = 0x004151c0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3ffc8000
1 uname(0x4071e6d0) = 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/libmbedtls.so.12",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 stat64("/lib/tls",0x4071e308) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/lib/libmbedtls.so.12",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 stat64("/lib",0x4071e308) = 0
1 openat(AT_FDCWD,"/usr/lib/tls/libmbedtls.so.12",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 stat64("/usr/lib/tls",0x4071e308) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/usr/lib/libmbedtls.so.12",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e454,512) = 512
1 prctl(46,8,1081205844,512,1073770496,0) = 0
1 fstat64(3,0x4071e318) = 0
1 mmap2(NULL,152592,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ffa2000
1 mprotect(0x3ffb7000,61440,PROT_NONE) = 0
1 mmap2(0x3ffc6000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x14) = 0x3ffc6000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/libmbedx509.so.0",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/usr/lib/libmbedx509.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e43c,512) = 512
1 prctl(46,8,1081205820,512,1073770496,0) = 0
1 fstat64(3,0x4071e300) = 0
1 mmap2(NULL,115200,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ff85000
1 mprotect(0x3ff91000,61440,PROT_NONE) = 0
1 mmap2(0x3ffa0000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0xb) = 0x3ffa0000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/libmbedcrypto.so.3",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/usr/lib/libmbedcrypto.so.3",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e424,512) = 512
1 prctl(46,8,1081205796,512,1073770496,0) = 0
1 fstat64(3,0x4071e2e8) = 0
1 mmap2(NULL,313468,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ff38000
1 mprotect(0x3ff71000,65536,PROT_NONE) = 0
1 mmap2(0x3ff81000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x39) = 0x3ff81000
1 mmap2(0x3ff83000,6268,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3ff83000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/libgcc_s.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e40c,512) = 512
1 prctl(46,9,1081205772,512,1073770496,0) = 0
1 fstat64(3,0x4071e2d0) = 0
1 mmap2(NULL,144160,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ff14000
1 mprotect(0x3ff27000,61440,PROT_NONE) = 0
1 mmap2(0x3ff36000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x12) = 0x3ff36000
1 mprotect(0x4071e000,4096,PROT_EXEC|PROT_READ|PROT_WRITE|PROT_GROWSDOWN) = 0
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/libc.so.6",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e3f4,512) = 512
1 prctl(46,13,1081205748,512,1073770496,0) = 0
1 _llseek(3,0,792,0x4071e1b0,SEEK_SET) = 0
1 read(3,0x4071e1e0,32) = 32
1 fstat64(3,0x4071e2b8) = 0
1 mmap2(NULL,1630336,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3fd85000
1 mprotect(0x3fefb000,61440,PROT_NONE) = 0
1 mmap2(0x3ff0a000,28672,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x175) = 0x3ff0a000
1 mmap2(0x3ff11000,8320,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3ff11000
1 close(3) = 0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3fd83000
1 set_thread_area(0x3fd8a4a0) = 0
1 mprotect(0x3ff0a000,16384,PROT_READ) = 0
1 mprotect(0x3ff36000,4096,PROT_READ) = 0
1 mprotect(0x3ff81000,4096,PROT_READ) = 0
1 mprotect(0x3ffa0000,4096,PROT_READ) = 0
1 mprotect(0x3ffc6000,4096,PROT_READ) = 0
1 mprotect(0x00414000,4096,PROT_READ) = 0
1 mprotect(0x3fffe000,4096,PROT_READ) = 0
1 access("tls_tunnel.conf",F_OK) = -1 errno=2 (No such file or directory)
1 write(2,0x4071c6d0,47)ERROR: can not find config at: tls_tunnel.conf
= 47
1 write(2,0x402f6c,519)tls_tunnel (v1.0)
usage: [-v] [-l localip:port] [-r remoteip:port]
-v verify certificate
-F conf file path, by default 'WORK_DIR/tls_tunnel.conf'
-a CA path, 'WORK_DIR/ca-certificates' by default
-l listen locally on this [host:]port, 127.0.0.1:3333 by default
-r connect to remote machine on [host:]port
-P pidfile, '/var/run/tls_tunnel.pid' by default
-f foreground mode. off by default
-D syslog level (0...7)
-h print this usage.
= 519
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/1568982-13971496.squashfs_v4_le_extract/etc/ld.so.cache
[*] Found missing area: /lib/libmbedcrypto.so.3
[*] Trying to identify this missing file: libmbedcrypto.so.3
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/usr/lib/libmbedcrypto.so.3
[*] Copy file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/usr/lib/libmbedcrypto.so.3 to /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/
[*] Found missing area: /lib/libmbedtls.so.12
[*] Trying to identify this missing file: libmbedtls.so.12
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/usr/lib/libmbedtls.so.12
[*] Copy file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/usr/lib/libmbedtls.so.12 to /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/
[*] Found missing area: /lib/libmbedx509.so.0
[*] Trying to identify this missing file: libmbedx509.so.0
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/usr/lib/libmbedx509.so.0
[*] Copy file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/usr/lib/libmbedx509.so.0 to /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/
[*] Found missing area: /lib/tls/libmbedtls.so.12
[*] Trying to identify this missing file: libmbedtls.so.12
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/libmbedtls.so.12
[*] Copy file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/libmbedtls.so.12 to /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/tls/
[*] Found missing area: /usr/lib/tls/libmbedtls.so.12
[*] Trying to identify this missing file: libmbedtls.so.12
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/libmbedtls.so.12
[*] Creating directory /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/usr/lib/tls
[*] Copy file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/libmbedtls.so.12 to /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/usr/lib/tls/
-----------------------------------------------------------------