Be bypass
This commit is contained in:
@@ -80,12 +80,6 @@ struct DataToWrite
|
||||
|
||||
int main(const int argc, char** argv)
|
||||
{
|
||||
device_handle = intel_driver::Load();
|
||||
|
||||
|
||||
intel_driver::Unload(device_handle);
|
||||
return 0;
|
||||
|
||||
if (argc < 4)
|
||||
{
|
||||
cout << "[-]Invalid Command" << endl;
|
||||
@@ -97,7 +91,7 @@ int main(const int argc, char** argv)
|
||||
const char* TargetDllName = argv[2];
|
||||
const char* TargetProcName = argv[3];
|
||||
|
||||
char ShellContainerDllName[] = "ShellContainer.dll";
|
||||
char ShellContainerDllName[] = "mscorlib.ni.dll";
|
||||
|
||||
cout << "[+]Preparing Injection" << endl;
|
||||
|
||||
@@ -195,15 +189,15 @@ int main(const int argc, char** argv)
|
||||
|
||||
//Initialize physical memory
|
||||
|
||||
//device_handle = intel_driver::Load();
|
||||
device_handle = intel_driver::Load();
|
||||
|
||||
//if (!device_handle)
|
||||
// throw exception("[-]Couldn't load driver");
|
||||
if (!device_handle)
|
||||
throw exception("[-]Couldn't load driver");
|
||||
|
||||
//if (!intel_driver::WriteToReadOnlyMemory(device_handle, (uint64_t)RWX_Secion_Address, &DATA, sizeof(DATA)))
|
||||
// throw exception("[-]Cloudn't write memroy");
|
||||
if (!intel_driver::WriteToReadOnlyMemory(device_handle, (uint64_t)RWX_Secion_Address, &DATA, sizeof(DATA)))
|
||||
throw exception("[-]Cloudn't write memroy");
|
||||
|
||||
//intel_driver::Unload(device_handle);
|
||||
intel_driver::Unload(device_handle);
|
||||
|
||||
VirtualUnlock(RWX_Secion_Address, sizeof(DATA));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user