Ingo Molnar <mingo@redhat.com> writes:
>
> ie. if the binary anywhere has code that does:
>
> system("/bin/sh")
You just need system(char *arg) { ... } (= in every libc). Then put /bin/sh somewhere and
a pointer to it on the stack as argument and overwrite some return address on the
stack to jump to it.
-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed May 07 2003 - 22:00:19 EST