Code Monkey home page Code Monkey logo

expl's Introduction

Description

Generate Exploit Template

I've written this template generator to write my exploits.

Installation

Install from pip:
pip install expl
Install from source
  1. clone it from repo:
git clone https://github.com/AlirezaKm/expl
  1. Install from source:
cd expl
pip install -e .

Usage

$ expl
Usage: expl [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  both    Generate a Template for Local and Remote
  local   Generate Local Template
  remote  Generate Remote Template

More Info about commands
$ expl local --help
Usage: expl local [OPTIONS] FILE

  Generate Local Template

Options:
  -a, --arch TEXT      Architecture of Executable File  [default: x86_64]
  --os TEXT            OS of Executable File  [default: linux]
  -e, --endian TEXT    OS of Executable File  [default: little]
  -l, --loglevel TEXT  Log Level of pwntools  [default: info]
  -r, --realpath TEXT  using realpath for Executable File  [default: False]
  --libc TEXT          Address of LIBC
  --heap               Adding heap functions
  -o, --output TEXT    write to output
  --help               Show this message and exit.
Generate a template for a Local Executable File
$ expl local vuln
#!/usr/bin/python2

from pwn import *



context(arch='x86_64', os='linux', endian='little', log_level='info')


def info(s):
    log.info(s)


def exploit(r):
    r.interactive()


if __name__ == '__main__':
 
    r = process(['vuln'])
    print(util.proc.pidof(r))
    pause()
    exploit(r)

expl's People

Contributors

alirezakm avatar dependabot[bot] avatar

Stargazers

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