Code Monkey home page Code Monkey logo

mitra's People

Contributors

angea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mitra's Issues

Test to create a polyglot file

Great work! I'll try to create a polyglot file with a payload like this:
0x59657320535346325420776f726b6564206c696b65206120636861726d206f6e20612072616d6469736b203b2d29

Zip and png/jpg files

When running mitra using a ZIP and PNG or JPG (in that order) it will not generate any file. (It will print both file names and then their type, but it wont provide the Stack and Parasite messages)

When reversing the order, you get the 2 files and the full message, however the ZIP is not recognized as a valid archive.

For testing purposes, I did get it to work using a PDF and ZIP, I am assuming there is an issue with PNG/JPG? Which seems odd as it is one of the files from the example.

Consider testing polydet.github.io

Disclaimer: shameless advertising for a tool I developed.

In addition to file as a detection tool, you can try polydet, a tool I developed with a friend when doing research about polyglots. It's empiric and only knows about a few selected file formats, but can detect "suspicious byte chunks" in these formats. It shows better results than file (which it can use as a fallback) and TrID.

Unzipping gives warning

When doing a simple polyglot of a png and a zip file on a mac, it works perfectly.

When opening the png, it works fine. However, when trying to unzip it, it becomes a problem on a Mac OSX Catalina.

I am unable to unzip it simply by clicking it.

Screen Shot 2020-12-29 at 6 27 10 PM

If I manually unzip it using the command line, I get this:

Screen Shot 2020-12-29 at 6 28 05 PM

I know that this is the expected behavior of this wonderful program, but I wanted to get your thoughts on this and perhaps maybe there is a way to allow for no simple detection of polyglots.

Unable to unzip files

PNG+ZIP
JPG+ZIP
JPG+7z

All generate an error while unzipping

End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive.

Is PDF+OGG a supported pair of file formats?

I have tried combining a PDF and an OGG. Mitra outputs the following:

f1.pdf
File 1: Portable Document Format
f2.ogg
File 2: Ogg [container]

... but no more, and no file is generated.

Can I get some more debug output?

Edit: I found the --verbose option. I get the following:

! File type 1 (PDF) can only host parasites at offset 0x30. File 2 should start at offset 0x0 or less.

And when swapping arguments:

! File type 1 (OGG) can accept parasites only of size 0xFFFF max. File 2 is too big (10FC13).

So I conclude that PDF+OGG is only supported by parasiting the PDF in the OGG, and only when the PDF is <64KiB.

Default Sample Not Work ! for png and js

Hi, Before anything, ur research was greate ...

I was try below steps to use the code:

  1. git clone https://github.com/corkami/mitra.git
  2. cd mitra
  3. ./mitra.py input/png.png input/html.htm -f

and then test generated html and png in firefox in multiple ways... , But no alert shown on page :(

I use python3 + ubuntu 2021

I was read and watch all ur docs and I believe its true , can u make a video for bind js in image with default files in input folder .... or can u guess what is the problem ?!

No file created

Hi !

I cloned the repo, am using python 3.6 and have no particular issue while using the script BUT, I just get nothing outputted.
I'm trying to "merge" ball2 into ball so that I have ball.jpg that can also be ball2.png once encrypted (or the other way around doesn't matter, by the way, why can't we do polyglots of same type ? png/png jpg/jpg for ex.)
am I missing something ?

image
image

AssertionError

What is the problem please?

python mitra.py picture.jpg backdoor.zip
Traceback (most recent call last):
File "mitra.py", line 3, in
from parsers import *
File "/pentester/mitra-test/parsers/bpg.py", line 24, in
assert ue7_encs(127) == b"\x7f"
AssertionError

Thank you :-)

Png and zip not working?

So I "combined" a zip and a png file, took the png file that it gave me, renamed it to aaa.zip, opened it but error of 7zip/winrar saying its corrupted

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.