An open API service indexing awesome lists of open source software.

https://github.com/gunzf0x/logonscriptsscanner

Tool designed to detect Logon Scripts that could lead to Lateral Windows Movement
https://github.com/gunzf0x/logonscriptsscanner

bash bash-script ethical-hacking ethical-hacking-tools logon-script penetration-testing pentesting pentesting-tool pentesting-tools red-team windows windows-lateral-movement

Last synced: about 2 months ago
JSON representation

Tool designed to detect Logon Scripts that could lead to Lateral Windows Movement

Awesome Lists containing this project

README

          

# LogonScriptsScanner

A simple tool to analyze `NETLOGON` share and check if it can be abused to move laterally on Windows machines.

---

## Pre-requisites
1. We need a valid user of an Active Directory domain and its credentials (password in plain text).
2. This tools needs 4 other tools to work:

- `bloodyAD`
- `rpcclient`
- `smbcacls`
- `smbclient`

To install `bloodyAD` just execute in a terminal:

```shell-session
❯ sudo apt update -y
❯ sudo apt-get install libkrb5-dev -y
❯ pip3 install bloodyAD
```
or, under your own risk,
```shell-session
❯ pip3 install bloodyAD --break-system-packages
```

To install `rpcclient`, `smbcacls` and `smbclient` execute in a terminal:
```shell-session
sudo apt update -y && sudo apt install smbclient -y
```

## Usage
Use the credentials of a valid user in the domain to extract info about potential Logon Scripts that could lead to lateral movement:
```shell-session
❯ ./LogonScriptScanner.sh
```

For example:
```shell-session
❯ ./LogonScriptScanner.sh julio 'SecurePassJul!08' inlanefreight.local 10.129.71.7
```

![Example 1](images/LogonScriptsScanner_1.png)

![Example 2](images/LogonScriptsScanner_2.png)

---

## Disclaimer
Use this tool for ethical purposes only (: