官术网_书友最值得收藏!

Using unicornscan for faster port scanning

Unicornscan is another scanner that works very fast, the core reason being the methodology the tool implements. It works with the technique of asynchronous stateless TCP scanning, wherein it makes all possible variations with the TCP flags and the UDP as well. In this recipe, we are going to look at how to make use of unicornscan and its advanced capabilities.

Getting ready

In order to get started with unicornscan, we will take an IP from our range of IPs and dig deeper into the tool's capabilities.

How to do it...

Let's work through the following steps:

  1. Open terminal and type the following command for a simple unicornscan:
    unicornscan <IP address>
    

    The output will be as shown in the following screenshot:

  2. If you would like to see the details of what it is doing while we execute the command, we can make use of the verbose script by using the following command:
    unicornscan -v <IP address>
    

    The output will be as shown in the following screenshot:

    We can see that it shows the ports it takes into consideration while it performs the scan.

  3. Let's say we want to do the same with UDP as well. Enter the following command in terminal:
    unicornscan -v -m U <IP address>
    

    The output will be as shown in the following screenshot:

  4. There are more options available. To check them, type the following command in terminal:
    Unicornscan -h
    

    The output will be as shown in the following screenshot:

How it works...

The commands mentioned in the recipe work as follows:

  • Unicornscan <IP address>: In this scenario, unicornscan runs the default TCP SYN scan (the params in unicornscan would be -mTS over the IP) and scans for the quick ports under the unicornscan.conf file located at /etc/Unicornscan/unicornscan.conf.
  • -v: The switch tells the scanner to enter verbose mode and provide more information as to what it is doing when it performs a scan.
  • -m U: The -m switch stands for the mode of scanning to be used. In this scenario, we used U, which means that the scan type is supposed to be UDP.

In this recipe, we have seen how unicornscan can be effectively used to get information about the open ports at lightning speed, and how we can toggle between different switches.

There's more...

There are many more switches available in unicornscan that can be used to improvise the scanning preference. It is recommended to try them out and get acquainted with them:

Unicornscan -h
主站蜘蛛池模板: 克山县| 攀枝花市| 拜城县| 厦门市| 和政县| 济源市| 阳高县| 海南省| 东明县| 依兰县| 任丘市| 永平县| 泾源县| 邮箱| 蒙山县| 夏津县| 鸡泽县| 家居| 绿春县| 许昌市| 中超| 武乡县| 潮州市| 翁牛特旗| 华蓥市| 长兴县| 丰县| 麦盖提县| 民乐县| 崇明县| 白城市| 平定县| 平凉市| 洞头县| 澄迈县| 中山市| 大冶市| 象州县| 马龙县| 阳曲县| 武平县|