Giter Club home page Giter Club logo

lldb-peda's Introduction

lldb-peda

gdb-peda for lldb. Documentation for the lldb API can be found from this link: https://lldb.llvm.org/python_reference/

how to use

Execute this command inside lldb

(lldb)command script import reverse.py

If you want to enable this command whenever lldb is used, then execute this command below

$ cp reverse.py ~
$ echo "command script import  ~/reverse.py" >>$HOME/.lldbinit

command

(lldb)reg
(lldb)code
(lldb)stack
(lldb)peda

example

Alt text Alt text Alt text

peda command will output all of them

Print other registers value with this script

Edit the reverse.py file. Add more register name inside this variable.

OUTPUT_REGISTERS = [
    'rax',
    'rbx',
    'rcx',
    'rdx',
    'rsi',
    'rsi',
    'rdi',
    'rbp',
    'rsp',
    'rip'
]

These register are available

rax
rbx
rcx
rdx
rdi
rsi
rbp
rsp
r8
r9
r10
r11
r12
r13
r14
r15
rip
rflags
cs
fs
gs
eax
ebx
ecx
edx
edi
esi
ebp
esp
r8d
r9d
r10d
r11d
r12d
r13d
r14d
r15d
ax
bx
cx
dx
di
si
bp
sp
r8w
r9w
r10w
r11w
r12w
r13w
r14w
r15w
ah
bh
ch
dh
al
bl
cl
dl
dil
sil
bpl
spl
r8l
r9l
r10l
r11l
r12l
r13l
r14l
r15l
fctrl
fstat
ftag
fop
fioff
fiseg
fooff
foseg
mxcsr
mxcsrmask
stmm0
stmm1
stmm2
stmm3
stmm4
stmm5
stmm6
stmm7
ymm0
ymm1
ymm2
ymm3
ymm4
ymm5
ymm6
ymm7
ymm8
ymm9
ymm10
ymm11
ymm12
ymm13
ymm14
ymm15
xmm0
xmm1
xmm2
xmm3
xmm4
xmm5
xmm6
xmm7
xmm8
xmm9
xmm10
xmm11
xmm12
xmm13
xmm14
xmm15
trapno
err
faultvaddr

lldb-peda's People

Contributors

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