MCPcopy Create free account
hub / github.com/Adaptix-Framework/AdaptixC2 / decode_data

Method decode_data

AdaptixClient/Source/Client/AxScript/BridgeApp.cpp:731–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729}
730
731QString BridgeApp::decode_data(const QString &algorithm, const QString &data, const QString &key) const
732{
733 QString alg = algorithm.toLower();
734
735 if (alg == "hex")
736 return QString::fromUtf8(QByteArray::fromHex(data.toLatin1()));
737 if (alg == "base64")
738 return QString::fromUtf8(QByteArray::fromBase64(data.toLatin1()));
739 if (alg == "base32")
740 return QString::fromUtf8(decodeBase32(data.toLatin1()));
741 if (alg == "zip")
742 return QString::fromUtf8(qUncompress(QByteArray::fromBase64(data.toLatin1())));
743 if (alg == "xor")
744 return QString::fromUtf8(applyXor(QByteArray::fromBase64(data.toLatin1()), key.toUtf8()));
745
746 return data;
747}
748
749QString BridgeApp::encode_file(const QString &algorithm, const QString &path, const QString &key) const
750{

Callers

nothing calls this directly

Calls 2

decodeBase32Function · 0.85
applyXorFunction · 0.85

Tested by

no test coverage detected