Git Product home page Git Product logo

rdis-lua's Introduction

This repository is my collection of lua scripts which work with rdis
http://github.com/endeav0r/rdis

/********************************************************
* INSTALLATION                                          *
********************************************************/

// Package Available At AUR : https://aur.archlinux.org/packages/rdis-lua/

// REQUIREMENTS (in addition to rdis)
/////////////////////////////////////

    * luasocket
    * lgi ----- https://github.com/pavouk/lgi
    pacman -S lua51-socket

For lgi, I recommend you grab sources and build for your machine. While LGI is
in the Arch Linux package repos, lgi in the repos is for lua5.2. You will need
to build for lua 5.1.


// SET UP
/////////////////////////////////////
Create a file ~/.rdis.lua and add the following lines which will allow rdis to
automatically include rdis-lua on startup:

  -- change PATH_TO_RDIS_LUA to reflect your system
  local PATH_TO_RDIS_LUA = '/my/path/to/rdis'
  package.path = package.path .. ';' .. PATH_TO_RDIS_LUA .. '/?.lua'
  dofile(PATH_TO_RDIS_LUA .. '/rdis.lua')

/********************************************************
* GDB REMOTE DEBUGGING                                  *
********************************************************/

// NOTES
    This code is not suitable for trivial debugging. It is currently intended
    for development purposes only.

// SUPPORT PLATFORMS
    The only "implemented" architecture is amd64. It has only been tested in
    64-bit Arch Linux.

// USAGE
    gdb_gui(host, port, arch)
    gdb_remote(host, port, arch)
        host -> hostname where gdbserver is running
        port -> port gdbserver is running on
        arch -> the string 'amd64' is currently the only supported value
        returns: a gdb object.

        This function will connect to gdbserver, fetch the executable gdbserver
<<<<<<< HEAD
        is debugging (from /proc/pid), and then load it in rdis.

    gdb object
        gdb:registers()
            returns: a table containing the register values. keys are register
                     names {'rax', 'rbx' ...} and values are the values of
                     those registers
            Ex: for k,v in pairs(gdb:registers()) do print(k, v) end
        gdb:step()
            Steps the binary forward.
=======
        is debugging (from /proc/pid), and then load it in rdis. It also spawns
        a gui for you to work with
>>>>>>> upstream/master

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.