Giter Club home page Giter Club logo

lc-utils's Introduction

lc-utils

Description

This is a compilation of small tools to work with files (usually containing hashes).

If you didn't notice it is heavily inspired by hashcat-utils (which has other great tools, including the greatest of all: rli2).

Important stuff

Never forget to set LC_ALL=C and sort -u input files.

Files used

We are working with different files

  • list: list of hashes, sorted and uniqued
  • found: list of cracked hashes (in hash[:salt]:pass format), sorted and uniqued
  • left: list of hashes not cracked yet (in hash[:salt] format), sorted and uniqued
  • dict: list of only plaintext passwords, sorted but not always uniqued
  • meta: based on a list, contains line number and count of a hash (if count > 1), "sorted"
  • original list: list of hashes, sorted but NOT uniqued

Note: the goal of the meta file is to reduce the size of a hashlist without losing the precious number of occurrence of each hash (it's obviously targetted at unsalted algorithms).

Tools and their uses

alarm

Stops a cmd ran through it if the time exceeds a given time in seconds.

Usage: ./alarm.bin <secs> <cmd>

cmp_rli2

Print the percentage of lines from infile which are in removefile

Usage: ./cmp_rli2.bin <infile> <removefile>

dgrep2

Print first line starting with the provided search string in a sorted and uniqued file

Usage: ./dgrep2.bin <file> <search>

dict

Generate a dict file using provided list and found files

Usage: ./dict.bin <listfile> <foundfile>

leftlist

Generate a left file using provided list and found files

Usage: ./leftlist.bin <listfile> <foundfile>

metabuild

Generate the original list, dict and count using the list and meta files (output will match the count of hashes in the not uniqued original list).

Usage: ./metabuild.bin <type> <listfile> <metafile> [foundfile]

Where type can be:

  • list generate the original list
  • dict generate the dict, using found file (can use uniq -c to get stats and generate a dict sorted by occurrence as well)
  • count count the total of cracked hashes

metagen

Generate the meta file based on an original list file

Usage: ./metagen.bin <listfile> <metafile>

(After this is done, you can unique the original list and keep only the resulting list file).

rli2_len

Generate lines similar to both files but compare using length of infile lines

Usage: ./rli2_len.bin <infile> <removefile>

sed_cut_coffee

Print lines removing leading count & spaces (from the output of uniq -c)

Usage: ./sed_cut_coffee.bin <file>

Building

Install gcc and stuff and also gcc-mingw-w64 to compile for windows

Just do make all

Binaries

Binaries for Linux and Windows can be found here : https://github.com/Xanadrel/lc-utils/releases

lc-utils's People

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.