Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 31468
1 vote
Accepted

ret2libc: problem getting exploit work without pwntools

It seems that I made two critical mistakes when I tried to use myfile.txt to exploit the binary. When writing the exploit to the file I did NOT append \n to the payload. P.sendline() appends this to …
Mr Krisey's user avatar
0 votes
1 answer
424 views

ret2libc: problem getting exploit work without pwntools

#include <stdio.h> void vuln() { char buffer[256]; gets(buffer); } int main() { vuln(); return 0; } I am able to exploit the program with pwntools, but I am unable to exploit it doing … with open('myfile.txt', 'wb') as w: w.write(payload) P.sendline(payload) P.interactive() exit() What is the difference from running pwntools and piping bytes into the program? …
Mr Krisey's user avatar