diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ba5c304..2ba12bed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +### Added +- payloadprocessor/to-hex.js > string to hex payload script. ## [9] - 2020-01-30 diff --git a/payloadprocessor/to-hex.js b/payloadprocessor/to-hex.js new file mode 100644 index 00000000..2a7bb5e9 --- /dev/null +++ b/payloadprocessor/to-hex.js @@ -0,0 +1,17 @@ + /** + * Converts a string payload to hex. + * + * Created to add functionality found in Burp to solve Natas19 + * https://www.youtube.com/watch?v=z3RtpWZ_R3Q + * + * EN10 + */ + +function process(payload) { + var hex = ''; + var i; + for (i = 0; i < payload.length; i++) { + hex += payload.charCodeAt(i).toString(16); + } + return hex; +}