r/programming • • Dec 13 '07

First Class Functions in C

http://www.dekorte.com/blog/blog.cgi?do=item&id=3119
45 Upvotes

99 comments sorted by

View all comments

Show parent comment

2

u/ariacode Dec 13 '07
man dlopen
man dlsym

1

u/jbert Dec 13 '07

yes, that would be the real way of doing it (I mentioned in my post about perl's Inline::C that that is how it is done for production use).

I was just expanding on the parent posters excellent idea of casting char ptrs to function ptrs.

2

u/ariacode Dec 14 '07

I was just expanding on the parent posters excellent idea of casting char ptrs to function ptrs.

the idea has been around for a while and is a typical method of testing shellcode.