jnnshschl / themebleedreverseshelldll Goto Github PK
View Code? Open in Web Editor NEWReverse shell i used in combination with the ThemeBleed exploit.
Reverse shell i used in combination with the ThemeBleed exploit.
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 }; };
| ^
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.