Giter VIP home page Giter VIP logo

compile's Introduction

what is this

compile generates usable x86 shellcode from a programming language with python-style syntax, using yet another messy python script.

screenshot

the shellcode generated by the script meets some requirements:

  • contains no null bytes
  • contains no hardcoded memory addresses
  • is as small and optimized as possible

usage

./compile.sh <file>

run the above command, and it will output the x86 shellcode in \xff\x... format.

the standard file extension for this language is .sl (-> simple/shellcoding language).

examples

i put a few example sl scripts in the examples/ directory

bugs

feel free to make a pr, but i won't be actively developing the project anymore or fixing bugs

docs

i haven't written any docs, but really quickly, here are the constants:

stdin = 0
stdout = 1
stderr = 2
o_rdonly = 0b0
o_creat = 0b100
o_trunc = 0b1000

if you want documentation for the default syscalls/functions, in the compile.py file, ctrl+f for syscalls = {.

fun facts

  • i wrote this entire thing during a few periods of my computer science class when i was a hs sophomore (2017-18)
  • i've updated this script a lot and added a ton of new features, but will not be releasing the newer version
  • i had only learned python a few months before writing this script, that's why it's so messy (and because i was not planning on releasing it)

compile's People

Contributors

arinerron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.