GithubHelp home page GithubHelp logo

anthrax3 / lsb-toolkit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 0x00-0x00/lsb-toolkit

0.0 1.0 0.0 632 KB

This is a small and simple toolkit that might be useful during steganalysis, it is currently composed by several general purpose command line tools.

Python 100.00%

lsb-toolkit's Introduction

lsb-toolkit

This is a small and simple toolkit that might be useful during steganalysis, it is currently composed by several general purpose command line tools.

  • Version: 0.3
  • Author: [email protected]
  • License : Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0)
STEGANALYSIS TOOLS

lsb-enancher
Produce a picture from input image that enhance bit variations. 
This particular picture might reveal suspicious patterns inside the analyzed image.
lsb-extract
Dump the 'LSBs' of the image pixel with several modalities. For instance is
possible to select wich channel consider during extraction ([a][r][g][b]) or 
which bit consiter ([0..7]). 

Supported algorithms:
RAW LSB - examples (pixel/data-bits)
	channels=argb 
		pixel | rgba | rgba | rgba | rgba | 
		data  | 7654   3210 | 7654   3210 | 
	channels=rgb
		pixel | rgb | rgb | rgb | rgb | rgb | rgb | rgb | rgb | rgb | rgb | rgb |
		data  | 765   432   107 | 654   321   076 | 543   210   765 | 432   107 |
	channels=rg
		pixel | rg | rg | rg | rg | rg  
		data  | 76 Basic Profile
	channels=r
		pixel | r | r | r | r 
		data  | 7   6   5   4 
CLASSIC LSB - examples (pixel/data-bits)
	channel= rgb (mandatory)
		| rgb | rgb | rgb | rgb | rgb | rgb | rgb | rgb | rgb | 
		| 765   432   10- | 765   432   10- | 765   432   10E |
		 '-' means unused, 'E' means end of bit stream (our "EOF")
		 In practice '-' is a 0-bit and 'E' becomes 1-bit
lsb-embed
lsb-extract's dual tool.
Embed data from STDINPUT into a picture using the same algorithms
lsb-randomness-b
Calculate the randomness of a bit string.
lsb-autocorr-b
Calculate theautocorrelation of a bit string measuring how much the shifted
version of the bit string is similar to the original bit string.
Number of shits and shift step are configurable.
lsb-chisquare
Perform a chi-square test on an image pixel stream. This statistical test
helps to determinate when the distribution of lsb is similar to a random 
distribution (might reveal encrypted or compressed payload).
If you need graphics use some external tool like gnuplot.
lsb-echo-pixels
Utiliy that produce a pixel stream in output, in other world it 
print out the integer values of the image pixels.
Typical usage: /lsb-echo-pixels -f image.png | ./lsb-chisquare
lsb-image-create
Create pictures from a pixel stream. It could be useful for visualizing raw files 
in order to observe the presence of regular patterns, or also for recreate image 
from an extracted pixel stream (eg. with lsb-echo-pixels)
lsb-imageop
Utility for performing pixel per pixel operation on a couple of images.
Can be really useful if user has access to the original steganography carrier. 

USAGE:


./lsb-extract.py -f image.png -o dump -c rgb -b 012

Means that you will extract the bit 0,1 and 2 from every pixel considering rgb channels. Note that rgb is different than grb and 012 is different than 102 !

Use --help on each tool for further detail.

FUTURE DEVELOPMENT:


- Support audio too..
- Support more algorithms
- Support more analysis (RS analysis?)

lsb-toolkit's People

Contributors

luca-m 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.