Comments (3)
Please share the generated file, your python version, and your gdb version.
Looks likes bkps is a list of strings instead of breakpoints or numbers that know how to format, so probably has to do with your gdb version.
from gef-extras.
Python script that gef outputs:
#!/usr/bin/env python3
import sys, os
from pwn import *
context.update(
arch="i386",
endian="little",
os="linux",
log_level="debug",
terminal=["tmux", "split-window", "-h", "-p 65"],
)
REMOTE = False
TARGET=os.path.realpath("/home/user/Downloads/start")
elf = ELF(TARGET)
def attach(r):
if not REMOTE:
bkps = []
cmds = []
gdb.attach(r, '\n'.join(["break *{:#x}".format(x) for x in bkps] + cmds))
return
def exploit(r):
attach(r)
# r.sendlineafter(b"> ", b"HelloPwn" )
r.interactive()
return
if __name__ == "__main__":
if len(sys.argv)==2 and sys.argv[1]=="remote":
REMOTE = True
r = remote("chall.pwnable.tw", 10000)
else:
REMOTE = False
r = process([TARGET,])
exploit(r)
exit(0)
from gef-extras.
I suspect this is not the file that generated the stack because bkps
is empty.
However, there was a bug and it is fixed.
@acondra2 you're welcome to report bugs in gef (or gef-extras) but in the future provide as much details as possible for us to reproduce. Remember that we're not on your computer 😀 You can use this for a template example.
Cheers.
from gef-extras.
Related Issues (20)
- Command 'visualize-libc-heap-chunks' failed to execute properly, reason: type object 'GlibcArena' has no attribute 'TCACHE_MAX_BINS' HOT 5
- windbg alias p conflicts with p/x, p/d HOT 1
- ``visualize-libc-heap-chunks`` command seems to fail because of a mistype on a GlibcChunk class member HOT 7
- improve retdec decompilation output
- skel is_big_endian deprecated HOT 2
- some error in ubuntu20.04:AttributeError: type object 'ABCMeta' has no attribute '_cmdline_' HOT 11
- unable to use syscall-args when gef-extras configured in python3.9 HOT 6
- source syntax highlight HOT 1
- Cannot print stack frame using `stack-view` when in main method
- Install script fails to pull all dependencies HOT 3
- ropper.py breaks tab completion
- `visualize-heap` is broken HOT 1
- libc_function_args and syscall_args error when installing gef-extras HOT 6
- Trying to run unicorn-emulate with an ARM64 binary causes a syntax error HOT 4
- Restore Binja compat for `ida-interact`
- NameError: name 'register' is not defined HOT 6
- Command stack support? HOT 4
- libc_function_args does not respect context.libc_args HOT 1
- Latest version of retdec does not seem to work with GEF-Extras
- [Bug] GEF with openocd HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gef-extras.