Impacket-master - psexec for linux


I have an application that need to execute remote commands on Windows and linux. This app run in a CentOS server.
It is easy to execute a remote on linux, but on Windows I had to search a good solution and I had find Impacket-master.
To use this solution you have to follow this steps:
  • Install python in your linux;
  • Download this libraries;
  • Install Libraries;
    • Unpack files: tar -vzxf pyasn1-0.1.9.tar.gz
    • Install: python setup.py install
  •  After this, install Ipacket-Master: python setup.py install
  • You can find psexec.py in examples folder: impacket-master/examples
These is a command line with an example:
python psexec.py domain/user:password@server 'cmd /c "dir /s c:\"'

Comments

Popular posts from this blog

Openedge (Progress) - List transaction cache