GithubHelp home page GithubHelp logo

idkwim / pwntools-ruby Goto Github PK

View Code? Open in Web Editor NEW

This project forked from peter50216/pwntools-ruby

0.0 3.0 0.0 441 KB

WIP: pwntools on Ruby!

License: MIT License

Ruby 98.73% Shell 1.18% C 0.09%

pwntools-ruby's Introduction

GitHub stars Dependency Status Build Status Test Coverage Code Climate Inline docs MIT License

pwntools-ruby

Always sad when playing CTF that there's nothing equivalent to pwntools in Python. While pwntools is awesome, I always love Ruby far more than Python... So this is an attempt to create such library.

There's almost NOTHING here now. (Edit: there's something here now, but not much ๐Ÿ˜‰) Going to implement important things (socket, tubes, asm/disasm, pack/unpack utilities) first. Would try to have consistent naming with original pwntools, and do things in Ruby style.

Example Usage

# encoding: ASCII-8BIT
# The encoding line is important most time, or you'll get "\u0000" when using "\x00" in code,
# which is NOT what we want when doing pwn...

require 'pwn'

p pack(0x41424344)  # 'DCBA'
context.endian = 'big'
p pack(0x41424344)  # 'ABCD'

context.local(bits: 16) do
  p pack(0x4142)  # 'AB'
end

Development

git clone [email protected]:peter50216/pwntools-ruby.git
cd pwntools-ruby
rake

Note to irb users

irb defines main.context.

For the ease of exploit development in irb, that method would be removed if you use require 'pwn'.

You can still get the IRB::Context by irb_context.

pwntools-ruby's People

Contributors

david942j avatar hanhanw avatar peter50216 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.