{"id":17244670,"url":"https://github.com/kost/rdpcmd","last_synced_at":"2025-04-12T09:51:50.175Z","repository":{"id":41207662,"uuid":"157987600","full_name":"kost/rdpcmd","owner":"kost","description":"script/execute commands over RDP connection (elevated cmd.exe)","archived":false,"fork":false,"pushed_at":"2018-11-18T08:34:30.000Z","size":6,"stargazers_count":41,"open_issues_count":0,"forks_count":13,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-26T04:42:39.249Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"AutoIt","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kost.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-17T13:33:50.000Z","updated_at":"2025-01-05T23:24:57.000Z","dependencies_parsed_at":"2022-08-26T04:51:15.514Z","dependency_job_id":null,"html_url":"https://github.com/kost/rdpcmd","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kost%2Frdpcmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kost%2Frdpcmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kost%2Frdpcmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kost%2Frdpcmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kost","download_url":"https://codeload.github.com/kost/rdpcmd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248550632,"owners_count":21122932,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T06:26:53.199Z","updated_at":"2025-04-12T09:51:50.135Z","avatar_url":"https://github.com/kost.png","language":"AutoIt","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rdpcmd\nExecute and script commands over RDP connection. It will try to execute command in elevated cmd.exe\n\nSince there were no examples of how you can use AutoIt to control RDP sessions and also spawn elevated cmd.exe, I wrote one.\n\n## Installation\n\nYou need to import registry file in order to disable confirmation RDP prompts (faster and safer):\n\n`\nreg import disable-confirmations.reg\n`\n\nNote: You need only to run this on host where you will rdpcmd from. You do not have to do it on the hosts you're connecting. Be aware also that rdpcmd will not work if you do not disable confirmations.\n\nWarning: Disabling confirmations have its security implications. That means you will not get confirmation for new/invalid security certificates when connecting with RDP (Only affects RDP!).\n\n## Usage\n\nSimple usage:\n\n`\nrdpcmd \u003cip\u003e \u003cuser\u003e \u003cpassword\u003e \u003ccommand\u003e \u003csleep-after-running\u003e\n`\n\n## Examples\n\nRun ipconfig, do not close command prompt (you will need to reconnect to RDP to see the output):\n\n`\nrdpcmd 192.168.1.1 user password \"ipconfig\" 0\n`\n\nEnable winrm, close command prompt after 5000 ms (5 s):\n\n`\nrdpcmd 192.168.1.1 user password \"winrm quickconfig -quiet -force\" 5000\n`\n\n## Known Limitations\n\nSince it is Proof of Concept (PoC), it have some limitations (pull requests are welcome!):\n\n* Does not handle errors well (connection failure, wrong credentials, etc)\n* Works best if you don't have anything else open (especially other RDP sessions)\n* Will not report if it fails\n* You have to play with timeouts/sleeps if you have slow network or host targets\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkost%2Frdpcmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkost%2Frdpcmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkost%2Frdpcmd/lists"}