/NetSession

Enumerating session information established on a remote server.

Primary LanguageC#Apache License 2.0Apache-2.0

NetSession

License Release

Introduction

NetSession is a tool for enumerating remote service connection sessions using the NetSessionEnum function.

Features

  • Tiny binaries built on C# (≈7.50kb)
  • Simple and readable output format

Usage

NetSession [ServerName]

Example

Establish an IPC connection

net use \\192.168.1.111 /u:administrator password

Enumerate client sessions using NetSession

NetSession.exe 192.168.1.111

Output

[+] Enumerating Host: 192.168.1.111
Client              UserName            OpensNum  Time                IdleTime
-------------------------------------------------------------------------------
192.168.1.199       administrator       1         1m:46s              0s