{"id":19387140,"url":"https://github.com/felsokning/powershell","last_synced_at":"2025-02-24T18:54:48.218Z","repository":{"id":140958229,"uuid":"164116599","full_name":"felsokning/PowerShell","owner":"felsokning","description":"PowerShell scripts written for use in Windows and/or Linux.","archived":false,"fork":false,"pushed_at":"2019-09-03T13:32:43.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-07T08:22:41.763Z","etag":null,"topics":["jit","powershell","powershell-script","ps1","reviews-appreciated"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/felsokning.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-04T14:21:52.000Z","updated_at":"2023-12-06T14:05:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"be0f1aee-13c4-44fe-88f7-135e196b0c73","html_url":"https://github.com/felsokning/PowerShell","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felsokning%2FPowerShell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felsokning%2FPowerShell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felsokning%2FPowerShell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felsokning%2FPowerShell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/felsokning","download_url":"https://codeload.github.com/felsokning/PowerShell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240540552,"owners_count":19817791,"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":["jit","powershell","powershell-script","ps1","reviews-appreciated"],"created_at":"2024-11-10T10:08:28.604Z","updated_at":"2025-02-24T18:54:48.212Z","avatar_url":"https://github.com/felsokning.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PowerShell\nThis repo contains PowerShell scripts Id've written over time to accomplish tasks.\n\n## Get-ConnectedIpAddressesRegions.ps1\n(**Linux**) Finds the IP addresses that machine is connected to and then attempts to find the geo-location information of the IP address via [geoiplookup](https://linux.die.net/man/1/geoiplookup).\n\n## Get-DynamicDistributionGroupMembers.ps1\n(**Windows + Exchange**) Leverages the commands found in Exchange Management Shell (EMS) to find the recipients that should belong to a dynamic distribution group.\n\n## Get-ProcessDumps.ps1\n(**Windows**) Allows the user to pre-stage [CDB](https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/debuggers-in-the-debugging-tools-for-windows-package) on the system via the [Windows 10 SDK](https://developer.microsoft.com/en-US/windows/downloads/windows-10-sdk), take process dumps, and copy the dumps from one location to another via [robocopy](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy). If the process is managed code, you can validate the dump file[s] (before copying them off of the server) vua the [Debug-DumpFile](https://github.com/felsokning/CSharp/blob/master/Public.CSharp.Research/Public.Debugging.Research/DebugDumpFile.cs) command.\n\n## Get-UsernameFromSid.ps1\n(**Windows + Linux**) This script attempts to resolve the given SID to a username.\n\n## Get-WebResponse.ps1\n(**Windows + Linux**) This script attempts make a web request to the given URL and returns the web response from the request made.\n\n## Resolve-NetworkNeighbors.ps1\n(**Windows + Linux**) This script attempts to ping all hosts in the last octet (e.g.: 10.0.0.x) and, upon a response, later tries to resolve the IP addresses to hostnames in DNS.\n\n## Test-TcpConnectivity.ps1\n(**Windows + Linux**) This script attempts to make a TCP connection on the given host and port and returns a boolean determining whether that connection attempt was successful.\n\n## JITCSharp (**Windows**)\nThis folder contains PowerShell scripts that include C# source, which PowerShell JIT's into a type, when invoked by the \"Add-Type\" command. It's important to not that the type is only available within the app domain and once the PowerShell instance is closed, that type is disposed of via GC.\n\n### Get-FileVersion.ps1\nThis script attempts to find the version of the DLL or executable given by the user in the parameter passed at instantiation.\n\n### Get-SwedishWeekNumber.ps1\nThis script leverages InterOpServices to load a C++ DLL (see: Cpp\\UnmanagedDebugging\\) and call into it's main entry point. The C++ DLL then uses native (std) calls to obtain the date and return the week number to the caller.\n\n### Get-WaitChainAnalysis.ps1\nThis script leverages InterOpServices to load a C++ DLL (see: Cpp\\UnmanagedDebugging\\) and call into it's main entry point. The C++ DLL leverages the [Wait-Chain Traversal API](https://docs.microsoft.com/en-us/windows/desktop/Debug/wait-chain-traversal) to analyze the wait-chains of all of the threads owned by the process specified by the user in the passed parameter.\n\n### Get-WlanBssidInformation.ps1\nThis script leverages InteropServices to load a C++ DLL (see: Cpp\\WlanObtainBssids) and call into it's main entry point. The C++ DLL leverages the WlanGetNetworkBssList method in Windows API to return the list of BSSIDs and associated network SSIDs that are available to the wireless interface.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelsokning%2Fpowershell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelsokning%2Fpowershell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelsokning%2Fpowershell/lists"}