Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
Signed-off-by: cod <cod@hackingteam.com>
  • Loading branch information
cod committed Mar 18, 2013
1 parent 691dcaf commit dab327a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Binary file modified core-packer.suo
Binary file not shown.
6 changes: 6 additions & 0 deletions core-packer/main32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ CPeAssembly *load_random(char *param)
}
}

std::cout << "[CONFIG] random file section: " << randfile << std::endl;
return obj;
}

Expand Down Expand Up @@ -576,6 +577,7 @@ int main32(int argc, char *argv[])
pImportDescriptor++;
}


for(int i = 0; i < pInfectMe->NumberOfSections(); i++)
{ // each section must be packed
if (pInfectMe->IsDLL())
Expand Down Expand Up @@ -705,6 +707,10 @@ int main32(int argc, char *argv[])
else
basesize = rand() % maxoffset; // offset

std::cout << "[CONFIG] Section Name: " << szSectionName << std::endl;
std::cout << "[CONFIG] base: " << std::hex << basesize << std::endl;
std::cout << "[CONFIG] size: " << std::hex << pInfectSection->VirtualSize() << std::endl;

LPVOID lpRawDestin = CALC_OFFSET(LPVOID, pInfectSection->RawData(), basesize); // an offset inside acceptable range


Expand Down

0 comments on commit dab327a

Please sign in to comment.