Navigation Menu

Skip to content

Commit

Permalink
string to hex payload script.
Browse files Browse the repository at this point in the history
  • Loading branch information
EN10 committed Feb 25, 2020
1 parent f711c0d commit 9910529
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -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

Expand Down
17 changes: 17 additions & 0 deletions 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;
}

0 comments on commit 9910529

Please sign in to comment.