3 Enumeration
3 Enumeration
1 Enumeration
3.2 NetBIOS
3.3 SNMP
3.4 Conclusions
-a (adapter status) Lists the remote machine's name table given its name
-A (Adapter status) Lists the remote machine's name table given its IP
-c (cache) Lists NBT's cache of remote [machine] names and their
IP addresses
-n (names) Lists local NetBIOS names.
-r (resolved) Lists names resolved by broadcast and via WINS
-R (Reload) Purges and reloads the remote cache name table
-S (Sessions) Lists sessions table with the destination IP addresses
-s (sessions) Lists sessions table converting destination IP
addresses to computer NETBIOS names.
-RR (ReleaseRefresh) Sends Name Release packets to WINS and starts Refr
nbtscan -v [target_IP_Address]
nbtscan -v 192.168.99.0/24
where:
• -N instructs rpcclient not to ask for the password
• -U "" sets the network username (none in this case)
Once the command completes, the prompt changes and we
are able to interact with it. We can list all the available
commands with the help command.
Professional Penetration Testing 4.0 - eLearnSecurity © 2016
As you will see in the help output, there is a very long list of
commands we can run. Each option will return specific
information from the remote system. For example, we can
retrieve the users available on the machine using the
following command:
rpcclient $> enumdomusers
user:[Administrator] rid:[0x1f4]
user:[eLS] rid:[0x3eb]
user:[Frank] rid:[0x3ed]
user:[Guest] rid:[0x1f5]
user:[HelpAssistant] rid:[0x3e8]
user:[netadmin] rid:[0x3ec]
user:[SUPPORT_388945a0] rid:[0x3ea]
rpcclient $>
Brute force • Using a tool to guess the community strings used on a system to
achieve elevated privileges.
NetBIOS name
NetBIOS
resolution
RPCClient SNMPwalk
Seclists