Code Monkey home page Code Monkey logo

replicaters's Introduction

replicaters

Have (good) replicating germs in shared memory.


The replicating germ assembly is compiled with nasm and linked with ld (-Ttext=0). The .text section is then stripped out with my binextract.py program and this 'shellcode' is then written to the vat memory space.

replicaters's People

Contributors

jon-stewart avatar

replicaters's Issues

ASM comments

This issue is being created as a reminder to myself.

Ensure that the ASM has plenty of comments. Always assume that there will be a several month break and that I will forget everything.

NASM x64 labels

It seems that label addressing is treated differently by the nasm x64 compiler. The assembly 'jmp label' when compiled to an .obj file will show 'jmp 6'. However if we use 'sub rax,label' we get 'sub rax,0x0'.

This is resolved by the linker, bit late for me though.

Problem here is that this prevents a number of position independent code tricks.

clone() with CLONE_VM

Seems to lead to alot of strange undefined behaviour. The child process must be writting over areas of the parent.

Will need to research this. Both fork and phthread make use of clone, though fork doesn't use the CLONE_VM flag. Pthreads do use the CLONE_VM flag, but they will allocate their necessary structures in safe location along with fact that locking is used to protect memory.

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.