mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-29 17:39:56 +03:00
Create hexencode.py
This commit is contained in:
parent
95ce5a4a09
commit
01d9236589
26
tamper/hexencode.py
Normal file
26
tamper/hexencode.py
Normal file
|
@ -0,0 +1,26 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
"""
|
||||
Copyright (c) 2006-2015 sqlmap developers (http://sqlmap.org/)
|
||||
See the file 'doc/COPYING' for copying permission
|
||||
"""
|
||||
|
||||
from lib.core.enums import PRIORITY
|
||||
from lib.core.settings import UNICODE_ENCODING
|
||||
|
||||
__priority__ = PRIORITY.LOWEST
|
||||
|
||||
def dependencies():
|
||||
pass
|
||||
|
||||
def tamper(payload, **kwargs):
|
||||
"""
|
||||
Base16 all characters in a given payload
|
||||
|
||||
Notes:
|
||||
* unrecommended/untested for int types, Only string
|
||||
|
||||
>>> tamper("UNION ALL SELECT NULL,NULL,NULL#")
|
||||
'554e494f4e20414c4c2053454c454354204e554c4c2c4e554c4c2c4e554c4c23'
|
||||
"""
|
||||
return payload.encode('hex')
|
Loading…
Reference in New Issue
Block a user