Skip to content

Add Download and Upload commands for dotnet.exe#495

Open
Pumi96 wants to merge 2 commits into
LOLBAS-Project:masterfrom
Pumi96:patch-1
Open

Add Download and Upload commands for dotnet.exe#495
Pumi96 wants to merge 2 commits into
LOLBAS-Project:masterfrom
Pumi96:patch-1

Conversation

@Pumi96

@Pumi96 Pumi96 commented Apr 2, 2026

Copy link
Copy Markdown

Added two new use cases for dotnet.exe: downloading files via dotnet restore and exfiltrating data via dotnet nuget push.

I found a new technique to download and upload files using dotnet.exe
@Pumi96 Pumi96 requested a review from a team as a code owner April 2, 2026 09:44

@wietze wietze left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey I have been trying to get this to work, but I feel like context is missing on how to weaponise this.

I believe you basically need to run your own NuGet server to even get it to talk - where are the NuGet packages downloaded to when successful?

I have been testing with:

dotnet.exe restore --source http://127.0.0.1:8000 --configfile nuget.config test.csproj

If you could provide a working example or a resource explaining how this may be abused, that would be helpful.

@Pumi96

Pumi96 commented Jun 12, 2026 via email

Copy link
Copy Markdown
Author

@wietze

wietze commented Jun 15, 2026

Copy link
Copy Markdown
Member

No need for the AI answer, I could have done that myself.

It still doesn't really solve the problem that for someone seeing this entry, it being unclear how to use it, especially since it requires a special setup. It would be really helpful if there was a blog or even a GitHub gist explaining how to weaponise this.

@0XC7R

0XC7R commented Jun 17, 2026

Copy link
Copy Markdown

Feels less like a lolba more like a finding. I feel lolbas are supposed to be more accessible hence the "living off the land" part. Personally would consider this an lolba if it was using something like the default .net 4.8 installation which is installed on all windows from 10 - 11 IF Im remembering right.

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.

3 participants