Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When I run the winexe tool in order to remote executes commands on WIN systems from Linux

Which protocol winexe tool used ?

Not clearly from winexe doc how winexe works ( ssh protocol or RDP …etc )

share|improve this question

1 Answer 1

winexe uses the admin$ and rpc (net service start) to install and start a remote service (winexesvc). This service initialize a Named Pipe that is used to transport commands from the client to the server and the output in the reverse way. When finish, the named pipe is closes and the winexesvc waits or more connections or is uninstalls (depending of the options given)

The access to the admin$ share and rpc uses the normal SMB protocol (SMB1 and SMB2 in more recent versions due windows 8.1 not supporting anymore SMB1)

This is also the way that psexec work (but it uses SMB2 with fallback to SMB1 for several years)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.