Skip to content
New issue

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

to-hex payloadprocessor #178

Merged
merged 1 commit into from
Feb 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
string to hex payload script.
  • Loading branch information
EN10 committed Feb 25, 2020
commit 99105294de70bbc3820f89361f81729f605527ae
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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;
}