repo
stringclasses
454 values
file_path
stringlengths
5
201
extension
stringclasses
1 value
content
stringlengths
8
509k
num_lines
int64
3
16.9k
size_bytes
int64
8
511k
sqlmap
tamper/commalesslimit.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import os import re from lib.core.common import singleTimeWarnMessage from lib.core.enums import DBMS from lib.core.enums import PRIORITY __priority__ = PRIORITY.HIGH def depen...
51
1,337
sqlmap
extra/dbwire/monetdb.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ """ Minimal pure-python MonetDB MAPI client (stdlib only, no pymonetdb). MAPI is a block-framed text protocol: a 2-byte little-endian header (length << 1 | last-flag) wraps each ...
241
9,264
sqlmap
extra/dbwire/firebird.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ """ Minimal pure-python Firebird wire-protocol client (stdlib only, no firebirdsql). Speaks the Firebird v13-17 protocol (Firebird 3/4/5): op_connect, SRP-256 authentication, Cha...
871
32,808
sqlmap
extra/dbwire/__init__.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ """ dbwire - minimal, dependency-free (stdlib-only) database wire-protocol clients used as a fallback for sqlmap's direct ('-d') connection when no native driver (and no SQLAlchem...
127
4,086
sqlmap
extra/dbwire/cubrid.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ """ Minimal pure-python CUBRID client speaking the CAS (Common Application Server) broker protocol (stdlib only, no CUBRID-Python/CCI). Does the 10-byte broker handshake (+ option...
469
17,832
sqlmap
extra/dbwire/postgres.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ """ Minimal pure-python PostgreSQL frontend/backend protocol v3 client (stdlib only). Covers the whole PostgreSQL-wire family (PostgreSQL, CockroachDB, CrateDB, Redshift, Greenpl...
332
16,121
sqlmap
extra/dbwire/sybase.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ """ Minimal pure-python Sybase ASE client speaking TDS 5.0 (stdlib only, no pymssql/FreeTDS). Sybase and Microsoft share the 8-byte TDS packet framing (reused from tds.py) and pa...
430
19,830
sqlmap
extra/dbwire/presto.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ """ Minimal pure-python Presto/Trino client over its native HTTP/REST interface (stdlib only, no presto-python-client). A query is POSTed to /v1/statement; the server returns JSON...
193
8,272
sqlmap
extra/dbwire/tds.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ """ Minimal pure-python TDS (Tabular Data Stream) client for Microsoft SQL Server (stdlib only). LOGIN7 / TDS 7.4 is the Microsoft dialect. Sybase ASE speaks TDS 5.0 - same 8-byt...
631
27,852
sqlmap
extra/dbwire/mysql.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ """ Minimal pure-python MySQL client/server protocol client (stdlib only). Covers the whole MySQL-wire family (MySQL, MariaDB, TiDB, Aurora-MySQL, Percona, ...). Auth: mysql_nati...
373
15,958
sqlmap
extra/dbwire/clickhouse.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ """ Minimal pure-python ClickHouse client over its native HTTP interface (stdlib only, no clickhouse_connect). ClickHouse exposes an HTTP endpoint that runs a query in the reques...
144
5,428
sqlmap
extra/vulnserver/vulnserver.py
.py
#!/usr/bin/env python """ vulnserver.py - Trivial SQLi vulnerable HTTP server (Note: for testing purposes) Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from __future__ import print_function import base64 import hashlib import hmac import json impor...
1,797
88,842
sqlmap
extra/shutils/newlines.py
.py
#! /usr/bin/env python from __future__ import print_function import os import sys def check(filepath): if filepath.endswith(".py"): content = open(filepath, "rb").read() pattern = "\n\n\n".encode("ascii") if pattern in content: index = content.find(pattern) print(...
31
903
sqlmap
extra/shutils/duplicates.py
.py
#!/usr/bin/env python # Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) # See the file 'LICENSE' for copying permission # Removes duplicate entries in wordlist like files from __future__ import print_function import sys if __name__ == "__main__": if len(sys.argv) > 1: items = list() ...
31
796
sqlmap
extra/kerberos/aes.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ # Dependency-free AES (FIPS-197) block cipher with CBC mode, supporting 128- and 256-bit keys. It is # the primitive underneath Kerberos' AES-CTS-HMAC-SHA1-96 (RFC 3962) etypes, k...
175
6,350
sqlmap
extra/kerberos/__init__.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """
7
140
sqlmap
extra/kerberos/discovery.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ # Dependency-free KDC discovery for a realm, so '--auth-type=Negotiate' works without an explicit # KDC address. Resolution order: the 'SQLMAP_KERBEROS_KDC' environment variable, ...
201
7,562
sqlmap
extra/kerberos/der.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ # Minimal, dependency-free ASN.1 DER codec covering exactly the constructs Kerberos (RFC 4120) uses: # INTEGER, OCTET STRING, GeneralString, GeneralizedTime, BIT STRING, SEQUENCE ...
143
4,832
sqlmap
extra/kerberos/spnego.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ # Minimal GSS-API / SPNEGO (RFC 2743, RFC 4178) wrapping of a Kerberos AP-REQ into the token carried # by the HTTP "Authorization: Negotiate <base64>" header. Only the initiator's...
34
1,401
sqlmap
extra/kerberos/client.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ # Dependency-free Kerberos 5 client (RFC 4120) built on the in-tree DER codec and RFC 3961/3962 # crypto. Implements the AS exchange (password -> TGT) with PA-ENC-TIMESTAMP pre-au...
412
20,597
sqlmap
extra/kerberos/crypto.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ # Dependency-free Kerberos "simplified profile" crypto (RFC 3961) for the AES-CTS-HMAC-SHA1-96 etypes # (RFC 3962: aes128-cts-hmac-sha1-96 = etype 17, aes256-cts-hmac-sha1-96 = et...
264
10,571
sqlmap
extra/esperanto/wordlist.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission Common table/column names for the brute-force fallback used when the system catalog is unreadable or unknown (permission wall, exotic/Frankenstein engine, CTF). This is the "know noth...
78
4,194
sqlmap
extra/esperanto/extraction.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import binascii from .atlas import _FREQ_ORDER from .atlas import _hardWarnings from .atlas import _HEX_Q_ENCODINGS from .atlas import _HEXDIGITS from .atlas import _HEXFN from ....
831
44,701
sqlmap
extra/esperanto/records.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ class OracleUndecided(RuntimeError): """The oracle gave no reliable True/False after retries/voting - a transport or observation failure, NOT a definitive answer. Raised s...
320
15,420
sqlmap
extra/esperanto/atlas.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission Capability atlas: the candidate SQL forms Esperanto tries (best-first) to discover a dialect blind, mined from data/xml/queries.xml across the supported DBMSes. Data only, no logic. E...
509
27,723
sqlmap
extra/esperanto/__main__.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from . import __version__ from .atlas import _REPL from .engine import Esperanto, hostExtract from .records import ( OracleUndecided, ExtractResult, QueryBudgetExceeded) _SIT...
756
37,253
sqlmap
extra/esperanto/__init__.py
.py
""" Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission esperanto - a DBMS-agnostic SQL poking prototype. Given only a boolean oracle - a callable oracle(condition) -> bool that reports whether an arbitrary SQL boolean expression holds at the target - this disc...
31
1,450
sqlmap
extra/esperanto/enumeration.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from .atlas import _BULK_AGG from .atlas import _COLUMN_SPECS from .atlas import _HEX_PAYLOAD_CODES from .atlas import _IDENT_QUOTE from .atlas import _KEY_SPECS from .atlas impor...
907
55,695
sqlmap
extra/esperanto/run.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission Standalone launcher for the DBMS-agnostic Esperanto engine. Run it straight from this directory - no sqlmap, no PYTHONPATH, no `-m` incantation: python run.py -u 'http://host/vul...
32
1,245
sqlmap
extra/esperanto/discovery.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from .atlas import _BANNER_KEYWORDS from .atlas import _BANNERS from .atlas import _BINWRAP from .atlas import _BYTELEN from .atlas import _CATALOGS from .atlas import _CHARCODE f...
605
30,700
sqlmap
extra/esperanto/engine.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from .atlas import _FREQ_ORDER from .atlas import _hardWarnings from .atlas import _PRINTABLE_SORTED from .atlas import _REPL from .atlas import _unichr from .records import Diale...
199
11,079
sqlmap
extra/esperanto/oracle.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from contextlib import contextmanager from .records import OracleUndecided from .records import QueryBudgetExceeded class _OracleCore(object): """_OracleCore the boole...
137
6,471
sqlmap
extra/esperanto/handler.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from .engine import Esperanto from .records import OracleUndecided def _sanitize(s): """Escape C0/DEL/C1 control bytes in recovered DB content before it is logged - a stored...
284
15,447
sqlmap
extra/icmpsh/icmpsh_m.py
.py
#!/usr/bin/env python # # icmpsh - simple icmp command shell (port of icmpsh-m.pl written in # Perl by Nico Leidecker <nico@leidecker.info>) # # Copyright (c) 2010, Bernardo Damele A. G. <bernardo.damele@gmail.com> # # # This program is free software: you can redistribute it and/or modify # it under the terms of t...
145
4,809
sqlmap
extra/cloak/cloak.py
.py
#!/usr/bin/env python """ cloak.py - Simple file encryption/compression utility Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from __future__ import print_function import os import struct import sys import zlib from optparse import OptionError from...
87
2,254
sqlmap
extra/dbgtool/dbgtool.py
.py
#!/usr/bin/env python """ dbgtool.py - Portable executable to ASCII debug script converter Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from __future__ import print_function import os import sys from optparse import OptionError from optparse impor...
97
2,474
sqlmap
extra/boundarycheck/boundarycheck.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission Live cross-DBMS validator for data/xml/boundaries.xml. WHAT For every reachable DBMS this builds the REAL injected parameter value for each boundary - through the actual agen...
390
18,946
sqlmap
extra/beep/beep.py
.py
#!/usr/bin/env python """ beep.py - Make a beep sound Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import os import sys import wave BEEP_WAV_FILENAME = os.path.join(os.path.dirname(__file__), "beep.wav") def beep(): try: if sys.platfor...
104
2,964
sqlmap
lib/controller/action.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from lib.controller.handler import setHandler from lib.core.common import Backend from lib.core.common import Format from lib.core.common import hashDBWrite from lib.core.data imp...
296
10,692
sqlmap
lib/controller/checks.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import copy import logging import random import re import socket import time from extra.beep.beep import beep from lib.core.agent import agent from lib.core.common import Backend...
1,874
92,568
sqlmap
lib/controller/controller.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from __future__ import division import os import re import subprocess import time from lib.controller.action import action from lib.controller.checks import checkConnection from...
961
44,751
sqlmap
lib/controller/handler.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from lib.core.common import Backend from lib.core.common import getSafeExString from lib.core.common import singleTimeWarnMessage from lib.core.data import conf from lib.core.data...
204
9,288
sqlmap
lib/parse/headers.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import os from lib.core.common import parseXmlFile from lib.core.common import singleTimeWarnMessage from lib.core.data import kb from lib.core.data import paths from lib.parse.h...
42
1,738
sqlmap
lib/parse/html.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import re from xml.sax.handler import ContentHandler from lib.core.common import singleTimeWarnMessage from lib.core.common import urldecode from lib.core.common import parseXml...
106
3,506
sqlmap
lib/parse/payloads.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import os import re from xml.etree import ElementTree as et from lib.core.common import getSafeExString from lib.core.compat import xrange from lib.core.data import conf from li...
124
3,639
sqlmap
lib/parse/sitemap.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import re from lib.core.common import readInput from lib.core.convert import htmlUnescape from lib.core.data import kb from lib.core.data import logger from lib.core.datatype imp...
86
3,378
sqlmap
lib/parse/cmdline.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from __future__ import print_function import os import re import shlex import sys try: from optparse import OptionError as ArgumentError from optparse import OptionGroup...
1,239
56,089
sqlmap
lib/parse/banner.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import re from xml.sax.handler import ContentHandler from lib.core.common import Backend from lib.core.common import parseXmlFile from lib.core.common import sanitizeStr from li...
121
3,895
sqlmap
lib/parse/configfile.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from lib.core.common import checkFile from lib.core.common import getSafeExString from lib.core.common import openFile from lib.core.common import unArrayizeValue from lib.core.co...
101
3,660
sqlmap
lib/parse/handler.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import re from xml.sax.handler import ContentHandler from lib.core.common import sanitizeStr class FingerprintHandler(ContentHandler): """ This class defines methods to...
80
2,702
sqlmap
lib/parse/openapi.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import json import re from lib.core.common import getSafeExString from lib.core.data import logger from lib.core.enums import HTTP_HEADER from lib.core.settings import CUSTOM_INJ...
371
21,368
sqlmap
lib/takeover/web.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import io import os import posixpath import re import tempfile from extra.cloak.cloak import decloak from lib.core.agent import agent from lib.core.common import arrayizeValue fr...
434
18,313
sqlmap
lib/takeover/metasploit.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from __future__ import print_function import errno import os import re import select import sys import tempfile import time from subprocess import PIPE from extra.cloak.cloak i...
706
28,235
sqlmap
lib/takeover/registry.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import os from lib.core.common import openFile from lib.core.common import randomStr from lib.core.data import conf from lib.core.data import logger from lib.core.enums import RE...
119
3,837
sqlmap
lib/takeover/xp_cmdshell.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from lib.core.agent import agent from lib.core.common import Backend from lib.core.common import flattenValue from lib.core.common import getLimitRange from lib.core.common import...
303
11,852
sqlmap
lib/takeover/abstraction.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from __future__ import print_function import sys from lib.core.common import Backend from lib.core.common import dataToStdout from lib.core.common import getSQLSnippet from lib....
246
8,920
sqlmap
lib/takeover/udf.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import os from lib.core.agent import agent from lib.core.common import Backend from lib.core.common import checkFile from lib.core.common import dataToStdout from lib.core.common...
397
14,030
sqlmap
lib/takeover/icmpsh.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import os import re import socket import time from extra.icmpsh.icmpsh_m import main as icmpshmaster from lib.core.common import getLocalIP from lib.core.common import getRemoteI...
141
4,738
sqlmap
lib/techniques/nosql/inject.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import json import re import time from collections import namedtuple from collections import OrderedDict from lib.core.common import beep from lib.core.common import randomStr f...
1,325
73,984
sqlmap
lib/techniques/hql/inject.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import re import time from collections import namedtuple from lib.core.common import beep from lib.core.common import randomStr from lib.core.convert import getUnicode from lib....
646
28,360
sqlmap
lib/techniques/xxe/inject.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import re import time from lib.core.common import beep from lib.core.common import dataToOutFile from lib.core.common import randomStr from lib.core.common import readInput from ...
1,105
52,576
sqlmap
lib/techniques/jwt/inject.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import time from lib.core.common import beep from lib.core.common import randomStr from lib.core.convert import getUnicode from lib.core.data import conf from lib.core.data impor...
362
17,001
sqlmap
lib/techniques/graphql/inject.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import json import re import time from collections import namedtuple from collections import OrderedDict from lib.core.common import beep from lib.core.common import randomStr f...
1,825
83,736
sqlmap
lib/techniques/ssti/inject.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import difflib import re import time from collections import namedtuple from lib.core.common import beep from lib.core.common import randomInt from lib.core.common import random...
1,141
57,261
sqlmap
lib/techniques/blind/inference.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from __future__ import division import difflib import heapq import re import time from lib.core.agent import agent from lib.core.common import Backend from lib.core.common impor...
1,308
70,697
sqlmap
lib/techniques/error/use.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from __future__ import print_function import re import time from lib.core.agent import agent from lib.core.bigarray import BigArray from lib.core.common import Backend from lib....
470
21,577
sqlmap
lib/techniques/xslt/inject.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ """ XSLT injection ('--xslt'). An application that builds a stylesheet by concatenating user input hands over a whole transformation language, not just a value. The tiers are ord...
683
33,634
sqlmap
lib/techniques/ldap/inject.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import re import time from collections import namedtuple from lib.core.common import beep from lib.core.common import randomStr from lib.core.common import removeReflectiveValue...
868
35,096
sqlmap
lib/techniques/sparql/inject.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ """ SPARQL injection ('--sparql'). An application that concatenates user input into a SPARQL query hands over the whole graph pattern language, not just a value. The typical surf...
550
24,212
sqlmap
lib/techniques/dns/use.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import re import time from lib.core.agent import agent from lib.core.common import Backend from lib.core.common import calculateDeltaSeconds from lib.core.common import dataToStd...
123
5,404
sqlmap
lib/techniques/dns/test.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from lib.core.common import Backend from lib.core.common import randomInt from lib.core.data import conf from lib.core.data import kb from lib.core.data import logger from lib.cor...
34
1,124
sqlmap
lib/techniques/union/use.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import json import re import time from lib.core.agent import agent from lib.core.bigarray import BigArray from lib.core.common import arrayizeValue from lib.core.common import Ba...
567
30,694
sqlmap
lib/techniques/union/test.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import itertools import logging import random import re from lib.core.agent import agent from lib.core.common import average from lib.core.common import Backend from lib.core.com...
436
20,481
sqlmap
lib/techniques/xpath/inject.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import re import time from collections import namedtuple from lib.core.common import beep from lib.core.common import dataToOutFile from lib.core.common import randomStr from li...
949
44,089
sqlmap
lib/techniques/odata/inject.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ """ OData injection ('--odata'). An application that builds an OData '$filter' from user input (?name= -> $filter=Name eq '<name>') hands over the whole filter expression languag...
639
29,287
sqlmap
lib/core/option.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from __future__ import division import codecs import collections import functools import glob import importlib import inspect import json import logging import os import random i...
3,181
119,247
sqlmap
lib/core/wordlist.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import zipfile from lib.core.common import getSafeExString from lib.core.common import isZipFile from lib.core.exception import SqlmapDataException from lib.core.exception import...
101
3,562
sqlmap
lib/core/replication.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import sqlite3 from lib.core.common import cleanReplaceUnicode from lib.core.common import getSafeExString from lib.core.common import unsafeSQLIdentificatorNaming from lib.core....
144
5,371
sqlmap
lib/core/revision.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import os import re import subprocess from lib.core.common import openFile from lib.core.convert import getText def getRevisionNumber(): """ Returns abbreviated commit h...
63
1,800
sqlmap
lib/core/subprocessng.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from __future__ import division import errno import os import subprocess import time from lib.core.compat import buffer from lib.core.convert import getBytes from lib.core.setti...
208
5,955
sqlmap
lib/core/convert.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import base64 import binascii import codecs import datetime import decimal import json import re import sys import time from lib.core.bigarray import BigArray from lib.core.compa...
698
24,850
sqlmap
lib/core/unescaper.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from lib.core.common import Backend from lib.core.settings import EXCLUDE_UNESCAPE # Note: a plain dict (DBMS -> escape function) with a helper method; it is a runtime registry, ...
37
1,141
sqlmap
lib/core/exception.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ class SqlmapBaseException(Exception): pass class SqlmapCompressionException(SqlmapBaseException): pass class SqlmapConnectionException(SqlmapBaseException): pass cl...
79
1,645
sqlmap
lib/core/dicts.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from lib.core.enums import CONTENT_TYPE from lib.core.enums import DBMS from lib.core.enums import OS from lib.core.enums import POST_HINT from lib.core.settings import ACCESS_ALI...
743
21,037
sqlmap
lib/core/patch.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import codecs import difflib import inspect import logging import os import random import re import sys import lib.controller.checks import lib.core.common import lib.core.conver...
250
8,435
sqlmap
lib/core/data.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from lib.core.datatype import AttribDict from lib.core.log import LOGGER # sqlmap paths paths = AttribDict() # object to store original command line options cmdLineOptions = Att...
32
727
sqlmap
lib/core/testing.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import doctest import json import logging import os import random import re import shutil import socket import sqlite3 import subprocess import sys import tempfile import threadin...
800
46,538
sqlmap
lib/core/bigarray.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import itertools import os import shutil import sys import tempfile import threading import zlib from lib.core.compat import xrange from lib.core.enums import MKSTEMP_PREFIX from...
376
12,513
sqlmap
lib/core/enums.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ class PRIORITY(object): LOWEST = -100 LOWER = -50 LOW = -10 NORMAL = 0 HIGH = 10 HIGHER = 50 HIGHEST = 100 class SORT_ORDER(object): FIRST = 0 ...
535
15,610
sqlmap
lib/core/update.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import glob import os import re import shutil import subprocess import time import zipfile from lib.core.common import dataToStdout from lib.core.common import extractRegexResult...
169
7,347
sqlmap
lib/core/readlineng.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ _readline = None try: import readline as _readline except: try: import pyreadline as _readline except: pass if _readline: _symbols = getattr(_read...
69
1,998
sqlmap
lib/core/defaults.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from lib.core.datatype import AttribDict _defaults = { "csvDel": ',', "timeSec": 5, "googlePage": 1, "verbose": 1, "delay": 0, "timeout": 30, "retries...
30
558
sqlmap
lib/core/profiling.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import cProfile import os from lib.core.data import logger from lib.core.data import paths def profile(profileOutputFile=None): """ This will run the program and present...
32
1,062
sqlmap
lib/core/settings.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import codecs import os import platform import random import re import string import sys import time from lib.core.enums import DBMS from lib.core.enums import DBMS_DIRECTORY_NAM...
1,844
107,096
sqlmap
lib/core/decorators.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import functools import threading from lib.core.datatype import LRUDict from lib.core.settings import MAX_CACHE_ITEMS from lib.core.threads import getCurrentThreadData _cache = ...
138
3,657
sqlmap
lib/core/session.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import re from lib.core.common import Backend from lib.core.common import Format from lib.core.common import hashDBWrite from lib.core.data import kb from lib.core.data import lo...
80
1,979
sqlmap
lib/core/log.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import logging import re import sys from lib.core.enums import CUSTOM_LOGGING logging.addLevelName(CUSTOM_LOGGING.PAYLOAD, "PAYLOAD") logging.addLevelName(CUSTOM_LOGGING.TRAFFIC...
117
5,488
sqlmap
lib/core/compat.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from __future__ import division import codecs import binascii import functools import io import math import os import random import re import sys import time import uuid class W...
420
12,167
sqlmap
lib/core/common.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ from __future__ import division import binascii import codecs import contextlib import copy import functools import getpass import hmac import hashlib import inspect import io im...
5,967
214,292
sqlmap
lib/core/dump.py
.py
#!/usr/bin/env python """ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org) See the file 'LICENSE' for copying permission """ import hashlib import json import os import re import shutil import tempfile import threading from lib.core.common import Backend from lib.core.common import checkFile from lib.c...
799
34,074