Giter VIP home page Giter VIP logo

themebleedreverseshelldll's People

Contributors

jnnshschl avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

dannymas ongyuann

themebleedreverseshelldll's Issues

Cross compile?

It seems the goal for this repo, and its accompanying repo (https://github.com/Jnnshschl/CVE-2023-38146), is to make the ThemeBleed exploit accessible to Linux environments. I'm having a total doozy of a time getting the DLL to compile. I've tried many variations on the cross-compilation theme. For example, here's my command and the typical error I'm getting. Could you please recommend a functional way to compile the DLL?

I'm using PwnBox on the HackTheBox platform for reference.

└──╼ [★]$ x86_64-w64-mingw32-g++ -shared -o ThemeBleedReverseShell.dll main.cpp fnv1a.hpp main.hpp rtfn.hpp
In file included from main.cpp:1:
main.hpp:5:10: fatal error: WinBase.h: No such file or directory
    5 | #include <WinBase.h>
      |          ^~~~~~~~~~~
compilation terminated.
fnv1a.hpp:1:9: warning: #pragma once in main file
    1 | #pragma once
      |         ^~~~
fnv1a.hpp:14:5: error: ‘__forceinline’ does not name a type
   14 |     __forceinline constexpr fnvhash Hash(T c) noexcept
      |     ^~~~~~~~~~~~~
fnv1a.hpp:22:5: error: ‘__forceinline’ does not name a type
   22 |     __forceinline constexpr fnvhash HashFixed(T c, size_t s) noexcept
      |     ^~~~~~~~~~~~~
fnv1a.hpp:29:31: error: ‘size_t’ has not been declared
   29 |     template <typename CharT, size_t N>
      |                               ^~~~~~
fnv1a.hpp:33:47: error: ‘N’ was not declared in this scope
   33 |         constexpr FnvString(const CharT(&foo)[N + 1]) noexcept
      |                                               ^
fnv1a.hpp:38:31: error: ‘size_t’ has not been declared
   38 |     template <typename CharT, size_t N>
      |                               ^~~~~~
fnv1a.hpp:39:33: error: ‘N’ was not declared in this scope
   39 |     FnvString(const CharT(&str)[N]) -> FnvString<CharT, N - 1>;
      |                                 ^
fnv1a.hpp:39:57: error: ‘N’ was not declared in this scope
   39 |     FnvString(const CharT(&str)[N]) -> FnvString<CharT, N - 1>;
      |                                                         ^
fnv1a.hpp:39:62: error: template argument 2 is invalid
   39 |     FnvString(const CharT(&str)[N]) -> FnvString<CharT, N - 1>;
      |                                                              ^
fnv1a.hpp:39:63: error: expected constructor, destructor, or type conversion before ‘;’ token
   39 |     FnvString(const CharT(&str)[N]) -> FnvString<CharT, N - 1>;
      |                                                               ^
fnv1a.hpp:41:15: error: ‘FnvString’ is not a type
   41 |     template <FnvString s>
      |               ^~~~~~~~~
fnv1a.hpp:42:43: error: ‘s’ was not declared in this scope
   42 |     struct FnvHash { enum : fnvhash { v = s.v }; };
      |                                           ^
fnv1a.hpp:46:5: error: ‘__forceinline’ does not name a type
   46 |     __forceinline constexpr auto ToLower(CharT c) noexcept
      |     ^~~~~~~~~~~~~
fnv1a.hpp:52:5: error: ‘__forceinline’ does not name a type
   52 |     __forceinline constexpr fnvhash IHash(T c) noexcept
      |     ^~~~~~~~~~~~~
fnv1a.hpp:60:5: error: ‘__forceinline’ does not name a type
   60 |     __forceinline constexpr fnvhash IHashFixed(T c, size_t s) noexcept
      |     ^~~~~~~~~~~~~
fnv1a.hpp:67:31: error: ‘size_t’ has not been declared
   67 |     template <typename CharT, size_t N>
      |                               ^~~~~~
fnv1a.hpp:71:48: error: ‘N’ was not declared in this scope
   71 |         constexpr IFnvString(const CharT(&foo)[N + 1]) noexcept
      |                                                ^
fnv1a.hpp:76:31: error: ‘size_t’ has not been declared
   76 |     template <typename CharT, size_t N>
      |                               ^~~~~~
fnv1a.hpp:77:34: error: ‘N’ was not declared in this scope
   77 |     IFnvString(const CharT(&str)[N]) -> IFnvString<CharT, N - 1>;
      |                                  ^
fnv1a.hpp:77:59: error: ‘N’ was not declared in this scope
   77 |     IFnvString(const CharT(&str)[N]) -> IFnvString<CharT, N - 1>;
      |                                                           ^
fnv1a.hpp:77:64: error: template argument 2 is invalid
   77 |     IFnvString(const CharT(&str)[N]) -> IFnvString<CharT, N - 1>;
      |                                                                ^
fnv1a.hpp:77:65: error: expected constructor, destructor, or type conversion before ‘;’ token
   77 |     IFnvString(const CharT(&str)[N]) -> IFnvString<CharT, N - 1>;
      |                                                                 ^
fnv1a.hpp:79:15: error: ‘IFnvString’ is not a type
   79 |     template <IFnvString s>
      |               ^~~~~~~~~~
fnv1a.hpp:80:44: error: ‘s’ was not declared in this scope
   80 |     struct IFnvHash { enum : fnvhash { v = s.v }; };
      |                                            ^
main.hpp:1:9: warning: #pragma once in main file
    1 | #pragma once
      |         ^~~~
main.hpp:5:10: fatal error: WinBase.h: No such file or directory
    5 | #include <WinBase.h>
      |          ^~~~~~~~~~~
compilation terminated.
rtfn.hpp:1:9: warning: #pragma once in main file
    1 | #pragma once
      |         ^~~~
In file included from rtfn.hpp:88:
FNV1A.hpp:39:63: error: expected constructor, destructor, or type conversion before ‘;’ token
   39 |     FnvString(const CharT(&str)[N]) -> FnvString<CharT, N - 1>;
      |                                                               ^
FNV1A.hpp:41:15: error: ‘FnvString’ is not a type
   41 |     template <FnvString s>
      |               ^~~~~~~~~
FNV1A.hpp:42:43: error: ‘s’ was not declared in this scope
   42 |     struct FnvHash { enum : fnvhash { v = s.v }; };
      |                                           ^
FNV1A.hpp:77:65: error: expected constructor, destructor, or type conversion before ‘;’ token
   77 |     IFnvString(const CharT(&str)[N]) -> IFnvString<CharT, N - 1>;
      |                                                                 ^
FNV1A.hpp:79:15: error: ‘IFnvString’ is not a type
   79 |     template <IFnvString s>
      |               ^~~~~~~~~~
FNV1A.hpp:80:44: error: ‘s’ was not declared in this scope
   80 |     struct IFnvHash { enum : fnvhash { v = s.v }; };
      |                                            ^

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.