Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.
/ hieroglyphy-py Public archive

Transform any javascript code to an equivalent sequence of ()[]{}!

Notifications You must be signed in to change notification settings

mattaereal/hieroglyphy-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Hieroglyphy

A tool for converting strings, numbers, and scripts to equivalent sequences of ()[]{}+! characters that run in the browser.

Usage and installation

You can use the class inside the python file or use it as a stand-alone script.

[matt@mfsec hieroglyph.py]$ ./hieroglyphy.py 
# Copyright (c) <2012> <Matías Ariel Ré Medina>
# Hieroglyphy, port from JavasCript version by <Patricio Palladino>
[!] Usage: ./hieroglyphy.py script <File>|number <Number>|string <String>
[!] Examples:
	 ./hieroglyphy.py script file.js
	 ./hieroglyphy.py string "alert('xss')"
	 ./hieroglyphy.py number 1337

[matt@mfsec hieroglyph.py]$ ./hieroglyphy.py string alert
# Copyright (c) <2012> <Matías Ariel Ré Medina>
# Hieroglyphy, port from JavasCript version by <Patricio Palladino>
[*] Encoded string below: alert
(+{}+[])[+!![]]+(![]+[])[!+[]+!![]]+([][+[]]+[])[!+[]+!![]+!![]]+(!![]+[])[+!![]]+(!![]+[])[+[]]

If you liked this check out pyronbee and learn how to use the encodings to detect how good are your WAF rules.

About

Transform any javascript code to an equivalent sequence of ()[]{}!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages