{ "info": { "author": "Tiago Coutinho", "author_email": "coutinhotiago@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "ptwinrm\n=======\n\nA Python_, prompt_toolkit_ and pywinrm_ based WinRM console:\n\n.. image:: https://asciinema.org/a/C5wHOTBWELzNRbWFlGpuZUBUK.png\n :alt: asciinema cast\n :target: https://asciinema.org/a/C5wHOTBWELzNRbWFlGpuZUBUK?autoplay=1&speed=2&loop=1&size=medium&theme=asciinema\n\nInstallation\n------------\n\n.. code-block:: bash\n\n $ pip install ptwinrm\n\n\nRequirements\n------------\n\n- Python_ >= 2.6\n- docopt\n- pywinrm\n- prompt_toolkit\n\nUsage\n-----\n\nBefore connecting to the windows machine, make sure the winrm service is running and the firewall\nis opened for winrm connections. On my windows machine I had to do the following on the windows\ncommand line::\n\n # make firewall respect our wishes\n C:\\>netsh advfirewall add rule name=\"WinRM-HTTP\" dir=in localport=5985 protocol=TCP action=allow\n C:\\>netsh advfirewall add rule name=\"WinRM-HTTPS\" dir=in localport=5986 protocol=TCP action=allow\n\n # configure winrm\n C:\\>winrm quickconfig\n\n # Allow non encrypted (for pywinrm)\n C:\\>winrm set winrm/config/servive '@{AllowUnencrypted=\"true\"}'\n\nThen you can try to connect from another machine (linux, OSX, windows):\n\n.. code-block:: bash\n\n $ ptwinrm --user=\"acme\\roadrunner\" --run=\"ver\" acme-rr.com\n password: ********\n\n Microsoft Windows [Version 6.1.7601]\n\n $ ptwinrm --user=\"acme\\roadrunner\" acme-rr.com\n password: ********\n\n C:\\Users\\roadrunner>dir\n Volume in drive C is System\n Volume Serial Number is 8C20-216F\n\n Directory of C:\\Users\\roadrunner\n\n 20/04/2017 09:29 .\n 20/04/2017 09:29 ..\n 05/07/2017 10:58 Contacts\n 05/07/2017 10:58 Desktop\n 03/05/2016 11:10 Documents\n 06/07/2017 11:04 Downloads\n 05/07/2017 10:58 Favorites\n 05/07/2017 10:58 Links\n 28/06/2017 08:18 Mails\n 05/07/2017 10:58 Music\n 05/07/2017 10:58 Pictures\n 05/07/2017 10:58 Saved Games\n 05/07/2017 10:58 Searches\n 06/03/2013 15:09 Tracing\n 05/07/2017 10:58 Videos\n\n C:\\Users\\roadrunner> ipconfig /all\n Windows IP Configuration\n\n Host Name . . . . . . . . . . . . : ACME-RR\n Primary Dns Suffix . . . . . . . : acme.com\n Node Type . . . . . . . . . . . . : Hybrid\n IP Routing Enabled. . . . . . . . : No\n WINS Proxy Enabled. . . . . . . . : No\n DNS Suffix Search List. . . . . . : acme.com\n\n Ethernet adapter Local Area Connection 2:\n\n Media State . . . . . . . . . . . : Media disconnected\n Connection-specific DNS Suffix . :\n Description . . . . . . . . . . . : Intel(R) Gigabit CT Desktop Adapter\n Physical Address. . . . . . . . . : 55-44-33-22-11-00\n DHCP Enabled. . . . . . . . . . . : No\n Autoconfiguration Enabled . . . . : Yes\n\n Ethernet adapter Local Area Connection:\n\n Connection-specific DNS Suffix . : acme.com\n Description . . . . . . . . . . . : Acme(R) Gigabit Network Connection\n Physical Address. . . . . . . . . : 00-11-22-33-44-55\n DHCP Enabled. . . . . . . . . . . : Yes\n Autoconfiguration Enabled . . . . : Yes\n IPv4 Address. . . . . . . . . . . : 199.199.1.172(Preferred)\n Subnet Mask . . . . . . . . . . . : 255.255.254.0\n Lease Obtained. . . . . . . . . . : quarta-feira 5 julho 2017 10:41:49\n Lease Expires . . . . . . . . . . : quarta-feira 3 janeiro 2018 22:42:05\n Default Gateway . . . . . . . . . : 199.199.1.1\n DHCP Server . . . . . . . . . . . : 198.198.60.11\n DNS Servers . . . . . . . . . . . : 198.198.208.9\n 198.198.209.9\n NetBIOS over Tcpip. . . . . . . . : Enabled\n\n Tunnel adapter isatap.acme.com:\n\n Media State . . . . . . . . . . . : Media disconnected\n Connection-specific DNS Suffix . : acme.com\n Description . . . . . . . . . . . : Microsoft ISATAP Adapter\n Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0\n DHCP Enabled. . . . . . . . . . . : No\n Autoconfiguration Enabled . . . . : Yes\n\n Tunnel adapter Local Area Connection* 11:\n\n Media State . . . . . . . . . . . : Media disconnected\n Connection-specific DNS Suffix . :\n Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface\n Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0\n DHCP Enabled. . . . . . . . . . . : No\n Autoconfiguration Enabled . . . . : Yes\n\n Tunnel adapter isatap.{FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF}:\n\n Media State . . . . . . . . . . . : Media disconnected\n Connection-specific DNS Suffix . :\n Description . . . . . . . . . . . : Microsoft ISATAP Adapter #4\n Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0\n DHCP Enabled. . . . . . . . . . . : No\n Autoconfiguration Enabled . . . . : Yes\n\n C:\\Users\\roadrunner>\n\n\n**That's all folks!**\n\n\n.. _Python: http://www.python.org/\n.. _pywinrm: http://www.github.com/diyan/pywinrm/\n.. _prompt_toolkit: http://www.github.com/jonathanslenders/python-prompt-toolkit/\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tiagocoutinho/ptwinrm", "keywords": "windows winrm console", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "ptwinrm", "package_url": "https://pypi.org/project/ptwinrm/", "platform": "", "project_url": "https://pypi.org/project/ptwinrm/", "project_urls": { "Homepage": "https://github.com/tiagocoutinho/ptwinrm" }, "release_url": "https://pypi.org/project/ptwinrm/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "winrm console", "version": "0.1.1" }, "last_serial": 3017465, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "3565daf96672a0f0906f58de7fd57d36", "sha256": "1fd21c50ddbb6a7f37e737cbc0da3ef6a413a6a79ff8031f5623db2d8a366015" }, "downloads": -1, "filename": "ptwinrm-0.1.0.tar.gz", "has_sig": false, "md5_digest": "3565daf96672a0f0906f58de7fd57d36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3503, "upload_time": "2017-07-12T08:47:04", "url": "https://files.pythonhosted.org/packages/e1/c3/7ffca027427cee3648307392a3b94a311f8349b66148545bad31aabd606e/ptwinrm-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "679496c56925f8e17f2754c0bd1b33ff", "sha256": "f92de7c7d54cb0c974fd08bd08915c9f652a60fc164b09c7408e9fe571fcd230" }, "downloads": -1, "filename": "ptwinrm-0.1.1.tar.gz", "has_sig": false, "md5_digest": "679496c56925f8e17f2754c0bd1b33ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5065, "upload_time": "2017-07-12T12:56:23", "url": "https://files.pythonhosted.org/packages/e8/b4/0904952456a15a0797e7490634969f8d605354825efcf30f2f0d5c1f6c18/ptwinrm-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "679496c56925f8e17f2754c0bd1b33ff", "sha256": "f92de7c7d54cb0c974fd08bd08915c9f652a60fc164b09c7408e9fe571fcd230" }, "downloads": -1, "filename": "ptwinrm-0.1.1.tar.gz", "has_sig": false, "md5_digest": "679496c56925f8e17f2754c0bd1b33ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5065, "upload_time": "2017-07-12T12:56:23", "url": "https://files.pythonhosted.org/packages/e8/b4/0904952456a15a0797e7490634969f8d605354825efcf30f2f0d5c1f6c18/ptwinrm-0.1.1.tar.gz" } ] }