Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- By Johurt, 2015/04/18
- */
- new buf[1300], File:handle = fopen("vartotojai.txt", io_read), c, kelintas, kur[4], i, vardas[21], slaptazodis[129];
- if(handle)
- {
- while(fread(handle, buf))
- {
- i++;
- kelintas = 0;
- for(c = 0; c < 100; c++)
- {
- if(buf[c] == 0x27)
- {
- kelintas ++;
- if(kelintas > 6) break;
- if(kelintas == 3 || kelintas == 4) continue;
- kur[kelintas - ((kelintas == 1 || kelintas == 2) ? (1) : (3))] = c;
- }
- }
- strmid(vardas, buf, kur[0] + 1, kur[1]);
- strmid(slaptazodis, buf, kur[2] + 1, kur[3]);
- printf("{%c%s%c, %c%s%c, %c%s%c},", 0x22, vardas, 0x22, 0x22, slaptazodis, 0x22, 0x22, MD5_Hash(slaptazodis), 0x22);
- /*printf("i: %d | {%c%s%c, %c%s%c},", i, 0x22, vardas, 0x22, 0x22, slaptazodis, 0x22);
- print(buf);
- if(i == 2) break;*/
- }
- fclose(handle);
- }
- /*
- Result:
- [19:53:17] {"Mike_Bellic", "Ignas123", "86F5F28D495B09B50699E74C5AD03E10"},
- [19:53:17] {"Carl_Deivison", "qwerty", "D8578EDF8458CE06FBC5BB76A58C5CA4"},
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement