Results 1 to 5 of 5

Thread: Dll injection (ถามรอบสอง)

  1. #1
    Senior Member
    Join Date
    Jan 2008
    Location
    Some where on the earth.
    Posts
    106


    ต่อเนื่องมาจากกระัทู้ภาคที่แล้ว ตอนนี้กำลังอ่านเรื่อง hook process อยู่ และก็ได้ลองเอา code ของ Robert Kuster มาอ่านๆดังนี้

    Download File แนบ

    [code]
    /***************************************************************
    Module name: HookInjEx.cpp
    Copyright (c) 2003 Robert Kuster

    Notice:
    <div align="center">"Hacking isn’t about helping the security industry, which leeches from Hackers."</div>

    <div align="center">http://img397.imageshack.us/img397/159/cwhbannerzl0.gif</div>

  2. #2
    Senior Member
    Join Date
    Jan 2008
    Location
    Some where on the earth.
    Posts
    106


    ขออนุญาตดันกระทู้นะครับ (-"- โดน reply บ้าบอ ดันตกอีก แล้ว เบื่อจริงๆ)
    <div align="center">"Hacking isn’t about helping the security industry, which leeches from Hackers."</div>

    <div align="center">http://img397.imageshack.us/img397/159/cwhbannerzl0.gif</div>

  3. #3
    Jedi Global Moderator Gen0TypE's Avatar
    Join Date
    Jan 2008
    Location
    Khonkaen
    Posts
    312


    ผมเสนอความคิดละกันนะ ไม่รู้ว่าถูกรึเปล่า ถือว่าเสนอให้ประกอบการพิจารณาละกัน

    1. จากที่ผมลองดู code แล้ว ในส่วนต่อไปนี้
    [code]

  4. #4
    Senior Member
    Join Date
    Jan 2008
    Location
    Some where on the earth.
    Posts
    106


    จะเห็นว่า
    - ถ้าทำการ unhook สำเร็จ จะทำการ free dll ด้วยนะ
    - ถ้า unhook ไม่สำเร็จ จะไปเรียกที่ CallNextHookEx ซึ่งจะยังไม่มีการ free dll เพราะถ้า free dll ไป จะทำให้โปรแกรม crash ได้

    2. ในส่วนของการทำงานทั้ง "::SendMessage" กับ "SendMessage" เหมือนกันครับ ต่างกันแค่ว่า
    การใช้ :: นำหน้า คือการอ้างอิง function จาก class ที่เป็น global (อ้างอิง function จากไฟล์ที่เรา include เ้ข้ามานั่นแหละ)
    ซึ่งถ้าไม่ใช้ก็ไม่มีปัญหาอะไร เพราะในตอน compile ตัว compiler ก็จะหา function นั้นๆ ให้จากไฟล์ที่ include มาอยู่ดีครับ
    [/b]
    ช่าย ถ้ามันทำการ unhook มันจะทำการ free dll
    แต่อยกาให้ดูตรงนี้นิดนึง

    [code]
    <div align="center">"Hacking isn’t about helping the security industry, which leeches from Hackers."</div>

    <div align="center">http://img397.imageshack.us/img397/159/cwhbannerzl0.gif</div>

  5. #5
    Jedi Global Moderator Gen0TypE's Avatar
    Join Date
    Jan 2008
    Location
    Khonkaen
    Posts
    312


    ประเด็นจะอยู่ที่ code ตรงนี้
    [code]
    OldProc = (WNDPROC)

Similar Threads

  1. More Advanced Sql Injection SiXSS, SiHRS and the Client Side SQL Injection
    By WC_{Sky} in forum Hacking, Exploit Articles/Tutorial/Techniques
    Replies: 0
    Last Post: 20-05-2009, 10:08 AM
  2. Server Side Includes Injection (SSI Injection)
    By Gen0TypE in forum Hacking, Exploit Articles/Tutorial/Techniques
    Replies: 0
    Last Post: 04-06-2008, 04:13 AM
  3. Smf 1.1.3 Sql Injection
    By conanjung in forum Security Tools
    Replies: 0
    Last Post: 18-01-2008, 01:45 PM
  4. SQL Injection
    By poringkun in forum PHP,ASP,Javascript, Html
    Replies: 2
    Last Post: 11-09-2007, 10:47 PM

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •