aboutsummaryrefslogtreecommitdiff
path: root/client/src
diff options
context:
space:
mode:
authorauth <[email protected]>2020-07-18 03:14:23 +0200
committerauth <[email protected]>2020-07-18 03:14:23 +0200
commit0a11963b4a510f212645c68fb92dd114ec2ce427 (patch)
tree9dc7c12f02e7096f7ea903882581b0bfd0b70373 /client/src
parentRefactoring. (diff)
downloadloader-0a11963b4a510f212645c68fb92dd114ec2ce427.tar.xz
loader-0a11963b4a510f212645c68fb92dd114ec2ce427.zip
More placeholders and general plan.
Diffstat (limited to 'client/src')
-rw-r--r--client/src/client/client.h2
-rw-r--r--client/src/client/packet.h5
-rw-r--r--client/src/injection/mapper.h3
-rw-r--r--client/src/main.cpp10
4 files changed, 12 insertions, 8 deletions
diff --git a/client/src/client/client.h b/client/src/client/client.h
index 4239651..bdd7cf5 100644
--- a/client/src/client/client.h
+++ b/client/src/client/client.h
@@ -1,6 +1,7 @@
#pragma once
#include "../util/io.h"
#include "../util/events.h"
+#include "../injection/mapper.h"
#include "packet.h"
namespace tcp {
@@ -32,6 +33,7 @@ class client {
public:
int state;
+ mmap::data mapper_data;
std::string session_id;
event<packet_t&> receive_event;
diff --git a/client/src/client/packet.h b/client/src/client/packet.h
index e197bf0..fccd1a5 100644
--- a/client/src/client/packet.h
+++ b/client/src/client/packet.h
@@ -18,10 +18,7 @@ enum packet_id {
process_list,
ban,
game_select,
- image_req,
- image_resp,
- import_req,
- import_resp
+ image
};
struct packet_t {
diff --git a/client/src/injection/mapper.h b/client/src/injection/mapper.h
index ef06a9b..27541c4 100644
--- a/client/src/injection/mapper.h
+++ b/client/src/injection/mapper.h
@@ -2,9 +2,10 @@
namespace mmap {
- struct header {
+ struct data {
size_t image_size;
uint32_t entry;
uint32_t base;
+ std::string imports;
};
}; \ No newline at end of file
diff --git a/client/src/main.cpp b/client/src/main.cpp
index aac1c4f..4413a44 100644
--- a/client/src/main.cpp
+++ b/client/src/main.cpp
@@ -2,7 +2,6 @@
#include "util/io.h"
#include "client/client.h"
#include "shellcode/shellcode.h"
-#include "injection/mapper.h"
int main(int argc, char* argv[]) {
io::init();
@@ -75,12 +74,17 @@ int main(int argc, char* argv[]) {
if (res == tcp::login_result::login_success) {
client.state = tcp::client_state::logged_in;
-
-
io::logger->info("logged in.");
}
}
+ if (id == tcp::packet_id::game_select) {
+ /*auto pe = nlohmann::json::parse(message);
+
+
+ client.read_stream(client.mapper_data.imports);*/
+ }
+
if (id == tcp::packet_id::ban) {
io::logger->error(
"your computer is blacklisted, please contact a developer.");