Code Monkey home page Code Monkey logo

dart-shellcode's People

Contributors

kensh1ro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

5l1v3r1 gmh5225

dart-shellcode's Issues

Error on compile

I'm trying to compile this with dart compile exe code2.dart and got the following error.

code2.dart:40:32: Error: Can't create typedef from non-function type.
typedef LPTHREAD_START_ROUTINE = Pointer<NativeFunction<PTHREAD_START_ROUTINE>>;
                               ^
code2.dart:44:3: Error: Fields can't be declared to be 'external'.
Try removing the keyword 'external', or replacing the field by an external getter and/or setter.
  external int nLength;
  ^^^^^^^^
code2.dart:45:3: Error: Fields can't be declared to be 'external'.
Try removing the keyword 'external', or replacing the field by an external getter and/or setter.
  external Pointer lpSecurityDescriptor;
  ^^^^^^^^
code2.dart:47:3: Error: Fields can't be declared to be 'external'.
Try removing the keyword 'external', or replacing the field by an external getter and/or setter.
  external int bInheritHandle;
  ^^^^^^^^
code2.dart:77:35: Error: Expected type 'NativeFunction<IntPtr Function(Pointer<SECURITY_ATTRIBUTES>, IntPtr, invalid-type, Pointer<NativeType>, Uint32, Pointer<Uint32>)>' to be a valid and instantiated subtype of 'NativeType'.
 - 'NativeFunction' is from 'dart:ffi'.
 - 'IntPtr' is from 'dart:ffi'.
 - 'Pointer' is from 'dart:ffi'.
 - 'SECURITY_ATTRIBUTES' is from 'code2.dart'.
 - 'NativeType' is from 'dart:ffi'.
 - 'Uint32' is from 'dart:ffi'.
  final _CreateThread = _kernel32.lookupFunction<

I'm using Dart SDK v2.13.0 and ffi v1.2.1

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.