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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:47:26+00:00 2026-06-17T21:47:26+00:00

A version of the following code appears in this presentation about heap spraying (this

  • 0

A version of the following code appears in this presentation about heap spraying (this link causes a powerpoint download), as well as in this lecture video by Dan Boneh.

<SCRIPT language="text/javascript">
    shellcode = unescape("%u4343%u4343%...");
    oneblock = unescape("%u0C0C%u0C0C");
    cause-overflow(overflow-string); //overflow buf[]
</SCRIPT>

The cause-overflow() function isn’t implemented here, but I think it would just write shellcode + nop all over the heap.

Is shellcode actually machine code for something like exec(/bin/sh), or is shellcode the memory location of some shell code?

Is oneblock a NOP slide?

(More generally, what is this code doing? Why does it cause a heap spray?)


P.S. Not homework; I’m just a noob to javascript.

  • 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-06-17T21:47:27+00:00Added an answer on June 17, 2026 at 9:47 pm

    (Can’t open either of those two links from this machine.)

    I’ve never played with heap spraying in Javascript — the thought is really rather horrible.

    It has nothing to do with shell code (since it isn’t running in a shell) but rather it gets right down to machine language — the native code of the CPU.

    This is a rather crude and someone inaccurate way of describing things, but it gets the basics across.

    The heap is nothing special. It is just computer memory. The stack is nothing terribly special either, it is just computer memory. Program space is nothing terribly special either, it is just computer memory.

    Normally[*], the running program is kept in “Program space.” Big things the program creates are kept in the “Heap” and temporary things the program makes are kept in the “Stack.” (Simplification — deal with it.)

    The idea of buffer overruns, smashing the stack or spraying the heap or whatever the latest trick is … to somehow fill the computer memory with a carefully crafted bad data and force the computer to stop running things in the program space, but rather in your carefully crafted bad data.

    In involves rather careful knowledge of

    • the program that is running
    • the system it is running on
    • Machine language/code

    [*] Yes, there are some efforts being made to change this and make computers more protected

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

Sidebar

Related Questions

The following code is a simplified version of what I use for event dispatching.
The following code is not compiling in Java: java version 1.6.0_24 OpenJDK Runtime Environment
with the following code (a boiled-down version of my original code) #include <iostream> #include
I use MinGW latest version to compile the following code. I get the folowing
Given the following code, is there a way I can call class A's version
I am using the following code under ASP.NET 4.0 framework to obtain the version
I've tried many versions of the following code in g++ ( version 4.6.3 ).
I'm using jQuery version 1.7.1 from Google CDN and have the following code: $(menuInstance).delay(2000).removeClass('loading').html(ul);
I'm working in ASP.NET MVC 1.0 using MvcContrib FluentHtml version 1.0. The following code
Consider the following code snippet: #!/bin/bash #This program tests the if statement in bash.

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.