Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6829137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:27:52+00:00 2026-05-26T22:27:52+00:00

I am trying to do a buffer overflow attack for a given vulnerable code.

  • 0

I am trying to do a buffer overflow attack for a given vulnerable code.
But it seems it is going wrong because, Although my exploit strings do not corrupt the stack, I cannot get my assembly code(embedded in the exploit string) worked at all.

Here is the piece of memory values before the execution of ‘ret’ instruction of the program I want to attack.

0x55683984:     0x5568398c   0x...(old r.a)      0x68e322a1      0x0000c31c
0x55683994:     0xf7fa9400      0x0804a3d7       0x556839c0      0xf7e518d0

At this point, Things go wrong because it cannot pop the stack and make %eip point to popped value? So my exploit assembly code doesn’t work.(0x68e322a1 0x0000c31c)
Gdb says No function contains program counter for selected frame. and when I try to execute it without debugging, It causes a segmentation fault.

Does this problem have something to do with the length of my assembly? (in this case it is 6)?

Program received signal SIGSEGV, Segmentation fault.
0x5568398c in ?? ()
(gdb) x 0x5568398c
0x5568398c: 0x68e322a1

how can this happen when I am able to see what’s inside the address which causes segfault?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:27:53+00:00Added an answer on May 26, 2026 at 10:27 pm

    Ok, here is the story I forgot to place a ‘$’ in front of the address in the movl instruction in my assembly code. Thus, program was trying to access to a undefined memory address which cause a segmentation fault.

    But, I do not like the way GDB notifies this situation by saying just ‘No function contains program counter for selected frame’

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to run a buffer overflow example to run some code, but
I am trying to learn to use buffer overflow attack in Ubuntu. Unfortunately, I
I am trying to perform a buffer overflow attack on a program for a
I'm trying to find a way to buffer FileNames from a given directory in
I am trying to setup my swap chain Buffer but I get the following
I'm trying to send messages generated by Google Protocol Buffer code via a simple
Good day everyone! I am trying to understand how buffer overflow works. Right now,
I have been trying to replicate the buffer overflow example3 from this article aleph
I'm trying to learn about stack base overflow and write a simple code to
I'm trying to inspect a buffer which contains a binary formatted message, but also

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.