Git Product home page Git Product logo

noteme's Introduction

Noteme

Noteme is an ELF packer/crypter that aims to create hardened and stealthy troyans. The target can either be a shared object or an executable, but it's required to be x86_64 compatible. The payload can be a shellcode or a statically linked ELF binary.

Bear in mind that Noteme is still at a very early state of development.

PT_NOTE Infection

If the payload fits inside the PT_NOTE segment, replace the content. On the other hand, if the payload is bigger, append it as a new PT_LOAD segment and reference it from the PT_NOTE's program header entry. In either case, the same redirection technique will be applied: overwrite frame_dummy's references. If required, a stub will be injected (Text segment padding injection) too.

This kind of technique is ideal for long term persistence due to its stealthiness and simplicity.

Prerequisites

nasm (Netwide Assembler)
gcc & make

ELF Payloads

Right now, C and Go payloads have been successfully tested, with the only requirement being that the binary's base virtual address must be set to a high value (to avoid page conflict).

C payloads:

# regular gcc won't work
$ musl-gcc -static -Wl,--section-start=.init=0xA000000 -o mypayload mypayload.c 

Go payloads:

$ go tool compile -o mypayload.a -pack mypayload.go
$ go tool link -o mypayload -T 0xF000000000 mypayload.a 

Install

git clone https://github.com/0xN3utr0n/Noteme.git
cd Noteme
make 

Usage

Usage: noteme [-opt] 

Options ('<>' required fields):

     	-p '<filepath>' Payload (Statically linked ELF or Shellcode) binary
     	-t '<filepath>' Target ELF binary
     	-o '<filepath>' Output filename
     	-T Run the payload in a independent thread
     	-h This help

Important: The thread option is only recommended for ELF payloads.

TODO

  • ARM support
  • ELF payload support
  • Binary compression support
  • Binary encryption support
  • Anti-reverse engineering support

noteme's People

Contributors

0xn3utr0n 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.