Skip to main content

Questions tagged [pwntools]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
66 views

problem with LD_PRELOAD

Hell0!!! I try ld_preload by pwntools and take it... How can I fix this problem???
K05t1K_RWX's user avatar
2 votes
0 answers
365 views

neovim: pwntools process automatically stops when trying to invoke interactive shell

I'm using python pwntools. I'm using python 3.10.x This line of code should open a shell for me: io.interactive() But while running this file from vim using !./% it doesn't open the shell doesn't ...
NobinPegasus's user avatar
1 vote
0 answers
139 views

Reversing Assembly Code (ASM) to Extract Password (Pin)

I'm new to binary exploitation and CTF challenges. I need to solve a CTF challenge and find the flag. All the program does is display "Flag length is: 32". I've tried to analyze the file ...
Анатолий Городничий's user avatar
0 votes
0 answers
715 views

Basic buffer-overflow on a remote program with Python/pwntools

I work on a online program in which I should do a buffer Overflow. When I run the program, I have to complete a sum of two numbers generated randomly) : >>> 451389913 + 1587598959 = If I put ...
Julien's user avatar
  • 101
0 votes
1 answer
126 views

ROP: System function not printing results to stdout

in oder to solve a CTF-Challenge I have to construct a small ROP-chain. The scope of the ROP chain is to print the content of the `flag` file. I already constructed the ROP-chain, but it seems that ...
pekusbill's user avatar
1 vote
0 answers
2k views

Got EOF while sending in interactive,How can I solve it?

Position: https://github.com/ctf-wiki/ctf-wiki/blob/master/docs/zh/docs/pwn/linux/user-mode/stackoverflow/x86/basic-rop.md It provides a program named ret2shellcode. I try to pwn it, but I failed. I ...
lucence victor's user avatar
0 votes
1 answer
412 views

ret2libc: problem getting exploit work without pwntools

I am trying to exploit this program test with ret2libc. Only NX is enabled. #include <stdio.h> void vuln() { char buffer[256]; gets(buffer); } int main() { vuln(); return 0; } ...
Mr Krisey's user avatar
1 vote
1 answer
5k views

Buffer overflow: pwntools does not give me a shell, despite exploit working without pwntools

Recently, I've been trying to learn how to use the pwntools library. I am trying to exploit the following program using pwntools: #include <stdio.h> #include <stdlib.h> int main(void) { ...
TigerThePredator's user avatar
1 vote
2 answers
484 views

Can I decompile a file if I have a compiler? [closed]

Is it possible to reverse the compiled code using a compiler? I have a compiler in the form of exe and using it I can compile the file. But there is no possible instruction I got to decompile a file. ...
Jaffer Wilson's user avatar
3 votes
1 answer
15k views

Receiving "Got EOF while reading in interactive" after properly executing system("/bin/sh") using pwntools

I've followed some tutorials on writing a pwntools-based exploit for the bitterman ELF binary, used in a CTF competition. However, all my attempts fail with the message below, i.e. Got EOF while ...
Shuzheng's user avatar
  • 295
1 vote
2 answers
1k views

pwntools shellcode narnia2

I'm trying to solve the narnia2 challenge on overthewire. I read a guide for help and managed to overwrite the stack with A's using some python $(python -c "print 'A'*132 + '\xef\xbe\xad\xde'") ...
CWright's user avatar
  • 111
0 votes
1 answer
5k views

Pwntools shows, "Got EOF while reading in interactive"?

When I run pwntools, I'm getting [+] Here comes the shell! [*] Switching to interactive mode [*] Got EOF while reading in interactive $ Why is it getting EOF? Where should I start looking for the ...
Evan Carroll's user avatar
  • 1,789
1 vote
1 answer
12k views

What is the right way to pack a payload with Python3's pwntools

On the tutorial by Megabeets, "A journey into Radare 2 – Part 2: Exploitation", he shows an example of how to create a payload with Python2 # Initial payload payload = "A"*140 # padding ropchain = ...
Evan Carroll's user avatar
  • 1,789