Hacking Tools

LogHunter – A Revolutionary Tool For Session Detection via Event Logs

Opsec tool for finding user sessions by analyzing event log files through RPC (MS-EVEN).

I was once doing a very complex project where there were over 1000 hosts in the infrastructure.

I needed to detect the user session. Running Invoke-UserHunter would have been a huge mistake.

That’s when I came up with the idea that we could extract all the information we needed from Event Logs.

That’s how the LogHunter tool came into being. The tool is able to extract the following events via MS-EVEN protocol: 4624: “An account was successfully logged on.”, 4768: “A Kerberos authentication ticket (TGT) was requested.”, 4672: “Special privileges assigned to new logon.”, 4769: “A Kerberos service ticket (TGS) was requested.”.

These events will give us information about which computer the target user is on. Then hijack that computer and take control of the user.

Requirements

You only have to install impacket. Other modules (e.g. logging, argparse, sys, struct, Queue, Thread, datetime) are standard Python libraries and are installed with Python.

pip install impacket

Usage

See demo video at the end of the README.md 🙂

To use the tool, all you need to do is pass credentials as you would to a regular impacket tool:

python LogHunter.py OFFICE/Administrator:lolkekcheb123!@dc01.office.pwn

After that, the tool will start receiving events from the target computer (in this case, from dc01.office.pwn), writing them to the events.log file (can be overridden with the -outfile parameter).

You can then search for the file using find.sh. You can search by user name, by EventID, or by computer name – whatever you prefer.

./find.sh -file events.log -searchkeyword Administrator
Varshini

Tamil has a great interest in the fields of Cyber Security, OSINT, and CTF projects. Currently, he is deeply involved in researching and publishing various security tools with Kali Linux Tutorials, which is quite fascinating.

Recent Posts

Kali Linux 2024.4 Released, What’s New?

Kali Linux 2024.4, the final release of 2024, brings a wide range of updates and…

2 days ago

Lifetime-Amsi-EtwPatch : Disabling PowerShell’s AMSI And ETW Protections

This Go program applies a lifetime patch to PowerShell to disable ETW (Event Tracing for…

2 days ago

GPOHunter – Active Directory Group Policy Security Analyzer

GPOHunter is a comprehensive tool designed to analyze and identify security misconfigurations in Active Directory…

4 days ago

2024 MITRE ATT&CK Evaluation Results – Cynet Became a Leader With 100% Detection & Protection

Across small-to-medium enterprises (SMEs) and managed service providers (MSPs), the top priority for cybersecurity leaders…

6 days ago

SecHub : Streamlining Security Across Software Development Lifecycles

The free and open-source security platform SecHub, provides a central API to test software with…

1 week ago

Hawker : The Comprehensive OSINT Toolkit For Cybersecurity Professionals

Don't worry if there are any bugs in the tool, we will try to fix…

1 week ago