Skip to content

Instantly share code, notes, and snippets.

@FloooD
Created March 6, 2011 06:27
Show Gist options
  • Save FloooD/857077 to your computer and use it in GitHub Desktop.
Save FloooD/857077 to your computer and use it in GitHub Desktop.
get your unrealsoftware password from <cs2d>/sys/usgn_pw.dat
#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;
}
@leegao
Copy link

leegao commented Mar 6, 2011

no w xD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment