We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The first wealth is health.
SQL
HTTP
VPN
test/test
PHP
intval
unset
common.inc.php
xml
xml.dom
from xml.dom import minidom
minidom.parse(filename)
XML
dom = minidom.parse(filename)
dom.documentElement
root = doc.documentElement
nodes = root.getElementsByTagName(TagName)
node.getAttribute(AttributeName)
node.childNodes
node.childNodes[index].nodeValue
node.firstChild
pagexml.childNodes[0]
doc = minidom.parse(filename)
doc.toxml('UTF-8')
Node
Node.attrubutes["id"]
a.name
id
a.value
encoding
UTF-8
DOM
Document Object Model
minidom
dom
root = dom.documentElement
nodeName
nodeValue
nodeType
root.nodeName
root.getElementsByTagName(TagName)
childNodes
xml.dom.minidom
getElementsByTagName()
common
The text was updated successfully, but these errors were encountered:
No branches or pull requests
0x01 Wooyun
SQL
注入HTTP
头注入VPN
弱口令test/test
0x02 Seebug
PHP
代码审计 --intval
和unset
common.inc.php
中被intval
,但是在具体的页面内,被重新定义了,而没有intval
,直接就被带入到SQL
语句中参与查询,导致SQL
注入的发生unset
导致可以替换任意为空,被带入到SQL
中,导致注入的产生0x03 Awvs自动化扫描
xml
文件解析利用xml.dom
模块from xml.dom import minidom
minidom.parse(filename)
加载读取XML
文件dom = minidom.parse(filename)
dom.documentElement
获取XML
文档对象root = doc.documentElement
nodes = root.getElementsByTagName(TagName)
获取XML
节点对象集合node.getAttribute(AttributeName)
获取XML
节点属性值node.childNodes
返回子节点列表node.childNodes[index].nodeValue
获取XML
节点值node.firstChild
访问第一个节点,等价于pagexml.childNodes[0]
doc = minidom.parse(filename)
doc.toxml('UTF-8')
返回Node
节点的XML
表示的文本Node.attrubutes["id"]
a.name
就是上面的id
a.value
属性的值,访问元素属性XML
文档编码: 如果不写明encoding
的话,都是认为文件是UTF-8
编码DOM
是Document Object Model
的简称,以对象树来表示一个XML
文档的方法,使用它的好处就是可以非常灵活的在对象中进行遍历XML
文档就是由元素组成的,但元素和元素之间可以有文本,在minidom
中有许多的节点,元素也属于节点的一种,不是叶子节点,即它存在子节点,还存在一些叶子节点,如文本节点,它下面不再有子节点dom = minidom.parse(filename)
得到dom
对象root = dom.documentElement
得到文档元素对象nodeName
nodeValue
nodeType
root.nodeName
获得根节点名字nodeValue
是节点的值,只对文本节点有效nodeType
是节点的类型root.getElementsByTagName(TagName)
方法,返回一个列表childNodes
属性minidom
来读取XML
中的信息xml.dom.minidom
模块,生成dom
对象getElementsByTagName()
方法和childNodes
属性(还有其他一些方法和属性)找到要处理的元素0x04 一天总结
common
中被intval
,结果却在用到时被重定义导致没有intval
,结果被带入SQL
中xml.dom.minidom
模块的使用The text was updated successfully, but these errors were encountered: