Coder Social home page Coder Social logo

no-aslr's Introduction

no-aslr

This utility allows you to run a program without ASLR (supports Linux and macOS). It is extremely simple.

Motivation

Sometimes you just wish to disable ASLR. There can be many reasons to want to do so. It might be because you want to debug a program, and somehow the behavior of the program is not consistent across because of memory addresses. Perhaps your program writes memory addresses to a log and your logs are full of different memory addresses. Perhaps your program uses a special allocator that really wants the memory addresses to be the same. Perhaps your program uses some sort of dumping mechanism, like the Emacs dumper, so execution state can be saved across program runs. There can be many reasons to want to do so.

How to Use

The program is a single-file executable with no other dependencies other than libc. Simply compile it. On many systems you can ask make to do this automatically using builtin rules:

make no-aslr

And then you may execute your program by providing the name and the arguments to your program to no-aslr. For example

./no-aslr /bin/ls -l

You can also choose not to provide the full path. This program will use the suitable functions to search your PATH for the executable. So the previous example can be rewritten as

./no-aslr ls -l

Support

This program supports Linux and macOS.

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License (a copy of which is present in this repository), or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

no-aslr's People

Contributors

kccqzy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.