You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
Either handle this edge case scenario (see additional data below);
Or describe these two conditions as a quick note on the setup documentation.
Additional data
Stack trace for "Git Repository is empty" Exception (empty repo):
at Octokit.Connection.RunRequest(IRequest request, CancellationToken cancellationToken, Func`2 preprocessResponseBody) in /_/Octokit/Http/Connection.cs:line 798
at Octokit.Connection.Run[T](IRequest request, CancellationToken cancellationToken, Func`2 preprocessResponseBody) in /_/Octokit/Http/Connection.cs:line 783
at Octokit.ApiConnection.Get[T](Uri uri, IDictionary`2 parameters)
at Agent.Profiles.GitHub.StartBeacon()
Stack trace for "Not Found" Exception (main branch does not exist):
at Octokit.Connection.RunRequest(IRequest request, CancellationToken cancellationToken, Func`2 preprocessResponseBody) in /_/Octokit/Http/Connection.cs:line 798
at Octokit.Connection.Run[T](IRequest request, CancellationToken cancellationToken, Func`2 preprocessResponseBody) in /_/Octokit/Http/Connection.cs:line 783
at Octokit.ApiConnection.Get[T](Uri uri, IDictionary`2 parameters)
at Agent.Profiles.GitHub.StartBeacon()
The text was updated successfully, but these errors were encountered:
Thanks for the detailed writeup @armysick! These are great suggestions that I will add to the C2 Profile documentation immediately. Rather than hardcoding the main branch, I will make that a configurable parameter in the near future.
Describe the bug
For the GitHub profile to work with Athena, it is mandatory that the repository is not empty, and that the default branch is named "main".
In
Athena/Payload_Type/athena/athena/agent_code/Agent.Profiles.GitHub/GitHubProfile.cs
Line 101 in a2bfe47
Expected behavior
Either handle this edge case scenario (see additional data below);
Or describe these two conditions as a quick note on the setup documentation.
Additional data
Stack trace for "Git Repository is empty" Exception (empty repo):
Stack trace for "Not Found" Exception (main branch does not exist):
The text was updated successfully, but these errors were encountered: