Permalink
Browse files

Initial commit

  • Loading branch information...
atom
atom committed Feb 9, 2015
1 parent 10727d7 commit 1b6226991a2f5e4c1ba98d204e60755c38cb00f6
Showing with 1,184 additions and 2 deletions.
  1. +8 −0 CHANGES
  2. +21 −0 LICENSE
  3. +32 −2 README.md
  4. BIN hashcat.hcstat
  5. +48 −0 src/Makefile
  6. +1,075 −0 src/sp.c
@@ -0,0 +1,8 @@
* v0.10 -> v0.11:

- Open Source the project
- License is MIT
- Moved repository to github: https://github.com/jsteube/statsprocessor
- Added CHANGES
- Added LICENSE
- Added README.md
21 LICENSE
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2015 Jens Steube

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -1,2 +1,32 @@
# statsprocessor
High-Performance word generator based on markov stats
statsprocessor
==============

Statsprocessor is a word-generator based on per-position markov-chains packed into a single stand-alone binary.

Example
--------------

The following example was made just to see what comes out of statsprocessor.

root@sf:~/statsprocessor-0.07# ./sp64.bin --pw-min 5 --pw-max 5 hashcat.hcstat ?l?l?l?l?l | head -9
sange
songe
serin
singe
sunge
srane
shane
slane
snder

In markov-attack we have a statistic generated which letter is following which letter based on the analysis of the original input dictionary used to generate the .hcstat. In this case the most used letter on the first position is the letter is “s”. The program then looks up the markov-table with the key “s” to get the most used letter after the letter “s” on position 0. In our case, its the letter “a”. This “chain” goes till the ende of the word and iterates through all letters stored in the markov-table.

Compile
--------------

Simply run make

Binary distribution
--------------

Binaries for Linux, Windows and OSX: https://github.com/jsteube/statsprocessor/releases
BIN +32.1 MB hashcat.hcstat
Binary file not shown.
@@ -0,0 +1,48 @@
##
## Makefile for sp
##

CFLAGS = -W -Wall -std=c99 -O2 -s
#CFLAGS = -W -Wall -std=c99 -g

#CC_LINUX32 = /opt/hashcat-toolchain/linux32/bin/i686-hashcat-linux-gnu-gcc
#CC_LINUX64 = /opt/hashcat-toolchain/linux64/bin/x86_64-hashcat-linux-gnu-gcc
CC_LINUX32 = gcc
CC_LINUX64 = gcc
CC_WINDOWS32 = /usr/bin/i686-w64-mingw32-gcc
CC_WINDOWS64 = /usr/bin/x86_64-w64-mingw32-gcc
CC_OSX32 = /usr/bin/i686-apple-darwin10-gcc
CC_OSX64 = /usr/bin/i686-apple-darwin10-gcc

CFLAGS_LINUX32 = $(CFLAGS) -m32 -DLINUX
CFLAGS_LINUX64 = $(CFLAGS) -m64 -DLINUX
CFLAGS_WINDOWS32 = $(CFLAGS) -m32 -DWINDOWS
CFLAGS_WINDOWS64 = $(CFLAGS) -m64 -DWINDOWS
CFLAGS_OSX32 = $(CFLAGS) -m32 -DOSX
CFLAGS_OSX64 = $(CFLAGS) -m64 -DOSX

all: sp64.bin

sp32: sp32.bin sp32.exe sp32.app
sp64: sp64.bin sp64.exe sp64.app

clean:
rm -f sp32.bin sp64.bin sp32.exe sp64.exe sp32.app sp64.app

sp32.bin: sp.c
$(CC_LINUX32) $(CFLAGS_LINUX32) -o $@ $^

sp64.bin: sp.c
$(CC_LINUX64) $(CFLAGS_LINUX64) -o $@ $^

sp32.exe: sp.c
$(CC_WINDOWS32) $(CFLAGS_WINDOWS32) -o $@ $^

sp64.exe: sp.c
$(CC_WINDOWS64) $(CFLAGS_WINDOWS64) -o $@ $^

sp32.app: sp.c
$(CC_OSX32) $(CFLAGS_OSX32) -o $@ $^

sp64.app: sp.c
$(CC_OSX64) $(CFLAGS_OSX64) -o $@ $^
Oops, something went wrong.

0 comments on commit 1b62269

Please sign in to comment.