I’m trying to do understand the kernel network stack for a security research for my university. That’s why I try to debug the linux kernel. So far I’m doing quite well but I ran in a problem when trying to use qemu and gdb for debugging. The problem is as follows: I boot my linux system: make boot And connect
Tag: gdb
Buffer Overflow: NOP sled not working [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 5 years ago. Improve this question Hey I’m trying to do a buffer overflow on a basic C program,
how to save “set solib-search-path”
I wonder linux gdb debugging. I have 1 execute file, 1 core dump file. so, I opened it in linux like this, but, I only show error message. so, I input command, and symbol read succeed. and, I input command and, I reopen dump file. like this, but still show same error message. I don’t want to show this error
GDB doesn’t recognize some C functions
So I’m new to Linux and just got Ubuntu 16.04.2 running on a VM. I’ve installed gcc/g++ on here in the terminal, but when I run my program in GDB, as soon as I get to a strcmp function, this pops up for many lines. And when I go further down: So I’m guessing it just doesn’t recognize my C
(GDB) Breakpoints and Disassemble
I’ve been recently interested in reading books and articles about hacking and I found out that Hacking:The art of exploitation is just a must read title. I am following the basic tutorials on how to work with standard Linux tools and analyze your code (Programming chapter). I am not a beginner in programming but working with Linux terminal is quite
debug wget command with gdb
I want to debug wget with a special url. So how to pass the url to gdb? I already tried with –args <the url>, but it dosen’t work. Please help me. ps: I used gdb in the wrong way gdb wget –args http://www.google.com/, it should be gdb –args wget http://www.google.com/ Answer This should work:
How to view the internal data of a smart pointer inside gdb?
I’ve got test program like below: Debug it: It only prints out the pointer type information of si, but how to get the value stored in it (in this case 5)? How can I check the internal content of si during debugging? Answer Try the following: Now, this assumes that you’re using libstdc++.so, given the output for p si. Alternatively,
What mechanism does gdb use to know where to “finish” a function call?
In gdb, when debugging inside a function, we can use “finish” command to run to the end of a function. My question is: how does gdb know the ending position of a function, especially when there’s no debugging symbol to match source code “{}”? I guess gdb looks for either “leave” or “mov %rbp, %rsp,pop %rbp” under x86 in order
Does linux “gdb a.out param1 param2” pass param1 and 2 to “gdb” or “a.out”?
Is there any case that param1 and param2 are passed to gdb, and some cases passed to a.out, and some cases, 1 for each? How does linux shell parse and decide which param for which program? Thanks. Answer How does linux shell parse and decide which param for which program? Linux shell simply passes all params to gdb. It’s gdb
how to keep a subprocess running and keep supplying output to it in python?
I am not able to keep alive a tunnel created by subprocess to fire multiple commands. first i tried this to execute a subprocess then i tried this in first case it executes the commands and then exits the gdb making it impossible to keep suplying commands to gdb and in second case it does not execute after b main