Giter Site home page Giter Site logo

infosecmatter / minimalistic-offensive-security-tools Goto Github PK

View Code? Open in Web Editor NEW
525.0 26.0 116.0 69 KB

A repository of tools for pentesting of restricted and isolated environments.

License: GNU General Public License v3.0

PowerShell 100.00%
login-automation powershell brute-force penetration-testing windows login-brute-force-attacks penetration-testing-tools security-automation restricted-environments security-audit

minimalistic-offensive-security-tools's Introduction

Minimalistic TCP and UDP port scanners
(port-scan-tcp.ps1 | port-scan-udp.ps1)

A simple yet powerful TCP and UDP port scanners:

  • Detection of open, closed and filtered ports (both TCP and UDP)
  • Ability to scan a single host, network range or a list of hosts in a file
  • Adjustable timeout values for effective and reliable port scanning

Despite 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.

See the main article for detailed description: https://www.infosecmatter.com/port-scanner-in-powershell-tcp-udp-ps1/

Usage and examples

Import-Module .\port-scan-tcp.ps1
Import-Module .\port-scan-udp.ps1

# Usage:
port-scan-tcp <host(s)> <port(s)>
port-scan-udp <host(s)> <port(s)>

Port check of a single host for port tcp/80 (HTTP)

port-scan-tcp 192.168.205.15 80

Scanning a single host for common TCP ports

port-scan-tcp 10.10.0.1 (21,22,23,25,80,443,445,3389)

Scanning a list of hosts in a file for port tcp/22 (SSH)

port-scan-tcp (gc .\computers.txt) 22

Scanning a network range /24 for port tcp/445 (SMB)

0..255 | foreach { port-scan-tcp 192.168.204.$_ 445 }

Scanning a single host for common UDP services

test-port-udp 192.168.205.15 (53,161,623)

Scanning a network range /24 for port udp/161 (SNMP)

0..255 | foreach { test-port-udp 10.10.0.$_ 161 }

Note: The port-scan-tcp-compat.ps1 version is for older systems without having .NET 4.5 installed.

Screenshot

Scanning a network range for selected TCP ports

0..255 | foreach { port-scan-tcp 192.168.204.$_ (22,80,445) }

portscan-network-range-multiple-ports2

For more information, visit https://www.infosecmatter.com/port-scanner-in-powershell-tcp-udp-ps1/


Minimalistic Windows local account login bruteforcer (localbrute.ps1)

A simple local account login bruteforce tool for privilege escalation on Windows.

It takes a username and a wordlist (password list) as parameters and it tries to authenticate as the specified user account locally on the system.

The 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.

See the main article for detailed description: https://www.infosecmatter.com/windows-local-admin-brute-force-attack-tool-localbrute-ps1/

Usage and examples

Import-Module .\localbrute.ps1

# Usage:
localbrute <username> <path-to-wordlist> [debug]

# Example:
localbrute Administrator .\rockyou.txt

Note: The extra mini version does not keep any state file, otherwise the functionality is the same.

Screenshot

Brute force login attack on local Administrator account:

local-account-login-bruteforce-with-loginbrute-github

For more information, visit https://www.infosecmatter.com/windows-local-admin-brute-force-attack-tool-localbrute-ps1/


Minimalistic SMB login bruteforcer (smblogin.ps1)

A simple SMB login attack and password spraying tool.

It takes a list of targets and credentials (username and password) as parameters and it tries to authenticate against each target using the provided credentials.

Despite 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.

See the main article for detailed description: https://www.infosecmatter.com/smb-brute-force-attack-tool-in-powershell-smblogin-ps1/

Usage and examples

Import-Module .\smblogin.ps1

# Usage:
smblogin <hosts.txt> <username> <password>

# Examples:
smblogin hosts.txt .\Administrator P@ssw0rd
smblogin hosts.txt CORP\bkpadmin P@ssw0rd

Note: The extra mini version lacks check for port tcp/445, otherwise the functionality is the same.

Screenshot

SMB password spraying over the network:

smblogin-1-smb-login-attack-running

For more information, visit https://www.infosecmatter.com/smb-brute-force-attack-tool-in-powershell-smblogin-ps1/


Minimalistic AD login bruteforcer (adlogin.ps1)

A simple Active Directory login attack tool.

It takes list of usernames and a password and tries to login with it against specified AD domain using LDAP (directoryservices).

It 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).

See the main article for detailed description: https://www.infosecmatter.com/active-directory-brute-force-attack-tool-in-powershell-adlogin-ps1/

Usage and examples

Import-Module .\adlogin.ps1

# Usage:
adlogin <userlist.txt> <domain> <password>

# Example:
adlogin users.txt domain.com P@ssw0rd

# Check results (find valid credentials):
gc adlogin.*.txt | sls True

Screenshot

Password login attack against domain users:

adlogin-attack-01-started

For more information, visit https://www.infosecmatter.com/active-directory-brute-force-attack-tool-in-powershell-adlogin-ps1/

minimalistic-offensive-security-tools's People

Contributors

infosecmatter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.