Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. A help with Hooking some APIs and also Boot Sector Reading..

A help with Hooking some APIs and also Boot Sector Reading..

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorial
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Radwan Aladdin
    wrote on last edited by
    #1

    Hi all! I'm trying to find some good exmples for C++ or VB to hook some APIs (To intercept File Execution) and also examples about : How to read a Boot Sector and Master Boot Records (MBR)... I'm making an Anti-Virus technology and these points are needed.. I appreciate your help! Thanks for your time guys..

    N A 2 Replies Last reply
    0
    • R Radwan Aladdin

      Hi all! I'm trying to find some good exmples for C++ or VB to hook some APIs (To intercept File Execution) and also examples about : How to read a Boot Sector and Master Boot Records (MBR)... I'm making an Anti-Virus technology and these points are needed.. I appreciate your help! Thanks for your time guys..

      N Offline
      N Offline
      Nirav Doshi
      wrote on last edited by
      #2

      Radwan Aladdin wrote: How to read a Boot Sector and Master Boot Records (MBR)... Use CreateFile() - Read up the "Disk Devices" section of the CreateFile() API in MSDN. Use this with caution. * Artificial intelligence is no match for natural stupidity! *

      R 1 Reply Last reply
      0
      • N Nirav Doshi

        Radwan Aladdin wrote: How to read a Boot Sector and Master Boot Records (MBR)... Use CreateFile() - Read up the "Disk Devices" section of the CreateFile() API in MSDN. Use this with caution. * Artificial intelligence is no match for natural stupidity! *

        R Offline
        R Offline
        Radwan Aladdin
        wrote on last edited by
        #3

        Any links on the net please? What can I do with this?? I mean can I then read the Boot Master Records?? I think the CreateFile() API used for the Execution Intercepting..

        N 1 Reply Last reply
        0
        • R Radwan Aladdin

          Any links on the net please? What can I do with this?? I mean can I then read the Boot Master Records?? I think the CreateFile() API used for the Execution Intercepting..

          N Offline
          N Offline
          Nirav Doshi
          wrote on last edited by
          #4

          Radwan Aladdin wrote: Any links on the net please? You can google for CreateFile(), or even search MSDN Online[^] for the same. Radwan Aladdin wrote: What can I do with this?? I mean can I then read the Boot Master Records?? YES! That (I suppose) is the ONLY possible method. * Artificial intelligence is no match for natural stupidity! *

          N R 2 Replies Last reply
          0
          • N Nirav Doshi

            Radwan Aladdin wrote: Any links on the net please? You can google for CreateFile(), or even search MSDN Online[^] for the same. Radwan Aladdin wrote: What can I do with this?? I mean can I then read the Boot Master Records?? YES! That (I suppose) is the ONLY possible method. * Artificial intelligence is no match for natural stupidity! *

            N Offline
            N Offline
            Nirav Doshi
            wrote on last edited by
            #5

            http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/createfile.asp[^] * Artificial intelligence is no match for natural stupidity! *

            1 Reply Last reply
            0
            • N Nirav Doshi

              Radwan Aladdin wrote: Any links on the net please? You can google for CreateFile(), or even search MSDN Online[^] for the same. Radwan Aladdin wrote: What can I do with this?? I mean can I then read the Boot Master Records?? YES! That (I suppose) is the ONLY possible method. * Artificial intelligence is no match for natural stupidity! *

              R Offline
              R Offline
              Radwan Aladdin
              wrote on last edited by
              #6

              Okay.. what about the Execution Intercepting?? I think there are many APIs to hook.. what are all of these APIs? What are the relatives for Windows 95, 98, ME?? and what about XP, 2000? And also LongHorn and Servers 2003?? Do you have any idea about making CPU Emulator using C++ to emulate a code in a Virtual environment??? Thanks for your great help!!

              1 Reply Last reply
              0
              • R Radwan Aladdin

                Hi all! I'm trying to find some good exmples for C++ or VB to hook some APIs (To intercept File Execution) and also examples about : How to read a Boot Sector and Master Boot Records (MBR)... I'm making an Anti-Virus technology and these points are needed.. I appreciate your help! Thanks for your time guys..

                A Offline
                A Offline
                Alexander M
                wrote on last edited by
                #7

                How noobish lol!!! VB for file management hooking LOOOL :laugh: .... An Antivirus is NEVER secure if it uses usermode for hooking or processing things. And if you think that you are able to code "Anti-Virus technology", then you will have to find your way. Don't try it, just do it! ;-)

                R 1 Reply Last reply
                0
                • A Alexander M

                  How noobish lol!!! VB for file management hooking LOOOL :laugh: .... An Antivirus is NEVER secure if it uses usermode for hooking or processing things. And if you think that you are able to code "Anti-Virus technology", then you will have to find your way. Don't try it, just do it! ;-)

                  R Offline
                  R Offline
                  Radwan Aladdin
                  wrote on last edited by
                  #8

                  Okay.. I'm trying to make that with C++.. and there is no other way than Hooking these APIs I think?? Can you please help me hooking the APIs?? Where to find good tutorials?? Thanks for all!

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups