Skip to content

Commit 07aa7f9

Browse files
committed
Adding support for --hostname to Snowflake implementation (#5980)
1 parent 9e29d7a commit 07aa7f9

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

data/txt/sha256sums.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ b0f434f64105bd61ab0f6867b3f681b97fa02b4fb809ac538db382d031f0e609 data/xml/paylo
8585
0648264166455010921df1ec431e4c973809f37ef12cbfea75f95029222eb689 data/xml/payloads/stacked_queries.xml
8686
997556b6170964a64474a2e053abe33cf2cf029fb1acec660d4651cc67a3c7e1 data/xml/payloads/time_blind.xml
8787
40a4878669f318568097719d07dc906a19b8520bc742be3583321fc1e8176089 data/xml/payloads/union_query.xml
88-
b570da4351a22b9ff59c875cfb39d426e439f857826f139388af9b66853465ec data/xml/queries.xml
88+
db7a102b534fabad5faf4f26aa8ec9ca842f085b91fced63916e2258019acfc5 data/xml/queries.xml
8989
abb6261b1c531ad2ee3ada8184c76bcdc38732558d11a8e519f36fcc95325f7e doc/AUTHORS
9090
ce20a4b452f24a97fde7ec9ed816feee12ac148e1fde5f1722772cc866b12740 doc/CHANGELOG.md
9191
7af515e3ad13fb7e9cfa4debc8ec879758c0cfbe67642b760172178cda9cf5cb doc/THANKS.md
@@ -189,7 +189,7 @@ e18c0c2c5a57924a623792a48bfd36e98d9bc085f6db61a95fc0dc8a3bcedc0c lib/core/decor
189189
48797d6c34dd9bb8a53f7f3794c85f4288d82a9a1d6be7fcf317d388cb20d4b3 lib/core/replication.py
190190
3574639db4942d16a2dc0a2f04bb7c0913c40c3862b54d34c44075a760e0c194 lib/core/revision.py
191191
888daba83fd4a34e9503fe21f01fef4cc730e5cde871b1d40e15d4cbc847d56c lib/core/session.py
192-
9d23aa2c1f2e47fdd94a44d6741cadba48c64ee692d57f4510dcdab0532a4f0a lib/core/settings.py
192+
0f299609f0c0306e1a2ae38e8c871a1ffd35308cdf515fecd8905a4f718d2858 lib/core/settings.py
193193
cd5a66deee8963ba8e7e9af3dd36eb5e8127d4d68698811c29e789655f507f82 lib/core/shell.py
194194
bcb5d8090d5e3e0ef2a586ba09ba80eef0c6d51feb0f611ed25299fbb254f725 lib/core/subprocessng.py
195195
d35650179816193164a5f177102f18379dfbe6bb6d40fbb67b78d907b41c8038 lib/core/target.py
@@ -435,7 +435,7 @@ b76606fe4dee18467bc0d19af1e6ab38c0b5593c6c0f2068a8d4c664d4bd71d8 plugins/dbms/r
435435
1df5c5d522b381ef48174cfc5c9e1149194e15c80b9d517e3ed61d60b1a46740 plugins/dbms/raima/syntax.py
436436
5b9572279051ab345f45c1db02b02279a070aafdc651aedd7f163d8a6477390b plugins/dbms/raima/takeover.py
437437
5744531487abfb0368e55187a66cb615277754a14c2e7facea2778378e67d5c9 plugins/dbms/snowflake/connector.py
438-
0589131bb487db86fc3eb17349b7cf59a511569fed4b48a9a54adab663ff627e plugins/dbms/snowflake/enumeration.py
438+
7272034efee54253ebe8177ae51fc84f1361fc8566be906f1918a55089914090 plugins/dbms/snowflake/enumeration.py
439439
3b52302bc41ab185d190bbef58312a4d6f1ee63caa8757309cda58eb91628bc5 plugins/dbms/snowflake/filesystem.py
440440
16c215879ce089b408c7ee3b1a57b44d18f571623e63318384ce0358f5d0441a plugins/dbms/snowflake/fingerprint.py
441441
1de7c93b445deb0766c314066cb122535e9982408614b0ff952a97cbae9b813a plugins/dbms/snowflake/__init__.py

data/xml/queries.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1806,7 +1806,7 @@
18061806
<banner query="CURRENT_VERSION()"/>
18071807
<current_user query="CURRENT_USER()"/>
18081808
<current_db query="CURRENT_SCHEMA()"/>
1809-
<hostname/>
1809+
<hostname query="PARSE_JSON(SYSTEM$ALLOWLIST())[0]:host"/>
18101810
<table_comment/>
18111811
<column_comment/>
18121812
<is_dba query="CURRENT_ROLE()='ACCOUNTADMIN'"/>

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from thirdparty import six
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.10.1.31"
22+
VERSION = "1.10.1.32"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

plugins/dbms/snowflake/enumeration.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ def getPasswordHashes(self):
1515
logger.warning(warnMsg)
1616
return {}
1717

18-
def getHostname(self):
19-
warnMsg = "on Snowflake it is not possible to enumerate the hostname"
20-
logger.warning(warnMsg)
21-
2218
def searchDb(self):
2319
warnMsg = "on Snowflake it is not possible to search databases"
2420
logger.warning(warnMsg)

0 commit comments

Comments
 (0)