Skip to content

Commit

Permalink
fixed issue with post data properly encoding in ASP based targets, bu…
Browse files Browse the repository at this point in the history
…mped version 1.3.4
  • Loading branch information
r0oth3x49 committed Jun 5, 2024
1 parent cd84460 commit 45eaf93
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![GitHub release](https://img.shields.io/badge/release-v1.3.3-brightgreen?style=flat-square)](https://github.com/r0oth3x49/ghauri/releases/tag/1.3.3)
[![GitHub release](https://img.shields.io/badge/release-v1.3.4-brightgreen?style=flat-square)](https://github.com/r0oth3x49/ghauri/releases/tag/1.3.4)
[![GitHub stars](https://img.shields.io/github/stars/r0oth3x49/ghauri?style=flat-square)](https://github.com/r0oth3x49/ghauri/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/r0oth3x49/ghauri?style=flat-square)](https://github.com/r0oth3x49/ghauri/network)
[![GitHub issues](https://img.shields.io/github/issues/r0oth3x49/ghauri?style=flat-square)](https://github.com/r0oth3x49/ghauri/issues)
Expand Down
2 changes: 1 addition & 1 deletion ghauri/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"""

__version__ = "1.3.3"
__version__ = "1.3.4"
__author__ = "Nasir Khan (r0ot h3x49)"
__license__ = "MIT"
__copyright__ = "Copyright (c) 2016-2025 Nasir Khan (r0ot h3x49)"
Expand Down
3 changes: 3 additions & 0 deletions ghauri/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,9 @@ def urlencode(
value = urldecode(value)
if conf.safe_chars:
safe = f"{safe}{conf.safe_chars}"
is_aspdotnet = bool("%2b" in value.lower())
if is_aspdotnet:
safe += "%"
if injection_type and injection_type not in ["HEADER"] and not is_multipart:
if injection_type == "COOKIE":
if value_type == "payload":
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="ghauri",
version="1.3.3",
version="1.3.4",
description="An advanced SQL injection detection & exploitation tool.",
classifiers=["Programming Language :: Python3"],
author="Nasir Khan",
Expand Down

0 comments on commit 45eaf93

Please sign in to comment.