{"id":13680211,"url":"https://github.com/InfosecMatter/Minimalistic-offensive-security-tools","last_synced_at":"2025-04-29T23:30:48.386Z","repository":{"id":37314332,"uuid":"262841920","full_name":"InfosecMatter/Minimalistic-offensive-security-tools","owner":"InfosecMatter","description":"A repository of tools for pentesting of restricted and isolated environments.","archived":false,"fork":false,"pushed_at":"2021-10-26T11:04:46.000Z","size":69,"stargazers_count":548,"open_issues_count":0,"forks_count":118,"subscribers_count":26,"default_branch":"master","last_synced_at":"2024-11-11T23:37:18.151Z","etag":null,"topics":["active-directory","brute-force","login-automation","login-brute-force-attacks","penetration-testing","penetration-testing-tools","port-scanner","port-scanning","portscan","portscanner","powershell","restricted-environments","security-audit","security-automation","smb","windows"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InfosecMatter.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":"2020-05-10T17:40:31.000Z","updated_at":"2024-11-06T13:37:10.000Z","dependencies_parsed_at":"2022-08-08T20:01:03.909Z","dependency_job_id":null,"html_url":"https://github.com/InfosecMatter/Minimalistic-offensive-security-tools","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/InfosecMatter%2FMinimalistic-offensive-security-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfosecMatter%2FMinimalistic-offensive-security-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfosecMatter%2FMinimalistic-offensive-security-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfosecMatter%2FMinimalistic-offensive-security-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InfosecMatter","download_url":"https://codeload.github.com/InfosecMatter/Minimalistic-offensive-security-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251599771,"owners_count":21615578,"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":["active-directory","brute-force","login-automation","login-brute-force-attacks","penetration-testing","penetration-testing-tools","port-scanner","port-scanning","portscan","portscanner","powershell","restricted-environments","security-audit","security-automation","smb","windows"],"created_at":"2024-08-02T13:01:14.318Z","updated_at":"2025-04-29T23:30:47.305Z","avatar_url":"https://github.com/InfosecMatter.png","language":"PowerShell","funding_links":[],"categories":["PowerShell","PowerShell (153)"],"sub_categories":[],"readme":"# Minimalistic TCP and UDP port scanners\u003cbr\u003e(port-scan-tcp.ps1 | port-scan-udp.ps1)\n\nA simple yet powerful TCP and UDP port scanners:\n* Detection of open, closed and filtered ports (both TCP and UDP)\n* Ability to scan a single host, network range or a list of hosts in a file\n* Adjustable timeout values for effective and reliable port scanning\n\nDespite the minimalistic design, both port scanners keep track of everything by using a simple state file (scanresults.txt) which is created in the current working directory. This allows the scanners to be easily resumed if they were interrupted or to skip already scanned hosts / ports.\n\nSee the main article for detailed description: https://www.infosecmatter.com/port-scanner-in-powershell-tcp-udp-ps1/\n\n## Usage and examples\n```\nImport-Module .\\port-scan-tcp.ps1\nImport-Module .\\port-scan-udp.ps1\n\n# Usage:\nport-scan-tcp \u003chost(s)\u003e \u003cport(s)\u003e\nport-scan-udp \u003chost(s)\u003e \u003cport(s)\u003e\n```\n\n**Port check of a single host for port tcp/80 (HTTP)**\n```\nport-scan-tcp 192.168.205.15 80\n```\n\n**Scanning a single host for common TCP ports**\n```\nport-scan-tcp 10.10.0.1 (21,22,23,25,80,443,445,3389)\n```\n\n**Scanning a list of hosts in a file for port tcp/22 (SSH)**\n```\nport-scan-tcp (gc .\\computers.txt) 22\n```\n\n**Scanning a network range /24 for port tcp/445 (SMB)**\n```\n0..255 | foreach { port-scan-tcp 192.168.204.$_ 445 }\n```\n\n**Scanning a single host for common UDP services**\n```\ntest-port-udp 192.168.205.15 (53,161,623)\n```\n\n**Scanning a network range /24 for port udp/161 (SNMP)**\n```\n0..255 | foreach { test-port-udp 10.10.0.$_ 161 }\n```\n\n**Note**: The port-scan-tcp-compat.ps1 version is for older systems without having .NET 4.5 installed.\n\n## Screenshot\n\n**Scanning a network range for selected TCP ports**\n```\n0..255 | foreach { port-scan-tcp 192.168.204.$_ (22,80,445) }\n```\n\n![portscan-network-range-multiple-ports2](https://user-images.githubusercontent.com/60963123/84473338-f0e90c00-ac99-11ea-937d-9593a0035fd7.png)\n\nFor more information, visit https://www.infosecmatter.com/port-scanner-in-powershell-tcp-udp-ps1/\n\n---\n\n# Minimalistic Windows local account login bruteforcer (localbrute.ps1)\n\nA simple local account login bruteforce tool for privilege escalation on Windows.\n\nIt takes a username and a wordlist (password list) as parameters and it tries to authenticate as the specified user account locally on the system.\n\nThe tool keeps track of the progress in a state file in the current working directory. This allows the tool to be resumed if it was interrupted or skip already compromised accounts.\n\nSee the main article for detailed description: https://www.infosecmatter.com/windows-local-admin-brute-force-attack-tool-localbrute-ps1/\n\n## Usage and examples\n```\nImport-Module .\\localbrute.ps1\n\n# Usage:\nlocalbrute \u003cusername\u003e \u003cpath-to-wordlist\u003e [debug]\n\n# Example:\nlocalbrute Administrator .\\rockyou.txt\n```\n\n**Note**: The extra mini version does not keep any state file, otherwise the functionality is the same.\n\n## Screenshot\n\nBrute force login attack on local Administrator account:\n\n![local-account-login-bruteforce-with-loginbrute-github](https://user-images.githubusercontent.com/60963123/98514680-480ffe80-2283-11eb-9b0d-29957382b448.png)\n\n\nFor more information, visit https://www.infosecmatter.com/windows-local-admin-brute-force-attack-tool-localbrute-ps1/\n\n---\n\n# Minimalistic SMB login bruteforcer (smblogin.ps1)\n\nA simple SMB login attack and password spraying tool.\n\nIt takes a list of targets and credentials (username and password) as parameters and it tries to authenticate against each target using the provided credentials.\n\nDespite its minimalistic design, the tool keeps track of everything by writing every result into a text file. This allows the tool to be easily resumed if it was interrupted or skip already compromised targets.\n\nSee the main article for detailed description: https://www.infosecmatter.com/smb-brute-force-attack-tool-in-powershell-smblogin-ps1/\n\n## Usage and examples\n```\nImport-Module .\\smblogin.ps1\n\n# Usage:\nsmblogin \u003chosts.txt\u003e \u003cusername\u003e \u003cpassword\u003e\n\n# Examples:\nsmblogin hosts.txt .\\Administrator P@ssw0rd\nsmblogin hosts.txt CORP\\bkpadmin P@ssw0rd\n```\n\n**Note**: The extra mini version lacks check for port tcp/445, otherwise the functionality is the same.\n\n## Screenshot\n\nSMB password spraying over the network:\n\n![smblogin-1-smb-login-attack-running](https://user-images.githubusercontent.com/60963123/81509090-4b005580-9319-11ea-9706-6cc5d0b60f9a.png)\n\nFor more information, visit https://www.infosecmatter.com/smb-brute-force-attack-tool-in-powershell-smblogin-ps1/\n\n---\n\n# Minimalistic AD login bruteforcer (adlogin.ps1)\n\nA simple Active Directory login attack tool.\n\nIt takes list of usernames and a password and tries to login with it against specified AD domain using LDAP (directoryservices).\n\nIt also retains results in a file in the current working directory, so it can be interrupted and resumed (it will not try to login again if the given user has already been compromised or tried with the given password).\n\nSee the main article for detailed description: https://www.infosecmatter.com/active-directory-brute-force-attack-tool-in-powershell-adlogin-ps1/\n\n## Usage and examples\n\n```\nImport-Module .\\adlogin.ps1\n\n# Usage:\nadlogin \u003cuserlist.txt\u003e \u003cdomain\u003e \u003cpassword\u003e\n\n# Example:\nadlogin users.txt domain.com P@ssw0rd\n\n# Check results (find valid credentials):\ngc adlogin.*.txt | sls True\n```\n\n## Screenshot\n\nPassword login attack against domain users:\n\n![adlogin-attack-01-started](https://user-images.githubusercontent.com/60963123/81509021-cd3c4a00-9318-11ea-919f-9c6fd7ccfaed.jpg)\n\nFor more information, visit https://www.infosecmatter.com/active-directory-brute-force-attack-tool-in-powershell-adlogin-ps1/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FInfosecMatter%2FMinimalistic-offensive-security-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FInfosecMatter%2FMinimalistic-offensive-security-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FInfosecMatter%2FMinimalistic-offensive-security-tools/lists"}