mirror of https://github.com/infosecn1nja/C3.git
Remove empty string obfuscation
parent
3426f8da5b
commit
698b3d4ac7
|
@ -167,6 +167,6 @@ MWR::ServerSocket::ServerSocket(std::string_view addr, uint16_t port)
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
MWR::ServerSocket::ServerSocket(uint16_t port)
|
||||
: ServerSocket(OBF(""), port)
|
||||
: ServerSocket("", port)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -121,7 +121,7 @@ std::shared_ptr<MWR::C3::Relay> MWR::C3::Utils::CreateNodeRelayFromImagePatch(Lo
|
|||
std::string MWR::C3::Utils::ConvertLogMessageToConsoleText(std::string_view relayName, LogMessage const& message, std::string_view* sender)
|
||||
{
|
||||
// Format message as: "[relay]|@> [InterfaceID] message", where @ is different for each severity.
|
||||
std::string retVal = sender ? (std::string(relayName) + '|').c_str() : OBF("");
|
||||
std::string retVal = sender ? (std::string(relayName) + '|').c_str() : "";
|
||||
|
||||
switch (message.m_Severity)
|
||||
{
|
||||
|
@ -132,6 +132,6 @@ std::string MWR::C3::Utils::ConvertLogMessageToConsoleText(std::string_view rela
|
|||
default: retVal += OBF("???> ");
|
||||
}
|
||||
|
||||
retVal += sender && !sender->empty() ? '[' + std::string(*sender) + OBF("] ") : OBF("");
|
||||
retVal += sender && !sender->empty() ? '[' + std::string(*sender) + OBF("] ") : "";
|
||||
return retVal += message.m_Body;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ MWR::C3::Core::Distributor::Distributor(LoggerCallback callbackOnLog, Crypto::Pr
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
void MWR::C3::Core::Distributor::Log(LogMessage const& message, DeviceId sender) noexcept
|
||||
{
|
||||
m_CallbackOnLog(message, &std::string_view{ sender.IsNull() ? OBF("") : sender.ToString() });
|
||||
m_CallbackOnLog(message, &std::string_view{ sender.IsNull() ? "" : sender.ToString() });
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue