against_modern_football Posted March 6, 2012 Report Posted March 6, 2012 (edited) #include <stdio.h>#include <stdlib.h>#include <signal.h>#include <setjmp.h>void catcher(int a){ setresuid(geteuid(),geteuid(),geteuid()); printf("WIN!\n"); system("/bin/sh"); exit(0);}int main(int argc, char **argv){ puts("source code is available in level02.c\n"); if (argc != 3 || !atoi(argv[2])) return 1; signal(SIGFPE, catcher); return abs(atoi(argv[1])) / atoi(argv[2]);}Codul trebuie sa sara din IF si sa ajunga la urmatoarea instructiune. ( nu merge divide by 0 din cauza la !atoi(argv[2]). Are careva vreo idee?./level02 -2147483648 -1Trebuie impartit cel mai mic integer negativ la -1 si primesc aceeasi exceptie Edited March 6, 2012 by against_modern_football ca nu mai e nevoie Quote