Git Product home page Git Product logo

McHammerCoder

McHammerCoder is a binary capable parser and unparser generator. It generates a parser and unparser based on a grammar defining their input and output language. Injection attacks for the defined language are prevented by the unparser through automatic extraction and generation of an encoding.

It is presented at the LangSec Workshop http://spw17.langsec.org/papers.html#autoderiving

Prerequisites

JDK 8

Maven

Installation Guide

##1. Installing Dependencies for Hammer:

sudo apt-get install gcc scons pkg-config libglib2.0-0 glib2.0-dev

##2. Installing McHammerCoder (Maven):

@ /core

mvn clean install

If the installation does not complete on your system, there is a docker image available at https://hub.docker.com/r/notaname/mchammercoder/

Combined Example Project:

@ /examples/McHammerCoder-Example-Maven-Webapp

mvn clean jetty:run

This starts a simple website. It allows to test McHammerCoder's capabilities in the context of XML and HTML.

Parser Only Example Project:

@ /examples/McHammer-Example-DNSSimple-Project

##Compile mvn clean install

##Execute mvn exec:java -Dexec.mainClass="de.monticore.mchammercoder.examples.DNSSimpleExample" -Dexec.args="ValidDNS.dns"

This parses a file called "ValidDNS.dns", checks the tokens of the parse tree and displays it.

#Output Folder Structure:

######/out/resources - libjhammer_actions.so ######/out/examples - HTMLRedTool + HTMLRedInjector ######/out/htmlred/_coder - MCHammerCoder ######/out/htmlred/_mch_parser - MCHammerParser

mchammercoder's Projects

hammer icon hammer

Parser combinators for binary formats, in C. Yes, in C. What? Don't look at me like that.

monticore icon monticore

MontiCore is a language workbench for an efficient development of domain-specific languages.

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.