Kioptrix 2 - can't compile the exploit

Hello friends,

in Kioptrix 2 I got stuck at privilege escalation when I try compile the exploit. It always returns an “9545.c:376:28: warning: no newline at end of file” error.

I tried to manually add a new line at the end of code but nothing, google was’t helpfull as well. Anybody knows the solution please? It happened already in more cases and I can’t find anything to get rid of it.

PS: How do you do screenshots in Kali?

Sorry for the delay in response. Try downloading it straight from the source.