Permalink
Browse files

Add a comment to dup shellcodes

  • Loading branch information...
zachriggle committed Nov 10, 2017
1 parent 4e24f66 commit 6ea5722f5b1f62f148d5adba3867e6c9c29090a9
@@ -10,7 +10,7 @@ Args: [sock (imm/reg) = rbp]
after = common.label("after")
%>
/* dup() file descriptor ${sock} into stdin/stdout/stderr */
${dup}:
${amd64.mov('rbp', sock)}
@@ -11,6 +11,7 @@ Args: [sock (imm/reg) = ebp]
looplabel = common.label("loop")
%>
/* dup() file descriptor ${sock} into stdin/stdout/stderr */
${dup}:
${mov('ebx', sock)}
${mov('ecx', 3)}
@@ -9,6 +9,7 @@ Args: [sock (imm/reg) = r6]
dup = common.label("dup")
looplabel = common.label("loop")
%>
/* dup() file descriptor ${sock} into stdin/stdout/stderr */
${dup}:
${mov('r1', 2)}
${mov('r7', 'SYS_dup2')}

0 comments on commit 6ea5722

Please sign in to comment.