mirror of
https://github.com/Orange-Cyberdefense/p3-loader
synced 2026-07-08 17:02:48 +00:00
21 lines
540 B
C++
21 lines
540 B
C++
/*
|
|
* File: ShellCodeUserInput.h
|
|
* Authors: Max Hirschberger & Ogulcan Ugur
|
|
*/
|
|
|
|
#ifndef SHELLCODE_USERINPUT_H
|
|
#define SHELLCODE_USERINPUT_H
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
class ShellCodeUserInput {
|
|
public:
|
|
static std::vector<uint8_t> GetConsoleInput();
|
|
static std::vector<uint8_t> GetURLInput();
|
|
private:
|
|
ShellCodeUserInput();
|
|
static bool ParseUserShellCode(const std::string& user_shellcode, std::vector<uint8_t>& res, bool& requires_wrap);
|
|
static bool ParseNibble(char c, uint8_t& nibble);
|
|
};
|
|
|
|
#endif // SHELLCODE_USERINPUT_H
|