|
Welcome to the GSM-Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Only registered members may post questions, contact other members or search our database of over 8 million posts. Registration is fast, simple and absolutely free so please - Click to REGISTER! If you have any problems with the registration process or your account login, please contact contact us . |
|
Register | FAQ | Donate | Forum Rules | Root any Device | ★iPhone Unlock★ | ★ Direct Codes ★ | Direct Unlock Source |
GSM Programming & Reverse Engineering Here you can post all Kind of GSM Programming and Reverse Engineering tools and Secrets. |
| LinkBack | Thread Tools | Display Modes |
11-04-2011, 02:23 | #1 (permalink) |
Junior Member Join Date: Jan 2005 Age: 44
Posts: 29
Member: 110502 Status: Offline Thanks Meter: 0 | how to read oclHashcat-lite.restore or convert this c source into vb Code: $ cat print-restore.c #include <stdio.h> #include <ctype.h> #include <errno.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <math.h> #include <sys/stat.h> #include <time.h> #include <getopt.h> #include <unistd.h> typedef uint32_t uint; typedef uint64_t uint64; typedef struct { uint version_bin; char cwd[256]; uint argc; char argv[30][256]; uint pw_min; uint64 pw_skip; char unused[232]; } restore_data_t; static void read_restore (const char *eff_restore_file, restore_data_t *rd) { FILE *fp = fopen (eff_restore_file, "rb"); if (fp == NULL) { fprintf (stderr, "ERROR: restore file '%s': %s\n", eff_restore_file, strerror (errno)); exit (-1); } size_t nread = fread (rd, sizeof (restore_data_t), 1, fp); if (nread != 1) { fprintf (stderr, "ERROR: cannot read %s\n", eff_restore_file); exit (-1); } fclose (fp); if (chdir (rd->cwd)) { fprintf (stderr, "ERROR: cannot chdir to %s: %s\n", rd->cwd, strerror (errno)); exit (-1); } } int main (int argc, char *argv[]) { if (argc != 2) { fprintf (stderr, "usage: %s restore-file\n", argv[0]); return (-1); } restore_data_t *rd = (restore_data_t *) malloc (sizeof (restore_data_t)); memset (rd, 0, sizeof (restore_data_t)); read_restore (argv[1], rd); printf ("%llu\n", rd->pw_skip); return 0; } thanks |
Bookmarks |
| |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
news headlines to gsm phone | mos | Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) | 7 | 05-22-2016 11:42 |
How can I do a Welcome note for my 6110 a dosn't have any one ? | Viper | Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) | 8 | 06-27-2015 11:57 |
How to add a language in 51xx/61xx | tati | Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) | 8 | 05-21-2013 19:20 |
How to upload a new firmware... | Brand | Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) | 8 | 06-08-2012 18:29 |
Copy from one 6110 to another | Leif Nielsen | Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) | 1 | 06-10-1999 22:36 |
|