[*] Binary protection state of basicdeviceinfo.cgi
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function printf tear down of basicdeviceinfo.cgi
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/basicdeviceinfo.cgi @ 0x22b0 */
| #include <stdint.h>
|
; (fcn) fcn.000022b0 () | void fcn_000022b0 () {
0x000022b0 lui gp, 2 |
0x000022b4 addiu gp, gp, -0x6280 |
0x000022b8 addu gp, gp, t9 | gp += t9;
0x000022bc addiu sp, sp, -0x28 |
0x000022c0 lw t9, -0x7f2c(gp) | t9 = sym.imp.g_strdup_printf
0x000022c4 sw ra, 0x24(sp) | *(var_24h) = ra;
0x000022c8 sw s2, 0x20(sp) | *(var_20h) = s2;
0x000022cc sw s1, 0x1c(sp) | *(var_1ch) = s1;
0x000022d0 sw s0, 0x18(sp) | *(var_18h) = s0;
0x000022d4 sw gp, 0x10(sp) | *(var_10h) = gp;
0x000022d8 move s2, a3 | s2 = a3;
0x000022dc jalr t9 | t9 ();
0x000022e0 lw gp, 0x10(sp) | gp = *(var_10h);
0x000022e4 addiu a0, zero, 0xc | a0 = 0xc;
0x000022e8 lw t9, -0x7f74(gp) | t9 = sym.imp.g_malloc0;
0x000022ec move s1, v0 | s1 = v0;
0x000022f0 jalr t9 | t9 ();
0x000022f4 lw gp, 0x10(sp) | gp = *(var_10h);
0x000022f8 lw a0, 0x38(sp) | a0 = *(arg_38h);
0x000022fc sw s2, 4(v0) | *((v0 + 1)) = s2;
0x00002300 lw t9, -0x7f10(gp) | t9 = sym.imp.g_strndup;
0x00002304 sw s1, 8(v0) | *((v0 + 2)) = s1;
0x00002308 addiu a1, zero, 0x400 | a1 = 0x400;
0x0000230c move s0, v0 | s0 = v0;
0x00002310 jalr t9 | t9 ();
0x00002314 lw ra, 0x24(sp) | ra = *(var_24h);
0x00002318 sw v0, (s0) | *(s0) = v0;
0x0000231c lw s2, 0x20(sp) | s2 = *(var_20h);
0x00002320 move v0, s0 | v0 = s0;
0x00002324 lw s1, 0x1c(sp) | s1 = *(var_1ch);
0x00002328 lw s0, 0x18(sp) | s0 = *(var_18h);
0x0000232c addiu sp, sp, 0x28 |
0x00002330 jr ra | return v0;
| }
[*] Function printf used 2 times basicdeviceinfo.cgi