Main is usually a function – when is it not?
jroweboy.github.io
Main is usually a function – when is it not?
1–10 of 62 posts
Re: Main is usually a function – when is it not?
#2https://0xcd80.wordpress.com/2011/04/29/linux-x86-shellcodin...
Re: Main is usually a function – when is it not?
#3 char main[] = {
movl(1, eax),
movl(1, ebx),
movl(message, esi),
movl(13, edx),
syscall(),
movl(60, eax),
xorl(ebx, ebx),
syscall(),
};
Obviously there are some technical difficulties like handling literal values and code sections, but it could be a fun hack, and I've love to see what someone could come up with.Re: Main is usually a function – when is it not?
#4 int main = 0;
This code compiles (cleanly!), but segfaults.Re: Main is usually a function – when is it not?
#5On the topic of "executable ASCII", the EICAR test file is an interesting example: http://en.wikipedia.org/wiki/EICAR_test_file
Re: Main is usually a function – when is it not?
#6I recall from somewhere: int main = 0; This code compiles (cleanly!), but segfaults.
EDIT: Your original post contained
int main=0;Re: Main is usually a function – when is it not?
#7I bet these two ideas would go well together.
Re: Main is usually a function – when is it not?
#8Reminds me of this 'Hello World': http://stackoverflow.com/questions/15182496/why-does-this-co... I bet these two ideas would go well together.
Re: Main is usually a function – when is it not?
#9I'm afraid I may be a victim of Poe's law here, but this attitude is... distressing. It completely discounts the value of problem solving, which, once upon a time, was the entire point of the profession.
Re: Main is usually a function – when is it not?
#10> My problem solving process is typically the same thing I imagine most programmers do. I'm afraid I may be a victim of Poe's law here, but this attitude is... distressing. It completely discounts the value of problem solving, which, once upon a time, was the entire point of the profession.
An example of that is the article itself which leverages the gained information from SO to solve the real problem.
Also arcane knowledge is not the same thing as problem solving.