This is the first part continuing from installation and setup of a Virtual Machine for beginners.
Getting comfortable with the tools inside Kali Linux.
Here we will be covering 01 - Information Gathering. Linked at the bottom when complete, will be 02 - Vulnerability Analysis.
![[Image: WlHmzDW.png]](https://i.imgur.com/WlHmzDW.png)
At any time if you wish to find more information about a tool you can type
man is short for manual.
Getting comfortable with the tools inside Kali Linux.
Here we will be covering 01 - Information Gathering. Linked at the bottom when complete, will be 02 - Vulnerability Analysis.
![[Image: WlHmzDW.png]](https://i.imgur.com/WlHmzDW.png)
At any time if you wish to find more information about a tool you can type
Code
man toolnamedmitry - Information about websites/servers/subdomains/website emails
Spoiler (Click to View)To run dmitry you can click "Applications", Mouse over "Information Gathering" and choose dmitry. You may also open a terminal and type
which will give you the output:
![[Image: JmJooqy.png]](https://i.imgur.com/JmJooqy.png)
dmitry is used to gather information from a hostname or IP address, it can try find email addresses, subdomains and will do port scans of the host.
There are better ways of gather data than dmitry however we will still cover it as it was one of the best tools of its time.
The options fall into 2 categories. Passive and active (with of course -o being output to save to a text file as an output option)
We will be covering the passive options:
-i: Whois lookup on the IP address of a host.
-w: Whois lookup on the domain name of a host.
-n: Retrieve NetCraft.com information on a host.
-s: Search for subdomains.
-e: Search for email addresses.
An example command to look up the whois information on the IP of the website.
Whereas this example would do a lookup on the hostname imgur.com instead.
If we wish to check NetCraft.com - don't bother using the -n switch as you can simply go to their website and it's much easier.
If we wish to find subdomains such as prefix.imgur.com
The output shows us:
A good way to combine these commands would be something like
This will create a text file called imgur.com.txt while also scanning the URL and outputting all the results to it.
That's pretty much all we will cover with dmitry.
dnmap-client + dnmap-server
Spoiler (Click to View)[spoiler]To run either dnmap-client or dnmap-server you can click "Applications", Mouse over "Information Gathering" and choose each. You may also open a terminal and type
which will give you the output:
Or
which will give you the output:
For now I will be leaving this as is as there is so much to cover in this section. You can read these commands and figure out how to work it by trial and error + reading the manual in the mean time.
ike-scan - Discover and fingerprint IKE hosts (IPsec VPN servers)
Spoiler (Click to View)To run ike-scan you can click "Applications", Mouse over "Information Gathering" and choose ike-scan. You may also open a terminal and type
which will give you the output:
maltego
Spoiler (Click to View)To run maltego you can click "Applications", Mouse over "Information Gathering" and choose maltego. You may also open a terminal and type
netdiscover - an active/passive arp reconnaissance tool.
Spoiler (Click to View)To run netdiscover you can click "Applications", Mouse over "Information Gathering" and choose netdiscover. You may also open a terminal and type
nmap - Network exploration tool and security / port scanner
Spoiler (Click to View)To run nmap you can click "Applications", Mouse over "Information Gathering" and choose nmap. You may also open a terminal and type
There is so much to cover here so I will simply edit this later with more information
p0f - identify remote systems passively
Spoiler (Click to View)To run p0f you can click "Applications", Mouse over "Information Gathering" and choose p0f. You may also open a terminal and type
![[Image: zcSMl2g.png]](https://i.imgur.com/zcSMl2g.png)
recon-ng - Web Reconnaissance framework
Spoiler (Click to View)To run recon-ng you can click "Applications", Mouse over "Information Gathering" and choose recon-ng. You may also open a terminal and type
![[Image: n2ix66e.png]](https://i.imgur.com/n2ix66e.png)
sparta - Find and attack devices locally and over the net/Bruteforce xmpp/ssh/teamspeak and more
Spoiler (Click to View)To run sparta you can click "Applications", Mouse over "Information Gathering" and choose sparta. You may also open a terminal and type
![[Image: sOBJJVa.png]](https://i.imgur.com/sOBJJVa.png)
zenmap - Graphical Nmap frontend and results viewer
Spoiler (Click to View)To run zenmap you can click "Applications", Mouse over "Information Gathering" and choose zenmap. You may also open a terminal and type
![[Image: pBu36Hr.png]](https://i.imgur.com/pBu36Hr.png)
Spoiler (Click to View)To run dmitry you can click "Applications", Mouse over "Information Gathering" and choose dmitry. You may also open a terminal and type
Code
dmitry![[Image: JmJooqy.png]](https://i.imgur.com/JmJooqy.png)
dmitry is used to gather information from a hostname or IP address, it can try find email addresses, subdomains and will do port scans of the host.
There are better ways of gather data than dmitry however we will still cover it as it was one of the best tools of its time.
The options fall into 2 categories. Passive and active (with of course -o being output to save to a text file as an output option)
We will be covering the passive options:
-i: Whois lookup on the IP address of a host.
-w: Whois lookup on the domain name of a host.
-n: Retrieve NetCraft.com information on a host.
-s: Search for subdomains.
-e: Search for email addresses.
An example command to look up the whois information on the IP of the website.
Code
dmitry -i imgur.comWhereas this example would do a lookup on the hostname imgur.com instead.
Code
dmitry -w imgur.comIf we wish to check NetCraft.com - don't bother using the -n switch as you can simply go to their website and it's much easier.
If we wish to find subdomains such as prefix.imgur.com
Code
dmitry -s imgur.com- stack.imgur.com
- apidocs.imgur.com
- i.imgur.com
- store.imgur.com
- api.imgur.com
- status.imgur.com
- munity.imgur.com
- community.imgur.com
- help.imgur.com
Code
dmitry -e imgur.comA good way to combine these commands would be something like
Code
dmitry -wnseo imgur.comThat's pretty much all we will cover with dmitry.
dnmap-client + dnmap-server
Spoiler (Click to View)[spoiler]To run either dnmap-client or dnmap-server you can click "Applications", Mouse over "Information Gathering" and choose each. You may also open a terminal and type
Code
dnmap_clientCode
+----------------------------------------------------------------------+
| dnmap Client Version 0.6 |
| This program is free software; you can redistribute it and/or modify |
| it under the terms of the GNU General Public License as published by |
| the Free Software Foundation; either version 2 of the License, or |
| (at your option) any later version. |
| |
| Author: Garcia Sebastian, [email protected] |
| www.mateslab.com.ar |
+----------------------------------------------------------------------+
usage: /usr/bin/dnmap_client <options>
options:
-s, --server-ip IP address of dnmap server.
-p, --server-port Port of dnmap server. Dnmap port defaults to 46001
-a, --alias Your name alias so we can give credit to you for your help. Optional
-d, --debug Debuging.
-m, --max-rate Force nmaps commands to use at most this rate. Useful to slow nmap down. Adds the --max-rate parameter.Or
Code
dnmap_serverCode
+----------------------------------------------------------------------+
| dnmap_server Version 0.6 |
| This program is free software; you can redistribute it and/or modify |
| it under the terms of the GNU General Public License as published by |
| the Free Software Foundation; either version 2 of the License, or |
| (at your option) any later version. |
| |
| Author: Garcia Sebastian, [email protected] |
| www.mateslab.com.ar |
+----------------------------------------------------------------------+
usage: /usr/bin/dnmap_server <options>
options:
-f, --nmap-commands Nmap commands file
-p, --port TCP port where we listen for connections.
-L, --log-file Log file. Defaults to /var/log/dnmap_server.conf.
-l, --log-level Log level. Defaults to info.
-v, --verbose_level Verbose level. Give a number between 1 and 5. Defaults to 1. Level 0 means be quiet.
-t, --client-timeout How many time should we wait before marking a client Offline. We still remember its values just in case it cames back.
-s, --sort Field to sort the statical value. You can choose from: Alias, #Commands, UpTime, RunCmdXMin, AvrCmdXMin, Status
-P, --pem-file pem file to use for TLS connection. By default we use the server.pem file provided with the server in the current directory.
dnmap_server uses a '<nmap-commands-file-name>.dnmaptrace' file to know where it must continue reading the nmap commands file. If you want to start over again,
just delete the '<nmap-commands-file-name>.dnmaptrace' fileFor now I will be leaving this as is as there is so much to cover in this section. You can read these commands and figure out how to work it by trial and error + reading the manual in the mean time.
ike-scan - Discover and fingerprint IKE hosts (IPsec VPN servers)
Spoiler (Click to View)To run ike-scan you can click "Applications", Mouse over "Information Gathering" and choose ike-scan. You may also open a terminal and type
Code
ike-scanCode
Usage: ike-scan [options] [hosts...]
Target hosts must be specified on the command line unless the --file option is
given, in which case the targets are read from the specified file instead.
The target hosts can be specified as IP addresses or hostnames. You can also
specify the target as IPnetwork/bits (e.g. 192.168.1.0/24) to specify all hosts
in the given network (network and broadcast addresses included), or
IPstart-IPend (e.g. 192.168.1.3-192.168.1.27) to specify all hosts in the
inclusive range, or IPnetwork:NetMask (e.g. 192.168.1.0:255.255.255.0) to
specify all hosts in the given network and mask.
These different options for specifying target hosts may be used both on the
command line, and also in the file specified with the --file option.
use "ike-scan --help" for detailed information on the available options.
Report bugs or send suggestions to [email protected]
See the ike-scan homepage at http://www.nta-monitor.com/tools/ike-scan/maltego
Spoiler (Click to View)To run maltego you can click "Applications", Mouse over "Information Gathering" and choose maltego. You may also open a terminal and type
Code
maltegonetdiscover - an active/passive arp reconnaissance tool.
Spoiler (Click to View)To run netdiscover you can click "Applications", Mouse over "Information Gathering" and choose netdiscover. You may also open a terminal and type
Code
netdiscoverCode
Netdiscover 0.3-pre-beta7 [Active/passive arp reconnaissance tool]
Written by: Jaime Penalba <[email protected]>
Usage: netdiscover [-i device] [-r range | -l file | -p] [-m file] [-s time] [-n node] [-c count] [-f] [-d] [-S] [-P] [-c]
-i device: your network device
-r range: scan a given range instead of auto scan. 192.168.6.0/24,/16,/8
-l file: scan the list of ranges contained into the given file
-p passive mode: do not send anything, only sniff
-m file: scan the list of known MACs and host names
-F filter: Customize pcap filter expression (default: "arp")
-s time: time to sleep between each arp request (milliseconds)
-n node: last ip octet used for scanning (from 2 to 253)
-c count: number of times to send each arp reques (for nets with packet loss)
-f enable fastmode scan, saves a lot of time, recommended for auto
-d ignore home config files for autoscan and fast mode
-S enable sleep time supression between each request (hardcore mode)
-P print results in a format suitable for parsing by another program
-N Do not print header. Only valid when -P is enabled.
-L in parsable output mode (-P), continue listening after the active scan is completed
If -r, -l or -p are not enabled, netdiscover will scan for common lan addresses.nmap - Network exploration tool and security / port scanner
Spoiler (Click to View)To run nmap you can click "Applications", Mouse over "Information Gathering" and choose nmap. You may also open a terminal and type
Code
nmapp0f - identify remote systems passively
Spoiler (Click to View)To run p0f you can click "Applications", Mouse over "Information Gathering" and choose p0f. You may also open a terminal and type
Code
p0f![[Image: zcSMl2g.png]](https://i.imgur.com/zcSMl2g.png)
recon-ng - Web Reconnaissance framework
Spoiler (Click to View)To run recon-ng you can click "Applications", Mouse over "Information Gathering" and choose recon-ng. You may also open a terminal and type
Code
recon-ng![[Image: n2ix66e.png]](https://i.imgur.com/n2ix66e.png)
sparta - Find and attack devices locally and over the net/Bruteforce xmpp/ssh/teamspeak and more
Spoiler (Click to View)To run sparta you can click "Applications", Mouse over "Information Gathering" and choose sparta. You may also open a terminal and type
Code
sparta![[Image: sOBJJVa.png]](https://i.imgur.com/sOBJJVa.png)
zenmap - Graphical Nmap frontend and results viewer
Spoiler (Click to View)To run zenmap you can click "Applications", Mouse over "Information Gathering" and choose zenmap. You may also open a terminal and type
Code
zenmap![[Image: pBu36Hr.png]](https://i.imgur.com/pBu36Hr.png)


