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: Thursday, December 19, 2024 at 9:22:04 PM
Tag arguments
[]
Code
class sqlHex {
encode(input) {
return (
"0x" +
input
.split("")
.map((chr) => chr.codePointAt().toString(16).padStart(2, "0"))
.join("")
);
}
}