Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 025c531

Browse files
committed
leftover
1 parent c0946ce commit 025c531

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

lib/techniques/dns/use.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,29 +34,12 @@
3434
from lib.core.data import queries
3535
from lib.core.enums import DBMS
3636
from lib.core.enums import PAYLOAD
37-
from lib.core.settings import FROM_DUMMY_TABLE
3837
from lib.core.settings import MAX_DNS_LABEL
3938
from lib.core.settings import PARTIAL_VALUE_MARKER
4039
from lib.core.unescaper import unescaper
4140
from lib.request.connect import Connect as Request
4241

4342

44-
def dnsTest(payload):
45-
logger.info("testing for data retrieval through DNS channel")
46-
47-
randInt = randomInt()
48-
kb.dnsTest = dnsUse(payload, "SELECT %d%s" % (randInt, FROM_DUMMY_TABLE.get(Backend.getIdentifiedDbms(), ""))) == str(randInt)
49-
50-
if not kb.dnsTest:
51-
errMsg = "data retrieval through DNS channel failed. Turning off DNS exfiltration support"
52-
logger.error(errMsg)
53-
54-
conf.dnsDomain = None
55-
else:
56-
infoMsg = "data retrieval through DNS channel was successful"
57-
logger.info(infoMsg)
58-
59-
6043
def dnsUse(payload, expression):
6144
"""
6245
Retrieve the output of a SQL query taking advantage of the DNS

0 commit comments

Comments
 (0)