Wednesday, April 22, 2015

How to save time doing passive discovery in Kali Linux using discover or backtrack script framework


   Passive discovery is an activity of looking and searching information about certain organization or a network.While Kali Linux has massive tools that we can utilize to do this, it might take us a lot of time in learning each tools.

  To solve this problem, we can use discover scripts or previously known as backtrack scripts in our Kali Linux system.The  framework was written by
Lee Baird .Discover script not only incorporate various kali tools but it is also easy to use .

   In this tutorial I'll share on how to setup the framework with  Kali Linux  and then I will share on how you can use this framework top ook for a network or any network or company passive information.

1)Installing Discover script

 1.1) Clone git to Kali Linux.

orca@omura:~$ cd /opt                                                                                 
orca@omura:/opt$ sudo git clone https://github.com/leebaird/discover.git   







1.2)Setup and install the necessary file for your system .

orca@omura:~$ cd /opt/discover                                                                             
orca@omura:/opt/discover$ sudo  ./setup.sh                                                           





 2 ) Using the framework for passive discovery

2.1) Go to  discover folder and execute the "discover.sh" file .

orca@omura:~$ cd /opt/discover                                                                             
orca@omura:/opt/discover$ sudo  ./setup.sh                                                           




2.2)The framework will load and you will be given a list of  task that can be executed .Use the number in the left for the selection.


Discover framework

2.3)In this example, I will run a script and get information base on domain , I choose "1" .



discover script selection

 2.4)Then Choose "2" and key in the domain name. in this example, i look for information for "www.google.com" .The framework will then run and execute the required tools for this task.



key in the domain url

2.5) Grab a cup of coffee and enjoy it while the scripts doing it's job. :-)


the system is working hard!


2.5) Upon completing,  the result and report will be prepared and you can view it using internet browser.



2.6) To access this file, from the terminal, go  to "/root/data/(domain name)/"

orca@omura:~$ cd /opt/discover                                                                             
orca@omura:/opt/discover$ firefox /root/data/www.google.com                            



Read Next : How to set static IP address and networking details in Kali Linux

Read Previous: How to solve database not connected,cache not built or using slow search in Kali Linux metasploit framework

Thursday, April 16, 2015

Linux Bash Shell Tutorial :How to save terminal session typescript or logfile in Linux




   Sometime as a beginner, intermediate or expert system admin, we need to keep a record on what we did to the system whenever we faced with system problems. One way  we can do this is by recording the Linux terminal session.

 We can save terminal session in Linux by using the built in "script" command.  To record any  terminal session type in script command and followed with the file name that you want.

orca@Positive-Space:~$ script log.01012015                                               

  I make it a habit to include the date in all my logs file name for future reference. Once you entered the command,  the terminal will save everything that you type in the terminal and will save it in current directory location. In this example, "log.01012015" file will be saved in  "user home" directory.

saving terminal session

To stop the terminal saving,you can use exit command .

orca@Positive-Space:~$ exit                                                                     

stopping terminal saving



The saved file can be viewed using any text file editor.