Created
March 6, 2011 06:27
-
-
Save FloooD/857077 to your computer and use it in GitHub Desktop.
get your unrealsoftware password from <cs2d>/sys/usgn_pw.dat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(void) | |
{ | |
FILE *pw = fopen("usgn_pw.dat", "rb"); | |
if (pw == NULL) { | |
printf("Put me in the same folder as usgn_pw.dat!\n\nPress enter to exit..."); | |
getchar(); | |
return 1; | |
} | |
char usgnpw[127]; | |
fgets(usgnpw, 127, pw); | |
fclose(pw); | |
printf("Your USGN password is:\n"); | |
char key[] = {0x61, 0x58, 0x5F, 0xFD, 0x3F, 0x2E, 0x21, 0x6F, 0x59, 0x7A, 0x50, 0x6B, 0x6C}; | |
int i; | |
for (i = 0; usgnpw[i + 2] != '\0'; i++) { | |
printf("%c", usgnpw[i] - key[i % 13]); | |
} | |
printf("\n\nPress enter to exit..."); | |
getchar(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
no w xD