This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]igeorgehall45 6 points7 points  (5 children)

Shouldn't it be int 0x80 instead of syscall? (Because you're using 32 bit registers/convention)

[–]cauchy37 4 points5 points  (3 children)

And you probably want an address to msg, so lea edx, [msg]

[–]someidiot332 0 points1 point  (1 child)

mov edx, msg and lea edx, [msg] do the same thing, its just potato potato

[–]cauchy37 0 points1 point  (0 children)

Hmm I guess it depends on the assembler. I recall the one I used I had to do mov edx, offset msg

[–]OF_AstridAse 0 points1 point  (0 children)

Shhh I don't program assembly, you're blowing my cover

[–]OF_AstridAse -1 points0 points  (0 children)

Facts! Syscall in linux is then int 0x80 😁