Skip to content

Instantly share code, notes, and snippets.

View sarveshkapre's full-sized avatar

Sarvesh Kapre sarveshkapre

  • LinkedIn
  • SF Bay Area
View GitHub Profile
@sarveshkapre
sarveshkapre / pass2hash.c
Created April 19, 2016 05:39
Dictionary attacks
Part II: Dictionary attacks
C program to use a dictionary to generate passwords and hashes. This program will also display the entropy for each password it generates.
@sarveshkapre
sarveshkapre / brute.c
Last active April 19, 2016 05:44
Brute-Force attack
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if defined(__APPLE__)
#define COMMON_DIGEST_FOR_OPENSSL
#include <CommonCrypto/CommonDigest.h>
#define SHA1 CC_SHA1
#else
#include <openssl/md5.h>
#endif