Giter Club home page Giter Club logo

Comments (1)

rkervella avatar rkervella commented on June 11, 2024

is there a way to load .o extensions directly using coff-loader, or if I need to import the extension using extensions.json, how can I do it?

Yes, but it's tedious. coff-loader being an extension itself, it expects arguments being passed in a certain way. The arguments are packed using the same argument parser than the BOFs use (see here). These arguments are (in order):

  • the name of the export to call in the COFF file
  • the COFF file data itself
  • the packed arguments for the BOF

As I said, this is tedious, hence why the sliver-client does that for you when you register a new extension. The coff-loader command in the client was never intended to be used directly, and afaik, there's no way to make it work properly due to how you need to pass arguments to it (I'll probably mask it in v1.6).

Now, what you want to do is to add your custom extension. To do so, you can either use extension load and extension install, or just drop your extension files in a new folder in ~/.sliver-client/extensions/YOUR_EXTENSION_NAME. Be mindful that the YOUR_EXTENSION_NAME needs to match the command name in the manifest file (extension.json). So in your case, it should be named etw-test.

from sliver.

Related Issues (20)

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.