Sunday, August 30, 2020

Nmap: Getting Started Guide


Nmap is a free utility tool for network discovery, port scanning and security auditing, even though we can use it for more than that but in this article we will learn how to do these three things with nmap.

The original author of nmap is Gordon Lyon (Fyodor). Nmap is licensed under GPL v2 and has available ports in many different languages. Nmap is available for Linux, Windows, and Mac OS X. You can download your copy of nmap from their website.

Lets get started with nmap.

When performing pentests we always look for networks we are going to attack. We need to identify live hosts on the network so that we can attack them. There are plenty of tools available for finding live hosts on a network but nmap is one of the best tools for doing this job.

Lets start with simple host (target) discovery scans i,e scans that will tell us which ip address is up on our target network. Those ip addresses which are up on our target network are the ones that are assigned to a device connected on our target network. Every device on the network is going to have a unique ip address.
To perform a simple host discovery scan we use the following command

nmap -v -sn 10.10.10.0/24




flags we used in the above command are
-v for verbose output
-sn to disable port scan (we don't want to scan for ports right now)

Following the flags is the ip address of the target network on which we want to look for live hosts. The /24 at the end of the ip address is the CIDR that specifies the subnet of the network on which we are looking for live hosts.

After running the above command you should get a list of live hosts on your target network.
If you just want to know the list of ip addresses your command is going to scan, you can use the -sL flag of the nmap like this.

nmap -sL 10.10.10.0/24

this command will simply output the list of ip addresses to scan.

We sometimes want to do dns resolution (resolving ip addresses to domain names) when performing our network scans and sometimes we don't want dns resolution. While performing a host discovery scan with nmap if we want to perform dns resolution we use -R flag in our command like this:

nmap -v -sn -R 10.10.10.0/24

And if we don't want to perform dns resolution of hosts during our scan we add the -n flag to our command like this:

nmap -v -sn -n 10.10.10.0/24

After we have discovered the hosts that are up on our target network, we usually put the ip addresses of these hosts into a file for further enumeration.

Next step in our enumeration would be to detect which operating system and which ports are running on these live hosts, for that we run this command:

nmap -O -v 10.10.10.119


here we use -O (capital o not zero) for operating system detection and by default nmap performs SYN Scan for port discovery. However nmap scans for 1000 ports only by default of a particular host.

To make nmap go over a list of ip addresses in a file we use -iL flag like this:

nmap -O -v -iL targetlist

where targetlist is the name of the file which contains ip addresses that we want to perform port scan on.

To make nmap scan all the ports of a target we use the -p flag like this:

nmap -p- -v 10.10.10.121

We can also specify a range of ports using the -p flag like this:

nmap -p1-500 -v 10.10.10.121

here 1-500 means scan all the ports from 1 to 500.

We can use a number of scan techniques to discover open ports on our network but I will only discuss some of them for brevity.

We can perform a TCP SYN scan using nmap with -sS flag like this:

nmap -sS -v 10.10.10.150

We have also flags for TCP connect and ACK scans which are -sT -sA

nmap -sT -v 10.10.10.150

nmap -sA -v 10.10.10.150

We can also perform UDP scan as well instead of TCP scan using -sU flag

nmap -sU -v 10.10.10.150

We can perform TCP Null, FIN, and Xmas scans using the flags -sN, -sF, -sX

nmap -sN -v 10.10.10.150

nmap -sF -v 10.10.10.150

nmap -sX -v 10.10.10.150

If you don't know what these scans are then please visit Port Scanning Techniques and Algorithms for explanation.

After discovering the open ports on our target host, we want to enumerate what services are running on those open ports. To enumerate services and versions information on open ports we use the -sV flag like this:

nmap -sV -v 10.10.10.118

This should give us information about what services are running on what ports and what versions of those services are running on the target host.

nmap has an interesting feature called NSE nmap scripting engine. It allows users to write their own scripts, using the Lua programming language, to automate a wide variety of networking tasks. nmap ships with a diverse set of scripts which are very helpful to enumerate a target. To use the nmap default set of scripts while enumerating the target, we use the -sC flag like this:

nmap -sC -sV -v 10.10.10.118

We can also save the results of our nmap scans to a file using the -o flag like this

nmap -sC -sV -v -oA defaultscan 10.10.10.119

here -oA tells the nmap to output results in the three major formats at once and defaultscan is the name of the file that will be prepended to all the three output files.

This is the end of this short tutorial see you next time.

References:
https://nmap.org/book/scan-methods-null-fin-xmas-scan.html
Continue reading

  1. Hacker Tools Apk
  2. Hacker Tools Hardware
  3. Growth Hacker Tools
  4. Ethical Hacker Tools
  5. Hacking Tools For Windows 7
  6. Hacking Tools Windows 10
  7. Hack App
  8. Usb Pentest Tools
  9. Pentest Tools For Windows
  10. Growth Hacker Tools
  11. Pentest Tools List
  12. Hacking Tools For Windows 7
  13. Hacker
  14. How To Install Pentest Tools In Ubuntu
  15. Hack Apps
  16. Hacking Tools Free Download
  17. Bluetooth Hacking Tools Kali
  18. Pentest Tools For Windows
  19. Hacker Tools 2019
  20. Pentest Tools Website
  21. Pentest Tools Find Subdomains
  22. Hack Tools
  23. Hacking Tools Online
  24. Pentest Tools Kali Linux
  25. Hack Tools Github
  26. Hack Tools Download
  27. New Hacker Tools
  28. Hack Tool Apk
  29. Hackrf Tools
  30. New Hack Tools
  31. Hack Tools Github
  32. Hack Tools For Pc
  33. Black Hat Hacker Tools
  34. Hacker Tools
  35. Hacker Tools Software
  36. Hack Tools
  37. Nsa Hacker Tools
  38. Pentest Tools Framework
  39. Hackers Toolbox
  40. Hacking Tools Name
  41. Hacker Tools For Windows
  42. Hacking Tools 2020
  43. Hacker Tools For Mac
  44. Hacker Tools Github
  45. Nsa Hack Tools
  46. Hacking Tools Software
  47. Pentest Tools Download
  48. Android Hack Tools Github
  49. Hacker Tools Apk Download
  50. Best Hacking Tools 2019
  51. Hacking Tools For Kali Linux
  52. Hacker Tools Online
  53. Pentest Recon Tools
  54. Hacker Search Tools
  55. Hacking Tools
  56. Hacker Tools Hardware
  57. Hacker Tools Free
  58. Hacking Apps
  59. Free Pentest Tools For Windows
  60. Pentest Tools For Mac
  61. Hacker Tool Kit
  62. Hacking Tools Windows 10
  63. Hacker Tools For Ios
  64. Hack Tools Online
  65. Bluetooth Hacking Tools Kali
  66. Hacking Tools Software
  67. Hack Tools For Pc
  68. Install Pentest Tools Ubuntu
  69. Hacker Tools Apk
  70. Hacking Tools Windows 10
  71. Hack Tools For Ubuntu
  72. Pentest Tools Alternative
  73. Tools Used For Hacking
  74. Hacker Tools Linux
  75. Hacker Hardware Tools
  76. Hacking Apps
  77. Pentest Tools Nmap
  78. Hack Tools Online
  79. Pentest Automation Tools
  80. Hacker Tools 2020
  81. Hack Rom Tools
  82. Computer Hacker
  83. Hacking Tools For Mac
  84. Hacker Tools Free
  85. Hacking Tools For Mac
  86. Hacker Hardware Tools
  87. Pentest Recon Tools
  88. Hacker Tools 2019
  89. Hack Tools For Games
  90. Hacker Hardware Tools
  91. Bluetooth Hacking Tools Kali
  92. Hacking Tools
  93. Best Hacking Tools 2020

Hackable - Secret Hacker | Vulnerable Web Application Server

Related news
  1. Tools 4 Hack
  2. Tools For Hacker
  3. Pentest Tools Android
  4. Hacking Tools Windows 10
  5. Top Pentest Tools
  6. Hackrf Tools
  7. Hacking Apps
  8. Hacker Tool Kit
  9. Pentest Tools Tcp Port Scanner
  10. Pentest Tools Android
  11. Hack Tools
  12. Hacking Tools For Kali Linux
  13. Pentest Tools Framework
  14. Nsa Hack Tools Download
  15. Pentest Tools Kali Linux
  16. New Hack Tools
  17. Bluetooth Hacking Tools Kali
  18. Best Pentesting Tools 2018
  19. Hack Tool Apk
  20. Usb Pentest Tools
  21. Nsa Hack Tools Download
  22. Hacking Tools Free Download
  23. World No 1 Hacker Software
  24. Hacking Tools Mac
  25. Hack Tools For Pc
  26. Android Hack Tools Github
  27. Nsa Hacker Tools
  28. Pentest Tools Free
  29. Hacker Tools Free Download
  30. Hacker Tools List
  31. Blackhat Hacker Tools
  32. Pentest Automation Tools
  33. Growth Hacker Tools
  34. Hacking Tools Windows 10
  35. Hacker Tools For Pc
  36. Hack Tools For Windows
  37. Hacking Tools Windows
  38. Hack Tools For Mac
  39. Hack Tools For Mac
  40. Hack Tools 2019
  41. Hack Tools For Mac
  42. Hacking Tools Free Download
  43. What Is Hacking Tools
  44. Pentest Tools Free
  45. Hack Website Online Tool
  46. Pentest Box Tools Download
  47. Hack Tool Apk
  48. Hacker Tools Free Download
  49. Pentest Tools Windows
  50. Pentest Tools Subdomain
  51. Hacking Tools For Windows 7
  52. Pentest Tools Online
  53. Hacker Tools Online
  54. Usb Pentest Tools
  55. Pentest Tools For Android
  56. Hacker Tools For Windows
  57. Hacking Tools Name

Conferencia: Bad Guys Never Sleep. Entrevista: Nueva Dimensión. Podcast: Ciberseguriad & Gaming.

Ayer hice dos publicaciones porque no quería dejar pasar más tiempo antes de dejar constancia que la estafa de los Bitcoins usando mi imagen era eso: una estafa. Así que hoy el post que os traigo es cortito, solo unos vídeos que he subido a mi canal Youtube para que los veáis si se os han escapado.

Figura 1: Conferencia: Bad Guys Never Sleep.
Entrevista: Nueva Dimensión. Podcast: Ciberseguriad & Gaming.

El primero de ellos ya lo saqué ayer, pero como no os había hablado de él, os lo vuelvo a dejar. Se trata de la conferencia que di en México vía VC y en la que hablaba de cómo los malos, con el objetivo de lucrarse utilizan cualquier técnica que sea necesaria - sencilla o compleja, nueva o antigua - para cometer sus delitos.


Figura 2: Bad Guys Never Sleep

Curiosamente, en esa charla hablaba de las estafa de los BitCoins usando la imagen de personas populares, que al cabo del tiempo han hecho con mi imagen. Así que ten mucho cuidado con tu dinero y no te creas todas las Fake News que veas por la red.

El segundo vídeo que so dejo es una entrevista que me hizo hace muy pocos días el periodista Juan Gómez para el programa de radio Nueva Dimensión donde hablamos de de hacking, de los riesgos de privacidad, la inteligencia artificial usada para suplantar personas, etcétera...


Figura 3: Entrevista a Chema Alonso en Nueva Dimensión

Mucho e lo que hablamos se basa en la conferencia que dicté como Keynote en el Security Innovation Day 2019 de ElevenPaths, que si no las visto la tienes aquí mismo. Mucho de lo que cuento en la entrevista lo puedes ver en directo con demos.


Figura 4: Keynote de Chema Alonso en Security Innovation Day 2019

Y por último, un nuevo Podcast de ElevenPaths Radio, en este caso con Josep Albors de ESET y Andrés Naranjo, aka TheXXLMan, hablando de Ciberseguridad & Gaming, que, estoy convencido, a los gamers os resultará más que interesante.


Figura 5: ElevenPaths Radio: Ciberseguridad & Gaming

Y nada más, si queréis contactar con alguno de nosotros, ya sabéis que gracias a ESET puedes conseguir 100 Tempos gratis en MyPublicInbox.

Saludos Malignos!

Autor: Chema Alonso (Contactar con Chema Alonso)

Related articles
  1. Usb Pentest Tools
  2. Pentest Tools Framework
  3. Hack Tools
  4. Hacking Tools For Windows
  5. Hack Tools Mac
  6. Hacker
  7. Hack Tools For Mac
  8. Hack Tools Github
  9. Blackhat Hacker Tools
  10. Nsa Hack Tools Download
  11. Hacker Tools Apk
  12. Hacking Tools 2020
  13. Hacking Tools For Windows 7
  14. Hak5 Tools
  15. Bluetooth Hacking Tools Kali
  16. Underground Hacker Sites
  17. How To Install Pentest Tools In Ubuntu
  18. Hack Tool Apk No Root
  19. Hacking Tools Free Download
  20. Hacker Tools Free
  21. Termux Hacking Tools 2019
  22. Hacker Tools 2020
  23. Hacker Tools List
  24. Hacker Tool Kit
  25. Hacking Tools For Mac
  26. Hacker Search Tools
  27. Underground Hacker Sites
  28. Tools 4 Hack
  29. How To Install Pentest Tools In Ubuntu
  30. Hacking Tools For Beginners
  31. Github Hacking Tools
  32. Hacker Tools Hardware
  33. Install Pentest Tools Ubuntu
  34. Pentest Tools Download
  35. Hacker Tools Mac
  36. Tools 4 Hack
  37. Hacking Tools Windows 10
  38. Hacker Tools 2019
  39. Hack Apps
  40. Hacking Tools 2020
  41. Pentest Automation Tools
  42. Pentest Tools Find Subdomains
  43. What Is Hacking Tools
  44. Pentest Tools Github
  45. Pentest Tools Framework
  46. Hacker Tools Apk Download
  47. Pentest Automation Tools
  48. Pentest Tools Open Source
  49. Hacker Tool Kit
  50. Pentest Tools Review
  51. Pentest Recon Tools
  52. Pentest Tools Open Source
  53. Pentest Reporting Tools
  54. Best Pentesting Tools 2018
  55. Hacker Tool Kit
  56. How To Hack
  57. Install Pentest Tools Ubuntu
  58. Pentest Box Tools Download
  59. Hacking Tools For Games
  60. Black Hat Hacker Tools
  61. Physical Pentest Tools
  62. Hacking Tools Pc
  63. Hacking Tools For Windows Free Download
  64. What Are Hacking Tools
  65. Pentest Reporting Tools
  66. Hacker Tools 2020
  67. Easy Hack Tools
  68. Hacking Tools For Mac
  69. Pentest Tools List
  70. Pentest Tools Find Subdomains
  71. Hacking Tools Windows 10
  72. Usb Pentest Tools
  73. Pentest Tools Url Fuzzer
  74. Hack Tools
  75. Hacking Tools Pc
  76. Hack Tool Apk
  77. Pentest Tools Subdomain
  78. Hacker Tools For Ios
  79. Hacking App
  80. Best Hacking Tools 2020
  81. Hacking Tools Free Download
  82. Pentest Tools Framework
  83. Pentest Tools Open Source
  84. Pentest Box Tools Download
  85. Nsa Hack Tools
  86. Hacking Apps
  87. Hacking Tools For Windows
  88. Hack Tools For Pc
  89. Hack App
  90. New Hacker Tools
  91. Hacker Tools For Ios
  92. Hacker Security Tools
  93. What Is Hacking Tools
  94. Hack Tools Online
  95. Termux Hacking Tools 2019
  96. Pentest Tools Bluekeep
  97. Hack And Tools
  98. Pentest Tools Windows
  99. Nsa Hack Tools
  100. Hacking Tools 2019
  101. Hacking Tools For Games
  102. Hacking Tools Online
  103. Hacking Tools For Kali Linux
  104. Pentest Tools Alternative
  105. Nsa Hacker Tools
  106. Hacking Tools Windows
  107. Pentest Tools Online
  108. Hacker Tools For Pc
  109. Hack Tools For Windows

Saturday, August 29, 2020

Wafw00F: The Web Application Firewall Fingerprinting Tool

How does wafw00f work?
   To do its magic, WAFW00F does the following steps:
  • Sends a normal HTTP request and analyses the response; this identifies a number of WAF solutions.
  • If that is not successful, wafw00f sends a number of (potentially malicious) HTTP requests and uses simple logic to deduce which WAF it is.
  • If that is also not successful, wafw00f analyses the responses previously returned and uses another simple algorithm to guess if a WAF or security solution is actively responding to wafw00f's attacks.

   For further details, check out the source code on EnableSecurity's main repository.

What does it detect? WAFW00F can detect a number of firewalls, a list of which is as below:

wafw00f's installation
   If you're using Debian-based distro, enter this commands to install wafw00f: sudo apt update && sudo apt install wafw00f

   But if you're using another Linux distro, enter these commands to install wafw00f:

How to use wafw00f?
   The basic usage is to pass an URL as an argument. Example:

Final Words to you
   Questions? Pull up an issue on GitHub Issue Tracker or contact to EnableSecurity.
   Pull requests, ideas and issues are highly welcome. If you wish to see how WAFW00F is being developed, check out the development board.

   Some useful links:

   Presently being developed and maintained by:

Related articles