Skip to content

Conversation

@martanne
Copy link
Contributor

@martanne martanne commented Dec 3, 2025

In recent engagements I needed the possibility to authenticate using explicit SQL credentials.

The nature of these changes is quite mechanical and they need adaption of the various C2 integration scripts which this pull request mostly lacks.

At the time I wrote this, I wasn't aware of @dejisec recent pull request #9. As a result, this contains an alternative implementation of the wrapper scripts needed for Outflank C2.

I choose to add optional user and password arguments for SQL authentication:

beacon> sql-whoami -u sa -p Passw0rd sqlserver01

Whereas omitting them uses the existing Windows based authentication from the current execution context:

beacon> sql-whoami sqlserver01

While not mergeable as is, I hope it is still useful for somebody out there in the same situation.

Add user and password arguments to all functions, if non-NULL these are
embedded into the used connection string as UID=%s;PWD=%s; thereby using
the provided credentials for SQL authentication instead of relying on
Windows authentication based on the current execution context.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant