{"id":20190086,"url":"https://github.com/mempirate/rse","last_synced_at":"2025-03-03T07:25:28.745Z","repository":{"id":218583994,"uuid":"160729956","full_name":"mempirate/RSE","owner":"mempirate","description":null,"archived":false,"fork":false,"pushed_at":"2019-01-15T22:21:20.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T18:50:38.290Z","etag":null,"topics":["networking","powershell","python","socket"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mempirate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-06T20:46:12.000Z","updated_at":"2019-01-15T22:21:22.000Z","dependencies_parsed_at":"2024-02-04T20:01:05.318Z","dependency_job_id":null,"html_url":"https://github.com/mempirate/RSE","commit_stats":null,"previous_names":["mempirate/rse"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mempirate%2FRSE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mempirate%2FRSE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mempirate%2FRSE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mempirate%2FRSE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mempirate","download_url":"https://codeload.github.com/mempirate/RSE/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241624958,"owners_count":19992974,"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":["networking","powershell","python","socket"],"created_at":"2024-11-14T03:40:31.295Z","updated_at":"2025-03-03T07:25:28.714Z","avatar_url":"https://github.com/mempirate.png","language":"Python","readme":"# Remote Script Execution\n\n## Introduction\nPython script made to execute server code once client is authenticated. This will be used on a windows server to execute powershell code as a test.\n\nTo connect to the server, use netcat or ncat (ncat is a newer netcat, comes with nmap):\n```\n$ nc --local-port 4444 -nv \u003cserver_ip\u003e 1234\n```\n```\n$ ncat --source-port 4444 -nv \u003cserver_ip\u003e 1234\n```\nThe allowed ports, IP addresses and server ports can be changed.\n\nOr you can use the Python client.py script, which is safer because it obscures password prompts.\n\nIn this example I've called a shell script with the subprocess library, but you can change it to execute other things as well. Read the [subprocess documentation](https://docs.python.org/3.7/library/subprocess.html) for more information.\n\n## Additional Reading on Sockets:\n* https://docs.python.org/3.7/library/socket.html\n* https://docs.python.org/3.7/howto/sockets.html\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmempirate%2Frse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmempirate%2Frse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmempirate%2Frse/lists"}