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: Sunday, November 3, 2024 at 12:06:59 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("")
    );
  }
}