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 7704003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:35:15+00:00 2026-05-31T23:35:15+00:00

I thought null bytes were not allowed in shellcode. While understanding some shellcode, I

  • 0

I thought null bytes were not allowed in shellcode. While understanding some shellcode, I seem to have come across some code that contains null’s and works perfect, why is this?

http://pastie.org/private/feg8du0e9kfagng4rrg

  • 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-31T23:35:16+00:00Added an answer on May 31, 2026 at 11:35 pm

    The problem with null bytes in shellcode is only for cases when it is injected using overflows in string handling with C standard string library, where null byte means end of string and so copying shall stop on it. Exploiting buffer overflow with C-style string was the most popular shellcode injection approach in mid-90s. Currently, most C code is (AFAIK) protected from this using another functions (either OpenBSD strlcpy/strlcat set, *_s() set, or home-grown functions), and less old environments as C++ had already got string library without null byte termination. Currently, most exploits use some programming errors as too small buffer, or incoming value mischecking when it shall be between some bounds.

    I didn’t analyze the code you linked but seems it uses incorrect handling of TLVs in binary data. It anyway is null-safe due to binary data handling (but exploitable in another way).

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

Sidebar

Related Questions

I thought that there was some way in .net 3.0 to give an array
I'm working with some binary data that I have stored in arbitrarily long arrays
I thought .Net code gets compiled into MSIL, so I always wondered how do
I thought I heard that py2exe was able to do this, but I never
I have a problem in some devices like Galaxy Nexus, where if you keep
I have a .NET Windows Service which spawns a thread that basically just acts
I'm building a prototype game and have some multiplayer functionality hooked up. I am
I have an API in NETMF C# that I am writing that includes a
I have managed to overwrite the first few bytes of a function in memory
In some sample code given by a professor: #include <stdio.h> #include <string.h> #include <stdlib.h>

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.