Skip to main content

enum4linux: Notes

enum4linux.pl: written in Perl.

Source: https://github.com/CiscoCXSecurity/enum4linux

Get info

# apt info enum4linux -a
Package: enum4linux
Version: 0.8.9-1kali4
Priority: optional
Section: utils
Maintainer: Kali Developers <devel@kali.org>
Installed-Size: 55.3 kB
Depends: perl:any, samba, smbclient, polenum, ldap-utils
Homepage: https://labs.portcullis.co.uk/application/enum4linux/
Download-Size: 13.6 kB
APT-Sources: http://http.kali.org/kali kali-rolling/main amd64 Packages
Description: Enumerates info from Windows and Samba systems
 Enum4linux is a tool for enumerating information from Windows and Samba
 systems. It attempts to offer similar functionality to enum.exe formerly
 available from www.bindview.com.
 .
 It is written in PERL and is basically a wrapper around the Samba tools
 smbclient, rpclient, net and nmblookup. The samba package is therefore a
 dependency.
 .
 Features include:
 .
     RID Cycling (When RestrictAnonymous is set to 1 on Windows 2000)
     User Listing (When RestrictAnonymous is set to 0 on Windows 2000)
     Listing of Group Membership Information
     Share Enumeration
     Detecting if host is in a Workgroup or a Domain
     Identifying the remote Operating System
     Password Policy Retrieval (using polenum)

Package: enum4linux
Version: 0.8.9-1kali3
Status: install ok installed
Priority: optional
Section: utils
Maintainer: Kali Developers <devel@kali.org>
Installed-Size: 55.3 kB
Depends: perl:any, samba, smbclient, polenum, ldap-utils
Homepage: https://labs.portcullis.co.uk/application/enum4linux/
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: Enumerates info from Windows and Samba systems
 Enum4linux is a tool for enumerating information from Windows and Samba
 systems. It attempts to offer similar functionality to enum.exe formerly
 available from www.bindview.com.
 .
 It is written in PERL and is basically a wrapper around the Samba tools
 smbclient, rpclient, net and nmblookup. The samba package is therefore a
 dependency.
 .
 Features include:
 .
     RID Cycling (When RestrictAnonymous is set to 1 on Windows 2000)
     User Listing (When RestrictAnonymous is set to 0 on Windows 2000)
     Listing of Group Membership Information
     Share Enumeration
     Detecting if host is in a Workgroup or a Domain
     Identifying the remote Operating System
     Password Policy Retrieval (using polenum)

#

Install enum4linux

# apt install enum4linux
# which enum4linux
/usr/bin/enum4linux
# enum4linux -h
enum4linux v0.8.9 (http://labs.portcullis.co.uk/application/enum4linux/)
Copyright (C) 2011 Mark Lowe (mrl@portcullis-security.com)

Simple wrapper around the tools in the samba package to provide similar
functionality to enum.exe (formerly from www.bindview.com).  Some additional
features such as RID cycling have also been added for convenience.

Usage: ./enum4linux.pl [options] ip

Options are (like "enum"):
    -U        get userlist
    -M        get machine list*
    -S        get sharelist
    -P        get password policy information
    -G        get group and member list
    -d        be detailed, applies to -U and -S
    -u user   specify username to use (default "")
    -p pass   specify password to use (default "")

The following options from enum.exe aren't implemented: -L, -N, -D, -f

Practice

>>> THM | Network Services

>>> THM | 25 Days of Cyber Security - Day 10

>>> THM | Anonymous

>>> THM | Enterprise

Popular posts from this blog

Powershell: Enable Firewall Log

We sometimes need to enable Windows firewall's log to troubleshoot. Here is how.

Powershell: head and tail command

Use head or tail to skim the first or last 5 lines.

[Microsoft Outlook]: Set .pst and .ost files location with ForcePSTPath Registry Key

Set .pst and .ost files location with ForcePSTPath Registry Key The ForcePSTPath registry key is supported by Microsoft Outlook 2003 and later. In Microsoft Outlook 2003 and 2007, it applies to new profiles only. Microsoft Outlook 2013 and Outlook 2016 it applies to new accounts created in a profile. Microsoft Outlook 2013 saves .pst in   %userprofile%\Documents\Outlook Files folder by default. We can change that default setting by adding a new string registry key called ForcePSTPath and set the value to the folder that we want to save those files. Set Microsoft Outlook 2013 always save new .pst and .ost files to D:\Data\Mail folder OST file reached the maximum size The OST File Has Reached The Maximum Size