Menu

Need help integrating capstone in KMDF driver

5 days ago
2 days ago
  • Victor Mehta

    Victor Mehta - 5 days ago

    So I've successfully installed capstone since everything appears to be there including capstone.lib however I'm missing the msvc directory and the cs_driver.sln project does not load the other project capstone_static_winkernel project because it does not exist in the install directory.

    Any ideas on how to get this working ?

    TIA

     
  • Victor Mehta

    Victor Mehta - 4 days ago

    OK so I managed to get GitHub package installed that installs the capstone_static_winkernel project and creates the msvc directory. But now I'm getting compile errors when compiling the capstone_static_winkernel project.

    Error C4013 'snprintf' undefined; assuming extern returning int capstone_static_winkernel C:\Users\XXXXX\source\repos\capstone2\cs.c 904
    Error C4296 '<': expression is always false capstone_static_winkernel C:\Users\XXXXX\source\repos\capstone2\arch\ARM\ARMDisassembler.c 7008
    Error C4013 'snprintf' undefined; assuming extern returning int capstone_static_winkernel C:\Users\XXXXX\source\repos\capstone2\arch\M68K\M68KInstPrinter.c 89

     
  • Victor Mehta

    Victor Mehta - 2 days ago

    OK so I successfully compiled and built my KMDF driver using the capstone_static_winkernel project however the file size of the .sys file is too big. I need help reducing the size of the capstone_static_winkernel.lib file to something much smaller. I've tried the following preprocessor directives CAPSTONE_X86_REDUCE and CAPSTONE_DIET implemented in the capstone_static_winkernel project. But the size of this lib file does not reduce. Please help. TIA.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.