But quite it is a 'round-about' way to do it. And I do agree that using a web compiler does lose control, but it'd be a nice option, imo (in the sense that it's better than nothing). I will try to integrate this into the compiler. If I can't, alas.
Code: Select all
{
"code": 0,
"stdout": [
],
"stderr": [
],
"okToCache": true,
"hasOptOutput": false,
"asm": [
{
"text": ".plt.got:",
"source": null
},
{
"opcodes": ["ff","25","02","0c","20","00"],
"address": 4195312,
"text": " jmp QWORD PTR [rip+0x200c02] # 600ff8 <_DYNAMIC+0x200>",
"source": null,
"links": [
{
"offset": 32,
"length": 6,
"to": 6295544
}
]
},
{
"opcodes": ["66","90"],
"address": 4195318,
"text": " xchg ax,ax",
"source": null,
"links": null
},
{
"text": "square(int):",
"source": null
},
{
"opcodes": ["55"],
"address": 4195543,
"text": " push rbp",
"source": 2,
"links": null
},
{
"opcodes": ["48","89","e5"],
"address": 4195544,
"text": " mov rbp,rsp",
"source": 2,
"links": null
},
{
"opcodes": ["89","7d","fc"],
"address": 4195547,
"text": " mov DWORD PTR [rbp-0x4],edi",
"source": 2,
"links": null
},
{
"opcodes": ["83","45","fc","01"],
"address": 4195550,
"text": " add DWORD PTR [rbp-0x4],0x1",
"source": 3,
"links": null
},
{
"opcodes": ["8b","45","fc"],
"address": 4195554,
"text": " mov eax,DWORD PTR [rbp-0x4]",
"source": 4,
"links": null
},
{
"opcodes": ["0f","af","45","fc"],
"address": 4195557,
"text": " imul eax,DWORD PTR [rbp-0x4]",
"source": 4,
"links": null
},
{
"opcodes": ["5d"],
"address": 4195561,
"text": " pop rbp",
"source": 5,
"links": null
},
{
"opcodes": ["c3"],
"address": 4195562,
"text": " ret ",
"source": 5,
"links": null
},
{
"text": "main:",
"source": null
},
{
"opcodes": ["55"],
"address": 4195563,
"text": " push rbp",
"source": 6,
"links": null
},
{
"opcodes": ["48","89","e5"],
"address": 4195564,
"text": " mov rbp,rsp",
"source": 6,
"links": null
},
{
"opcodes": ["b8","00","00","00","00"],
"address": 4195567,
"text": " mov eax,0x0",
"source": 6,
"links": null
},
{
"opcodes": ["5d"],
"address": 4195572,
"text": " pop rbp",
"source": 6,
"links": null
},
{
"opcodes": ["c3"],
"address": 4195573,
"text": " ret ",
"source": 6,
"links": null
},
{
"opcodes": ["66","2e","0f","1f","84","00","00","00","00","00"],
"address": 4195574,
"text": " nop WORD PTR cs:[rax+rax*1+0x0]",
"source": 6,
"links": null
}
]
}
which seems very manageable... It also seems the payload is JSON also.