Category : uac

in a VS C++ program we have to create and delete a windows share (dynamically). We use the NetShareAdd(…) and NetShareDel(…) functions to do so. Since we switched to Win10, I need to run this program in elevated admin level ("run as Administrator") or change the UAC Execution Level in Project/Properties/Linker/Manifest File. Else the functions ..

Read more

I am currently writing a testing/simulation software that shall imitate a certain behavior of a communication client using a proprietary TCP/IP protocol. To simulate a broken connection I want to just kick an open client socket out of the list. After some research I found that the SetTcpEntry method from the iphlpapi is a candidate ..

Read more

I want to retrieve all files/directorys path (nested) in the C:/ drive, at least if they are not currently used or where I have the permission to retrive. In order to do it recursively, I used recursive_directory_iterator from std::filesystem. I managed to avoid permission error thanks to std::filesystem::directory_options::skip_permission_denied However, when my program enter the C:/drivers, ..

Read more

With C++ when compiling your .exe file and you have to specify it to run as admin, is there any way to remove the shield icon? I’ve seen programs do it and i spent some time trying to find out how to do it aswell, but i have not found a clear answer. Any help ..

Read more

I’m trying to delete a font file using this way, std::filesystem::remove(std::filesystem::path("C:WindowsFontssegmdl2.ttf")); But this fails and throw an exception, filesystem:error cannot remove: Input/output error The exception is not helpful. What’s the correct way to delete this kind of files? Source: Windows Que..

Read more

For a UAC bypass project, it uses signatures to locate a specific function, but the problem is that these signatures must be hard coded and change between windows builds. Here is a new snippet of code that is meant to do the same function without the need for a signature. std::wcout << GetProcAddress(GetModuleHandle(L"SystemSettings.Handlers.dll"), "[email protected]@@@") << ..

Read more