sqlHex

This converts the string into hex prefixed with 0x

Created by: hackvertor
Installed 1 times

Category: SQLi

Created on: Wednesday, October 23, 2024 at 11:23:26 AM

Updated on: Wednesday, November 6, 2024 at 2:17:28 PM

This is a built in tag
Tag arguments
[]
Code
class sqlHex {
  encode(input) {
    return (
      "0x" +
      input
        .split("")
        .map((chr) => chr.codePointAt().toString(16).padStart(2, "0"))
        .join("")
    );
  }
}