GSM Shop GSM Shop
GSM-Forum  

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 .

Go Back   GSM-Forum > Other Gsm/Mobile Related Forums > GSM Programming & Reverse Engineering


GSM Programming & Reverse Engineering Here you can post all Kind of GSM Programming and Reverse Engineering tools and Secrets.

Reply
 
LinkBack Thread Tools Display Modes
Old 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


how to read pw_skip data on oclHashcat-lite.restore & other data in vb

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;
}
code originally posted here http://hashcat.net/forum/thread-493.html


thanks
  Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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

 



All times are GMT +1. The time now is 09:13.



Powered by Searchlight © 2024 Axivo Inc.
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
- GSM Hosting Ltd. - 1999-2023 -
Page generated in 0.13019 seconds with 10 queries

SEO by vBSEO