poweradminllc / PAExec

Remote execution, like PsExec
531 stars 177 forks source link

target IPC$ connection appears to be orphaned after -6 exit code / failure #6

Open jheliker opened 9 years ago

jheliker commented 9 years ago

Hello -

If I try to use PAExec.exe without passing any username & password, it will fail to connect to ADMIN$ and then fail to copy executable, then fail to connect to SCM, finally exiting with -6.

However after all programs are closed, "net use" shows an open connection to IPC$ on the target system.

As such, retrying PAExec this time passing correct admin username & password credentials, PAExec will again fail with exit code -6, "Multiple connections to a server or shared resource by the same user, etc" until the orphaned IPC$ connection is removed, ie. "net use * /delete".

This seems like a bug to me - I would expect the initial failure to close out of IPC$ before exiting.

Thanks!