I was trying to send a string to another application running on a server (which I do not have access to). The string includes null characters.
Now I noticed that when I run the following code in a script,
print('abc\x00\x91\x11\x01123')
the output…
I am trying to exploit a given program and I can't figure out what I doing wrong. Long story short I manage to inject code to overwrite the RIP. This means that I should be able to redirect the code execution, but the problem is, I get SIGSEGV. Do I…
I was making a simple CTF(Capture The Flag) problem with docker. The current case is simple(It's not a real problem, it's just a test.); enter a specified string and get a shell(/bin/bash) if correct.
The original C source code is here. If the…
The problem is based on linux/x64 asm wget+chmod+exec
I have some questions to ask
I am using pwntool for buffer overflow attack, I want to stuff the shellcode in the stack for him to run, I tested using execve("/bin/sh') and I can get the shell…
I was importing pwntools in google colab but this error stops pwntools from importing:
UnsupportedOperation Traceback (most recent call last)
in ()
----> 1 from pwn import *
2…
While I was trying to run pwninit I was getting the following error
error: failed making template solve script: error reading solve script template:
error reading "/home/mike/.config/pwninit-template.py":
No such file or directory (os error…
im trying to do a ROP attack using buffer over flow:
int main(void)
{
char str[112];
puts("What is your name? ");
scanf("%129s",str);
printf("Goodbye %s!\n",str);
return 0;
}
Im trying to buffer over flow the RIP and my offset is…
I am trying to initiate an SSH connection from my local machine to a host via pwntools and I keep getting a ValueError raised, even though when I ssh the same host from the terminal I get no errors.
My code is as follows:
from pwn import…
I am trying to identify the offset in which a buffer overflow occurs via pwntools and gdb. Here is the C code (x64):
int input[8];
int count, num;
count = 0;
while(1)
{
printf("Enter:\n");
scanf("%d", &num);
if (num ==…
I'm experimenting on pwntools ctf framework. Why the following disasm gives different output . Here just converting 'nop' and get the byte string.
>>> asm('nop')
b'\x90'
>>> disasm(b'\x90')
' 0: 90 nop'
x090 is the opcode…
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 invoke as it was supposed to be. The process stops…
Im trying to install pwntools on OSX but theres a little bump in the installation process, for some reason, there is this module called "unicorn" that uses a setup.py which is deprecated, is there a work around for this?
error:…
In the last few days I tried to solve "unlink" challenge in pwnable.kr and I'm struggling to attach a debugger remotely and locally on the server using pwntools (code added below).
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from pwn import…