From efcbc9b988735f20d0d35fe08c221248d0d5b4af Mon Sep 17 00:00:00 2001 From: Gerard Wagener Date: Fri, 8 Jan 2010 18:08:10 +0100 Subject: [PATCH] Add insulting program --- aha/insult.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 aha/insult.c diff --git a/aha/insult.c b/aha/insult.c new file mode 100644 index 00000000000..ab594ded5f3 --- /dev/null +++ b/aha/insult.c @@ -0,0 +1,26 @@ +/* + * Insulting program that should be installed on the honeypot. + * The kernel then swaps the filename for do_execve with this one + * + * (c) 2010 Gerard Wagener + * LICENSE GPL + */ +#include +#include +#define N 4 +char* list[] = {"Fuck you", + "Is that all? I want to do more ...", + "Go away", + "I love you"}; + +int main(int argc, char* argv[]){ + int idx; + if (argc==2){ + idx=atoi(argv[1]); + if ((idx>=0) && (idx