GIAC Certified Incident Handler (GCIH) — Question 105
Which of the following describes code wrapping?
Answer options
- A. Using API hooks to inject code into a running Windows process
- B. Executing a Ruby script as a variable within a C program
- C. Tunneling encoded commands inside DNS query packets
- D. Packing an executable into a new compressed file
Correct answer: B
Explanation
Code wrapping refers to the technique of executing a Ruby script as a variable in a C program, which allows for better integration of the two languages. The other options describe different processes that do not accurately represent code wrapping; for instance, API hooks and DNS tunneling are related to injection and data transfer, while packing an executable is about compression, not execution.