pypsexec

Remote Windows execution like PsExec on Python

MIT License

Downloads
66.2K
Stars
113
Committers
1

Bot releases are hidden (Show)

pypsexec - Latest Release

Published by jborean93 almost 3 years ago

0.3.0 - 2021-10-22

  • Dropped Python 2.7 and 3.5, new minimum is 3.6
  • Updated the PAExec executable to 1.29
pypsexec -

Published by jborean93 almost 4 years ago

  • Breaking change where processes are run as the native architecture bitness, e.g. 64-bit on 64-bit OS' and 32-bit on 32-bit OS'
    • This changes the old behaviour of always running as a 32-bit process.
    • Any application relying on running with 32-bit paths will need to set wow64=True on run_executable() to restore the older behaviour.
  • Dropped support for Python 2.6 and Python 3.4.
  • Updated the PAExec executable to 1.27.
  • Handle non-ASCII characters when enumerating the services on the remote host.
pypsexec - Initial Release

Published by jborean93 over 6 years ago

Initial release of pypsexec

pypsexec - Dev 7 Release

Published by jborean93 over 6 years ago

  • Added retry to opening main named pipe in case the service isn't up yet.
  • Don't fail immediately if failed to write to stdin, get the error from the PAExec service
pypsexec - Dev 6 Release

Published by jborean93 over 6 years ago

  • Updated README to fix some errors
  • Only disconnect from the connection as that covers all objects opened on that connection
  • Changed stdin pipe to not run in a thread to save on execution costs
pypsexec - Dev 5 Release

Published by jborean93 over 6 years ago

  • Added six as a project dependency, didn't really matter as smbprotocol already had this
  • Use smbprotocol compounding requests that are related to reduce number of packets being sent
  • Changed smbprotocol Open.open to Open.create
  • Added the ability to control how the stdout/stderr buffer is handled
  • Added the ability to pass in a generator to the stdin buffer
  • Made the error handling of the output pipes more reliant than before
pypsexec - Dev 4 Release

Published by jborean93 over 6 years ago

Changes to arguments to avoid Python keywords or simplify their meanings
Change the connection timeout param to be set on the connect function instead of init
Tried to make the tests a bit more reliable by adding a short sleep at the end

pypsexec - Dev 3 Release

Published by jborean93 over 6 years ago

Added some reliability increases when dealing with services.
Added the ability to set a connection timeout.

pypsexec - Dev 2 Release

Published by jborean93 over 6 years ago

  • Fixed issue with SCMR string marshaling of certain string lengths.
  • Add function to cleanup all older executables and services from previous runs
  • Fixed up some typos in the example on the README
pypsexec - Dev 1 Release

Published by jborean93 over 6 years ago

Fixes an issue with Server 2008 which does not support messages larger than 64kb. The PAExec exectuable is now sent in chunks with the chunk size being the max write length that was negotiated by SMB. For newer OS's this changes nothing as the negotiated size is larger than the PAExec payload.

pypsexec - First dev release

Published by jborean93 over 6 years ago

First dev release to PyPi, designed to be a tester release for people who want to try it out.

Package Rankings
Top 3.97% on Pypi.org
Top 36.59% on Conda-forge.org
Badges
Extracted from project README
Test workflow codecov PyPI version License