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;
- argparse-master - https://pypi.python.org/pypi/argparse
- pyasn1 - https://pypi.python.org/pypi/pyasn1
- pycrypto-2.6.1 - https://pypi.python.org/pypi/pycrypto
- 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
Post a Comment