Add 2 Modules and defautl path

This commit is contained in:
Maxime DE CAUMIA BAILLENX
2023-06-13 15:15:15 +02:00
parent 32956dc354
commit 0c72e5a5d1
12 changed files with 442 additions and 1 deletions
+11
View File
@@ -7,6 +7,8 @@
using namespace std;
const std::string moduleName = "chisel";
const std::string ToolsDirectoryFromTeamServer = "../Tools/";
#define BUFSIZE 512
@@ -117,6 +119,15 @@ int Chisel::init(std::vector<std::string> &splitedCmd, C2Message &c2Message)
std::ifstream myfile;
myfile.open(inputFile);
if(!myfile)
{
std::string newInputFile=ToolsDirectoryFromTeamServer;
newInputFile+=inputFile;
myfile.open(newInputFile, std::ios::binary);
inputFile=newInputFile;
}
if(!myfile)
{
std::string msg = "Couldn't open file.\n";