diff --git a/ContentTypeConverter/README.md b/ContentTypeConverter/README.md index 03c61df..deef087 100644 --- a/ContentTypeConverter/README.md +++ b/ContentTypeConverter/README.md @@ -2,3 +2,101 @@ Content-Type Converter ========= Burp extension to convert XML to JSON, JSON to XML, x-www-form-urlencoded to XML, and x-www-form-urlencoded to JSON. + +Requirements: Java 8 (Due to issues with one of the libraries it only works on Java 8. I have not had any problems with Burp using Java 8.) + +Right-click request and send to repeater. + +![alt tag](https://blog.netspi.com/wp-content/uploads/2015/04/SNAG-0165.jpg) + +###Body Parameter### + +``` +POST /test HTTP/1.1 +Host: www.example.com +Proxy-Connection: keep-alive +Content-Length: 32 + +parameter1=1¶meters2="test" + +``` + +#####To XML##### +``` +POST /test HTTP/1.1 +Host: www.example.com +Proxy-Connection: keep-alive +Content-Length: 136 +Content-Type: application/xml;charset=UTF-8 + + + +"test" +1 + +``` +#####To JSON##### +``` +POST /test HTTP/1.1 +Host: www.example.com +Proxy-Connection: keep-alive +Content-Length: 43 +Content-Type: application/json;charset=UTF-8 + +{"parameter1":"1","parameters2":"\"test\""} +``` + +###JSON to XML### + +``` +POST /test HTTP/1.1 +Host: www.example.com +Proxy-Connection: keep-alive +Content-Length: 43 +Content-Type: application/json;charset=UTF-8 + +{"parameter1":"1","parameters2":"\"test\""} +``` +#####To XML##### +``` +POST /test HTTP/1.1 +Host: www.example.com +Proxy-Connection: keep-alive +Content-Length: 136 +Content-Type: application/xml;charset=UTF-8 + + + +"test" +1 + +``` + +###XML to JSON### + +``` +POST /test HTTP/1.1 +Host: www.example.com +Proxy-Connection: keep-alive +Content-Length: 136 +Content-Type: application/xml;charset=UTF-8 + + + +"test" +1 + +``` +#####To JSON##### +``` +POST /text HTTP/1.1 +Host: www.example.com +Proxy-Connection: keep-alive +Content-Length: 60 +Content-Type: application/json;charset=UTF-8 + +{"root": { + "parameters2": "\"test\"", + "parameter1": 1 +}} +```