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