[*] Binary protection state of editcgi.cgi

  
  	Full RELRO     Canary found      NX disabled  PIE enabled  No RPATH     No RUNPATH   No Symbols


[*] Function printf tear down of editcgi.cgi

sw s5, 0x304(sp)
sw s4, 0x300(sp)
sw s2, 0x2f8(sp)
sw s0, 0x2f0(sp)
sw a0, 0x44(sp)
sw ra, 0x314(sp)
sw fp, 0x310(sp)
sw s3, 0x2fc(sp)
move s0, a2
move s5, a1
move s2, a3
sw v1, 0x2ec(sp)
lw a0, 0x1c(a2)
beqz v0, 0x2a60
lw s4, -0x7fcc(gp)
lw v0, 0x5868(s4)
beq v0, a0, 0x2aa8
lw s3, -0x7fcc(gp)
lw t9, -sym.imp.getpwuid(gp)
jalr t9
nop
beqz v0, 0x3140
lw gp, 0x30(sp)
lw s3, -0x7fcc(gp)
lw a2, -0x7fdc(gp)
lw t9, -sym.imp.snprintf(gp)
lw a3, (v0)
addiu a2, a2, 0x40d0
addiu a1, zero, 9
jalr t9
addiu a0, s3, 0x585c
lw gp, 0x30(sp)
lw v0, 0x1c(s0)
sw v0, 0x5868(s4)
addiu v0, zero, 1
sw v0, 0x586c(s1)
lw s1, -0x7fcc(gp)
lw a0, 0x20(s0)
lw v0, 0x5858(s1)
beqz v0, 0x2ac8
lw fp, -0x7fcc(gp)
lw v0, 0x5854(fp)
beql v0, a0, 0x2e88
lw v0, 0x14(s0)
lw t9, -sym.imp.getgrgid(gp)
jalr t9
nop
beqz v0, 0x3178
lw gp, 0x30(sp)
lw s4, -0x7fcc(gp)
lw a2, -0x7fdc(gp)
lw t9, -sym.imp.snprintf(gp)
lw a3, (v0)
addiu a2, a2, 0x40d0
addiu a1, zero, 9
jalr t9
addiu a0, s4, 0x5848
lw gp, 0x30(sp)
lw v0, 0x20(s0)
addiu v1, zero, 0x2000
sw v0, 0x5854(fp)
addiu v0, zero, 1
sw v0, 0x5858(s1)
lw v0, 0x14(s0)
andi v0, v0, 0xb000
bnel v0, v1, 0x2e9c
lw v0, 0x30(s0)
lw v0, 0x24(s0)
lw t9, -sym.imp.__snprintf_chk(gp)
andi v1, v0, 0xff
srl v0, v0, 8
sw v0, 0x14(sp)

[*] Function printf used 3 times editcgi.cgi