Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. buffer overrun

buffer overrun

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++tutorial
9 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nuttynibbles
    wrote on last edited by
    #1

    hmm i dunno if this is appropriate but my question is how to do a simple bufferoverrun which hack into a function. basically i got a c++ code which has 2 function, foo() and bar(). the program accept input and pass the input to foo(). i want to buffer overrun till it reads into bar() function. can this be done??

    D 1 Reply Last reply
    0
    • N nuttynibbles

      hmm i dunno if this is appropriate but my question is how to do a simple bufferoverrun which hack into a function. basically i got a c++ code which has 2 function, foo() and bar(). the program accept input and pass the input to foo(). i want to buffer overrun till it reads into bar() function. can this be done??

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      nuttynibbles wrote:

      can this be done??

      Sure. I've never tried it so I do not have any examples. See here.

      "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      L 1 Reply Last reply
      0
      • D David Crow

        nuttynibbles wrote:

        can this be done??

        Sure. I've never tried it so I do not have any examples. See here.

        "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        DavidCrow wrote:

        See here.

        Do you think it's a good idea to teach people how to hack?

        D 1 Reply Last reply
        0
        • L Lost User

          DavidCrow wrote:

          See here.

          Do you think it's a good idea to teach people how to hack?

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          I'm not really in a position to judge someone, Richard. A lot of what I know today is a direct result of my past. I was not a criminal, but I did want to know how things worked.

          "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          L 1 Reply Last reply
          0
          • D David Crow

            I'm not really in a position to judge someone, Richard. A lot of what I know today is a direct result of my past. I was not a criminal, but I did want to know how things worked.

            "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            DavidCrow wrote:

            I'm not really in a position to judge someone

            Nor me, but the original question included the following "my question is how to do a simple bufferoverrun which hack into a function.", which leads me to believe this could well be someone trying to write a virus of sorts.

            N 1 Reply Last reply
            0
            • L Lost User

              DavidCrow wrote:

              I'm not really in a position to judge someone

              Nor me, but the original question included the following "my question is how to do a simple bufferoverrun which hack into a function.", which leads me to believe this could well be someone trying to write a virus of sorts.

              N Offline
              N Offline
              nuttynibbles
              wrote on last edited by
              #6

              hey sorry guys but its actually for a simple school assignment. we need to know the ways of buffer overrun to better write a secure system. things like strcpy are vulnerable if not used correctly

              modified on Wednesday, November 4, 2009 5:44 PM

              L 1 Reply Last reply
              0
              • N nuttynibbles

                hey sorry guys but its actually for a simple school assignment. we need to know the ways of buffer overrun to better write a secure system. things like strcpy are vulnerable if not used correctly

                modified on Wednesday, November 4, 2009 5:44 PM

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                Perhaps your request could have been worded better; the word 'hack' tends to ring alarm bells.

                N 1 Reply Last reply
                0
                • L Lost User

                  Perhaps your request could have been worded better; the word 'hack' tends to ring alarm bells.

                  N Offline
                  N Offline
                  nuttynibbles
                  wrote on last edited by
                  #8

                  haha my bad. anw i managed to do it. basically do buffer overrun and when the system crash, find the return address. use ASCII to input the function address that u wanna gain access to.

                  M 1 Reply Last reply
                  0
                  • N nuttynibbles

                    haha my bad. anw i managed to do it. basically do buffer overrun and when the system crash, find the return address. use ASCII to input the function address that u wanna gain access to.

                    M Offline
                    M Offline
                    MindCoder79
                    wrote on last edited by
                    #9

                    Hey I would like to appreciate your intension behind the question. I would strongly suggest this[^]

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups