Skip to content

kernelmustard/detect-debugger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

detect-debugger

Using

Linux

Anti-Static

The point of this isn't "perfect" anti-static-analysis, but the following should be configured at build to make it nontrivial:

  1. CMake build target should be set to MinSizeRel, where it excludes debug info and optimizes for size
  2. add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND strip -R .comment ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}) in CMakeLists.txt to strip the .comment section after every build
  3. add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND echo 'Ag==' | base64 -d | dd conv=notrunc of=${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME} bs=1 seek=5) in CMakeLists.txt

Building

The easiest way to build is via VSCode CMake Extension on the target platform. Otherwise it may take some finnagling.

Manually

Linux

cd detect-debugger
mkdir build
cd build
cmake ..; make

Windows

# I am assuming default powershell with aliases
chdir detect-debugger
mkdir build
chdir build
cmake ..; msbuild build/somefile # need to build on windows to get the actual name

Reference

Windows

Linux

Will Not Do

Anti-VM Detection

  • Check out this great project by a0rtega called pafish for all your Anti-VM testing needs

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published