Results 1 to 3 of 3

Thread: How to translate shellcode

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


    ในการเขียน code เพื่อโจมตี exploit ต่างๆ จะเห็นว่ามีการใช้งาน shellcode กันอย่างแพร่หลาย ซึ่งถ้าเราไปหา exploit เหล่านั้นมาจากเว็บ เราจะไม่ทราบว่า shellcode ที่มีการใช้งานใน exploit นั้นๆ คือคำสั่งอะไร

    ยกตัวอย่างเช่น
    [code]char shellcode[] = "\x65\x63\x68\x6f\x20\x68\x61\x6b\x72\x3a\x3a\x30\x3a\x30\x3a\x3a\x2f\x3a\x2f\x62"

  2. #2
    Senior Member
    Join Date
    Oct 2006
    Location
    thailand
    Posts
    182


    เป็นวิธีที่เยียมครับ

    แต่ผมคิดว่ามันไม่สามารถใช้ได้กับทุก shellcode ครับ เพราะ shellcode ส่วนใหญ่ที่ใช้ใน exploit นั้นสร้างจากการทำ reverse engineer (code จาก assembly) ดังนั้นแปลมาแล้วก็ยังไม่สามารถอ่านได้ทั้งหมด เพราะบางอย่างเป็นการอ้างอิง address ในหน่วยความจำ จากตัวอย่างด้านล่างนี้เป็น shellcode จาก milw0rm ใช้ในการแสดง MessageBox ครับ ดูเต็มๆได้ที่นี้
    http://www.milw0rm.com/shellcode/1443


    [code]
    char shellcode[]=
    "\x31\xc0\x31\xdb\x31\xc9\x31\xd2\xeb\x37\x59\x88\x51\x0a\xbb"
    "\x77\x1d\x80\x7c"

  3. #3


    เป็นวิธีที่เยียมครับ biggrin.gif

    แต่ผมคิดว่ามันไม่สามารถใช้ได้กับทุก shellcode ครับ เพราะ shellcode ส่วนใหญ่ที่ใช้ใน exploit นั้นสร้างจากการทำ reverse engineer (code จาก assembly) ดังนั้นแปลมาแล้วก็ยังไม่สามารถอ่านได้ทั้งหมด เพราะบางอย่างเป็นการอ้างอิง address ในหน่วยความจำ จากตัวอย่างด้านล่างนี้เป็น shellcode จาก milw0rm ใช้ในการแสดง MessageBox ครับ ดูเต็มๆได้ที่นี้
    http://www.milw0rm.com/shellcode/1443
    [/b]
    ในเมื่อมันเป็น code assembly การที่เราจะทำการวิเคราะห์ shell code นั้นเราก็ควรแปลงมันกลับให้เป็น code assembly ครับ

    **Hidden Content: To see this hidden content your post count must be 10 or greater.**

Similar Threads

  1. w32 SEH omelet shellcode
    By WC_{Sky} in forum Hacking, Exploit Articles/Tutorial/Techniques
    Replies: 0
    Last Post: 21-04-2009, 11:03 AM
  2. ซับนรก จาก Google Translate
    By rev0lut1on in forum Relax Room
    Replies: 0
    Last Post: 06-03-2009, 06:58 PM
  3. 7 ภาษาใหม่ใน Google Translate
    By armmra in forum ข่าวสารด้าน IT ใหม่ๆ
    Replies: 4
    Last Post: 26-02-2009, 12:58 PM
  4. Version-Independent IOS Shellcode
    By newsbot in forum Exploits
    Replies: 0
    Last Post: 31-08-2008, 04:13 PM
  5. Writing Shellcode
    By snapter in forum Hacking, Exploit Articles/Tutorial/Techniques
    Replies: 0
    Last Post: 22-01-2008, 01:50 AM

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
  •