-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: rename SetRequestFingerprintPacket into HttpConfigurationPacket…
…. HWID can now be set to a custom one, if left empty it will use the Systems' HWID. Fix TypeDefintion for RBX::Lua::WeakThreadRef::detail.
- Loading branch information
1 parent
889d75b
commit 88522d6
Showing
10 changed files
with
75 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// | ||
// Created by Dottik on 30/8/2024. | ||
// | ||
|
||
#pragma once | ||
#include <cstring> | ||
|
||
|
||
#include "PacketBase.hpp" | ||
|
||
struct HttpConfigurationPacket final : public PacketBase { | ||
std::string szNewFingerprint; | ||
std::string szNewHwid; | ||
|
||
HttpConfigurationPacket() { this->ulPacketId = RbxStu::WebSocketCommunication::HttpConfigurationPacket; } | ||
|
||
static nlohmann::json Serialize(const HttpConfigurationPacket &packet) { | ||
return { | ||
{"packet_id", packet.ulPacketId}, | ||
{"packet_flags", packet.ullPacketFlags}, | ||
{"new_http_fingerprint", packet.szNewFingerprint}, | ||
{"new_hwid", packet.szNewHwid}, | ||
}; | ||
} | ||
|
||
|
||
static HttpConfigurationPacket Deserialize(nlohmann::json json) { | ||
auto result = HttpConfigurationPacket{}; | ||
|
||
json.at("packet_id").get_to(result.ulPacketId); | ||
json.at("packet_flags").get_to(result.ullPacketFlags); | ||
json.at("new_http_fingerprint").get_to(result.szNewFingerprint); | ||
if (json.contains("new_hwid")) | ||
json.at("new_hwid").get_to(result.szNewHwid); | ||
return result; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters