【Asp】Asp读取Base64编码的xml格式图片

  • A+
所属分类:lcx

保存图片数据的Test.xml



R0lGODlhIwAqAOYAAOfq9ImGtLd0iaaix8bE2gCL2v/3AO+WDe6amWpjmQWR2rq30gCb5ud7eZVO
b//oANjSDOInMv/7++qGgxQpi8kzQ/KlC/fDB5ycwlhHTv3m5ZWUvNx0dltYmFdJmkg2Vy4ZaxcN
blRuo6CMKsG+1zl6tdHS43tZgdjO3VxIjbk7UPT0+K5BWmxro/GNiPmcleyioZyV0+dzb5N7MRKM
0gCh7H53q+eBfmRPkVponQV3yP7aAeHdBfCpqAlqundoOdnY5yqFyElEi/a7udvb6bKxzvnJx083
ghsfeaNGYe7u9eHe6uXl783M4DsnXPS2CAtDmg06neniBbmmv+Ftbf3z8/Skn7WrywWDzwxTpxuJ
zqOYvvva2el1EdCquNPb7pWAqNzk8To4gzUwd5ejzI+Lt09MkI+WwXl/tGZwrHhso2pXlrG62OrE
yMCyHaury/XNB4OCsqicwd6do/P//+98ds+Bi1JRlNzDzM3W6bvF4eStsv6zrACV4ACT3f///yH5
BAAAAAAALAAAAAAjACoAAAf/gFQIg4SFhoeIhjIyf42Oj5CRkpA3MhKOJAMDMZydnp+emiSPE5aO
OCEhHxmsrayrH7GyTiCpKaSmjSkhIxBSv1I8wsMQPBDHyD8hHo+Vl40eGQbTD9XU19PZ01JOt47O
jh4/OxZPBxboFxYH6uzrT+gWOxnM37l/4gdd++vlBwfmzv1b9w8OvWd/wEH7cUEguicNLcA5p85C
xQNwPtRrpBDfj2w7Qj4wsGNkSQPWHuyAI0Ujwo7iDEAYMaOmzZszRujsNc3Jxj+lEIpz4yQEhaNI
kyodMwMCiBRMTJgA0kAGgSIEmHj44CSKjgJgw4od6yPKBxBCNthIEIeDjAEt/zoE2BWFgd27ePPe
7RMlRIoyCcy8KbVBiJA4KZBgYeCnsYIEJyJLPpGARmM/DLAgSVEEwwYSbhdsiPMGBwUFfRr3UVAh
QhIVFRy0rkAjtWMKKVYQaMLErZIVwE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Dim xml : Set xml=Server.CreateObject("MSXML2.DOMDocument")
Dim stm : Set stm=Server.CreateObject("ADODB.Stream")
xml.resolveExternals=False
xml.load Server.MapPath("test.xml")
xml.documentElement.setAttribute "xmlns:dt","urn:schemas-microsoft-com:datatypes"
xml.documentElement.dataType = "bin.base64"
stm.Type=1 'adTypeBinary
stm.Open
stm.Write xml.documentElement.nodeTypedValue
stm.SaveToFile Server.MapPath("1.gif")
stm.Close
Set xml=Nothing
Set stm=Nothing
%>

调用1.gif,Test.asp:

Dim xml : Set xml=Server.CreateObject("MSXML2.DOMDocument")
Dim stm : Set stm=Server.CreateObject("ADODB.Stream")
xml.resolveExternals=False
xml.load Server.MapPath("test.xml")
xml.documentElement.setAttribute "xmlns:dt","urn:schemas-microsoft-com:datatypes"
xml.documentElement.dataType = "bin.base64"
stm.Type=1 'adTypeBinary
stm.Open
stm.Write xml.documentElement.nodeTypedValue
'stm.SaveToFile Server.MapPath("1.gif")
Response.ContentType="images/gif"
stm.Position=0
Response.BinaryWrite stm.Read()
stm.Close
Set xml=Nothing
Set stm=Nothing
%>

文章来源于lcx.cc:【Asp】Asp读取Base64编码的xml格式图片

相关推荐: PHP 5.x - Bypass Disable Functions (via Shellshock)

# Exploit Title: PHP 5.x Shellshock Exploit (bypass disable_functions) # Google Dork: none # Date: 10/31/2014 # Exploit Author: Ry…

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: