Created
February 13, 2025 03:14
-
-
Save garrettfoster13/d5015133dcc728497f5941a431d6c515 to your computer and use it in GitHub Desktop.
Tweaked from Responder to Profile one remote SQL box
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
# This file is part of Responder, a network take-over set of tools | |
# created and maintained by Laurent Gaffie. | |
# email: [email protected] | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
# GNU General Public License for more details. | |
# | |
# You should have received a copy of the GNU General Public License | |
# along with this program. If not, see <http://www.gnu.org/licenses/>. | |
from socket import * | |
print('MSSQL Server Finder 0.3') | |
s = socket(AF_INET,SOCK_DGRAM) | |
s.settimeout(5) | |
s.sendto(b'\x02',('10.3.10.13',1434)) | |
try: | |
while 1: | |
data, address = s.recvfrom(8092) | |
if not data: | |
break | |
else: | |
print("===============================================================") | |
print(("Host details: %s"%(address[0]))) | |
print((data[2:]).decode('latin-1')) | |
print("===============================================================") | |
print("") | |
except: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment