Skip to content

[POC Snippet Request] pwntools #6

@Esonhugh

Description

@Esonhugh

Category

pwn

Tool

pwntools

Snippet Name

pwntools heap exploit function alias

Snippet Content

s       = lambda data               :p.send(data)
sl      = lambda data               :p.sendline(data)
sa      = lambda x,data             :p.sendafter(x, data)
sla     = lambda x,data             :p.sendlineafter(x, data)

def malloc(size,content):
    sla('Your choice :',b'1')
    sla('Size of Heap : ',str(size))
    sa('Content',content)

def edit(index,content):
    sla('Your choice :',b'2')
    sla('Index :',str(index))
    sla('Size of Heap : ',str(len(content)))
    sla('Content of heap : ',content)

def free(index):
    sla('Your choice :',b'3')
    sla('Index :',str(index))

def show(index):
    sla('Your choice :',b'4')
    sla('Index :',str(index))

Short Description

pwntools heap exploitation malloc/free operation reusable snippet

Trigger Prefix

def malloc(size

Language

python

more detail.

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions