Best Telegram Programming Groups For Coders &Developers   It Wasn’t Me - Secure Your Account   Mr.Robot All Seasons 1,2,3 Full | Free Torrent Download   Mr.Robot All Seasons 1,2,3,4 Full | Watch Online [FREE]   5 Tips Will Keep You Safe During Christmas Holiday’s Online Shopping   You Can Get All Adobe Apps For $30 a Month Right Now   How To Wipe An iPhone Clean (ERASE) Before Selling?   Programming Languages To Learn To Be An Expert Hacker!   Cybercriminals exchange tips on underground forums about avoiding arrests   A comprehensive look into emerging Signal encrypted messaging application   A Detailed Comparison of WhatsApp, Telegram & Signal   How Telegram End-to-end Encryption Works To Provide Security ?   Flubot Malware is Spreading Quickly Through Android Devices   WhatsApp End-to-End Encryption and its Privacy Importance - Alternatives,Signal & Telegram   What is Credit Card Skimming And How To Protect Yourself From it ?   Where to hire react programmer and 3 essential skills to look for   Top 8 Basic Google Search Dorks [Live Examples]   [Penetration Testing] Top 70 Most Interview Questions   Why VPN Is Necessary ? [Detailed Guide]   Top 10 Dangerous Viruses Of All Times   List Of Common HTTP Error Status Codes   “Hello World!” Program In Different Programming Languages   100 Basic Computer Related G.K. Questions   Email Security - Tips And Tricks   Fonts Hub Collection (Free Design Resources)   Top 8 Softwares Free Download - No Credit Card Needed [2022 Update]   Shortcomings That Leads An Entrepreneur Towards Failure   5 Basic Steps To Protect Your Personal Data Online   What is Intel SGX and What are the Benefits ?   15 Things You Need to Know About Maintaining The Logs   How to think like a programmer - lessons in problem solving   How To Get Voice Like Anonymous Voice   Life Story of Microsoft Founder Bill Gates - Documentary   Own Private Search Engine in Linux Will Save Our Privacy   Best Etcher alternatives to Create Bootable USB   Music For Programming - Coding Music / Hacking Music   School Management Software v3.1 Premium + Crack   JavaFX Chat Client/Server + Source Code   Top 25 Keyword Research Tools [Search Engine Optimization]   A Quick SEO Checklist - 2023 Update   Online Domain Authority (DA) Rank Checker Websites   33 Things In SEO For Which Google Will Give Your Student Blog High Positions   How to Close the Site from indexing using robots.txt   10 SEO Tools all Small Businesses Need in 2023   Earth Rise Application + Code   Animation along a path + Code   Zen Pong Game in Java Language + Code   Simple Flying Bird Game + Code Files   Game Snake Simple + Code Files   The Space 'Sun & Earth' | HTML,CSS,JavaScript   File System in Web (Explorer in Windows and Finder in OSX)   Admin Dashboard Template built using Bootstrap + Code   Website Template For Admin Dashboard + Code   Youtube Playlist Downloader Script   How To Create A Stopwatch In Python   Python TicTacToe with Tk and minimax AI   Deskreen turns any device with a web browser into a secondary screen for your computer   Download Algorithms Book | Dummies Store   OSI Model And TCP/IP Model   How to Fix SSH Failed Permission Denied (publickey,gssapi-keyex,gssapi-with-mic)   What Is Load Balancing? Definition and How It Works   How to Setup FTP Server on Your Raspberry Pi   Download Windows 10 Lite Edition x64 | Direct Link   How To Recover Permanently Deleted Files In Windows 10 ?   How to make Fake Error Message Script in Windows   20 Essential Windows keyboard Shortcuts that will make you forget your mouse   How To Fix The DLL Missing Error In Windows 7 ?   Create Hotspot on Windows 10 in 6 steps   Download Microsoft Office Professional Plus 2016   Download DriverPack Solution Offline | Full   How To Create Simple And Password Protected ZIP File in Linux   2 Ways To Save Terminal Output of a Command in Linux   6 Best Tools to Monitor Disk IO Performance in Linux   Top 15 Best Websites (Blogs) to Learn Linux Online   How to Delete files older than 30 Days in Linux   What is the difference between apt and apt-get command   Fail2Ban Installation & Setup: Ubuntu, CentOS, Fedora & Debian   How to List Running Processes in Linux   How to Use the who Command in Linux with Examples   FOREMOST - Recover Permanently Deleted Files Easily in Kali Linux   Funny Linux Commands to Try   Command line interface guidelines, to help you write better command-line programs ...   How to Install Google Chrome Web Browser on Ubuntu 20.04   Learn Adobe Photoshop | 33 Episode Course   Window Privilege Escalation: Automated Script   Linux Privilege Escalation: Automated Script   How To Retrieve & Decrypt Stored Passwords in Firefox & Chrome Remotely   ACLight: An Advanced Privileged Account Discovery Tool   How to change Lock Screen Background on Kali Linux XFCE   Best 20 Kali Linux Tools For Hacking And Penetration Testing   How to Run Windows Application and Games on Kali Linux   How to run C and C++ programs in Kali Linux   Control Kali Linux PC From any Mobile or Tablet   How to Enable root User Account in Kali Linux   How to Configure Static IP address in Kali Linux   Bash vs ZSH in Kali Linux   [Solved] E: Unable to locate package in Kali Linux   Hosting a Local Website with Domain Name on Kali Linux over WiFi   Install Docker in Kali Linux and Run Other OS   How to Install Kali Linux | A Total Guide to Install Kali Linux   NetHunter Rootless - Official Kali NetHunter for non rooted phones   How to set up own VPN server in 10 minutes on Kali Linux using OpenVPN   Configuring The ProxyChains   Install Python3 in Kali Linux   TempoMail - Command Line Temporary Email in Linux   NIPE - Fully Anonymize Total Kali Linux System   How to Install Google Chrome & Chromium on Kali Linux [Official Method]   15 Best Laptops For Kali Linux & Cyber Security - Check This Before Buy   Volatolity - Digial Forensic Testing of RAM on Kali Linux   Limit the Internet Speed of LAN Users [Evil Limiter]   Find Virtual Machine IP Through Kali Linux - 3 Methods   Privilege Escalation with PowerShell Empire and SETOOLKIT [Kali Linux]   How to use kill, pkill and killall Commands to Kill any Linux Process   20 Useful Tar Commands For Extraction and Compression   Create a Fake AP with DNSMASQ and HOSTAPD [Kali Linux]   How to Fully Anonymize Your Linux System with Tor using Nipe   Hack Windows/Linux using ARCANUS Framework – 100% FUD   Simple and Target Mac Flooding - Kali Linux   Get Free Kali Linux on AWS with Public IP - Real Time Penetration Testing   What’s the difference Between Tails and Tor browser?   Does Tor Hide you From Your ISP? Should I surf internet using Tor ?   Wireshark for Pentester: Decrypting RDP Traffic   Exploit Wi-Fi Vulnerabilities with Routersploit on Termux and Linux   Man in The Middle Attack & How To Prevent it   Masscan - 1000 Times Faster Than NMAP   Wireshark - Shark in Wires | Network Protocol Analyzer in Kali Linux   Wifite - Easy Automated Wireless Attack   WiFi-Pumpkin 3 - Dangerous Access Point   Evil Twin Attack with DNSMASQ - Wireless WPA2-PSK Cracking   Sniffing with Rogue Access Point [DNSMASQ and TCPFLOW]   Hack Wi-Fi Settings of Windows Machine Remotely [After Meterpreter]   Wi-Fi deauthentication attack against 802.11 protocol   Bypass Hidden SSID in a Wireless Network [Full Proof Method]   Crack WPA/WPA2-PSK using Aircrack-ng and Hashcat   Crack WPA2-PSK Wi-Fi with automated python script - FLUXION PART 1   Set Default Version of Python : [SOLVED] update-alternatives: error: no alternatives for p   Python Scripting: Information Gathering and Automating Ethical Hacking   15 Essential Meterpreter Commands Everyone Should Know   Find Vulnerable Webcams with Shodan [Metasploit Framework]   TCP & SYN Scanning with Metasploit Framework without NMAP   Meterpreter Useful Top 60 Commands List   The Web Application Hacker's Handbook 2   Hacking GPS Book   MadCam - Termux Hack Front camera by Sending link   How to Download Files In Termux   IPdrone Termux - Find Location of Person it IP in Termux   ReconDog Termux - Best Reconnaissance Tool For Termux   Termux SSH: Use Termux in Windows Using SSH Server   How to Install and Use Fsociety-Tool In Termux   Termux-YTD : Download Youtube Videos with Termux   Use CMatrix Package Like a Pro   L3MON - Access Android Devices Remotely   Hack Android using Metasploit over LAN/WAN   Ghost Framework - Control Android Devices Remotely   Top 10 Vulnerable Android Applications [Penetration Testing]   Find Hidden Subdomains on Any Website with Subfinder   Blind Sql Injection with Regular Expressions Attack   Useful Google Dorks For Bug Bounty Hunters   HTML5 Security CheatSheet - What your browser does when you look away...   30,000 Sites Is In RISK, The Plus Addons For Elementor WordPress Plugin Hacked   WPScan - Find Vulnerabilities in WordPress Websites on Kali Linux   Wapiti - Automated Vulnerability Scanner   Generate 100% FUD Backdoor with TheFatRat - Windows 10 Exploitation   TheFatRat hacking tool to create undetectable backdoors   How to Make a Keylogger in Python + Code   How to create a keylogger in PowerShell ?   Backdoor Program using Python (Remote Access Explain)   Man in the Middle Attack with Websploit Framework   Hack Windows 10 Remotely over WAN with Metasploit [No Port Forwarding]   15 Powerful Gadgets For Ethical Hackers | Hardware Tools for Hackers   Find Vulnerabilities using NMAP Scripts (NSE)   Free Vulnerability Database And Resources   Firefox Browser Vulnerable to (MITM) Man-in-the-Middle Attack   Find Vulnerabilities in Military Networks By Participating Hack The Army Bug Bounty Progr. 


What is a Port Scan ?

A port scan is one of the fundamental technique that is used to identify the open doors or weak-points in a network. Network admins use this to discover the potential vulnerabilities by sending packets to specific ports and analyze response. You can use tools like IP scanning, Nmap, Netcat, etc. to ensure that your network and systems are secure or not.

The same technique is also used by threat-actors to find the possible entry-points in your network. They can find out whether the given port is being used or closed, they can even identify the services or programs that might be using the given port. It can also reveal to them whether active security devices, e.g., Firewall is being used by your organisation, to filter out the packets or traffic.

Active port scanning by malicious actors can ring severe alarm-bells for your organisation, because it can reveal a lot of information about your network. For example,
*) Services that are running or using the port(s)
*) Users who own services
*) Whether anonymous logins are allowed
*) Which network services require authentication, etc

What are Ports?
A port is a point on a computer or network device where actual exchange of information between programs, internet to your network devices & computers happens.
In order to achieve consistency, ports are always some numbers. We identify ports via these port numbers. These port numbers work alongside with an IP address and together they build a piece of highly vital information that every ISP or program needs to fulfill your data requests.

If you are fully aware of Ports then you would know that -- Port numbers range from 0 through to 65,535 and are ranked in terms of popularity.

1. Well-Known Ports
These are ports numbered 0 to 1,023 and are typically reserved for internet usage but can also have specialized purposes. These ports are assigned by the Internet Assigned Numbers Authority (IANA) and held by leading businesses and Structured Query Language (SQL) services.

2. Registered Ports
These are ports numbered from 1,024 to 49,151 and they are registered by software companies.

3. Dynamic/Private Ports
These are ports numbered from 49,152 to 65,535 and can be used by almost everyone on the internet.

Ports are generally managed by 2-protocols (there are some other protocols too):

1) TCP, which defines how to establish and maintain a network conversation between applications
2) UDP, which is primarily used for establishing low-latency and loss-tolerating connections between applications.

Some of the most popular and frequently used ports are mentioned here:
  • Port 20 (UDP): File Transfer Protocol (FTP) used for transferring data a second channel for data transport
  • Port 21 (UDP): FTP used for command and Control of FTP Server
  • Port 22 (TCP): Secure Shell (SSH) protocol used for FTP, port forwarding, and secure logins
  • Port 23 (TCP): The Telnet protocol used for unencrypted TXT-communication
  • Port 43 (TCP): Used by SMTP for mailing systems
  • Port 53 (UDP): The Domain Name System (DNS), which translates internet domain names into machine-readable IP addresses
  • Port 80 (TCP): The World Wide Web HTTP
  • Port 443(TCP): HTTP Secure (Https)
1. Ping scan
A ping scan is the simplest of port scanning techniques and known as ICMP-requests also. In this scan, you send a group of several ICMP requests to various servers in an attempt to get a response. A ping scan can be used by administrators to troubleshoot issues, and you can block or disable these pings using your firewall easily.

2. Vanilla scan
In this scan, you attempt to connect to ALL of 65,536 ports at the same time. It sends a SYN flag (request to connect) and upon receiving a SYN-ACK (acknowledgement of connection) response, sends back an ACK flag. This whole sequence of SYN, SYN-ACK, ACK exchange creates a complete TCP handshake. These scans are also called as Full connect scans. They are accurate, but can very easily be detected because full connections are ALWAYS logged by your firewall.

3. SYN scan
This scan is also called Half-open scan, because it only sends a SYN, and waits for a SYN-ACK response from the target. That's it. If a response is received, the scanner never responds to it. Since the TCP connection was not completed, your system or Firewall doesn’t log this interaction, but the sender (you) have learned if the given port is open or not. This is a quick technique that hackers use to find weaknesses.

4. XMAS and FIN scans
Christmas tree scans (XMAS scans) and FIN scans are, in fact, more discrete attack methods. XMAS scans got their name from the set of flags that are TURNED ON within a packet which, when viewed in a protocol analyzer like Wireshark, appear to be blinking like a Christmas tree. This type of scan sends a set of flags, which, when responded to, can disclose valuable insights about the firewall and whether the port is open or not.

In a FIN scan, an attacker sends a FIN flag to a port. You need to know that this FIN-flag is often used to end an established session, to a specific port. How the system responds to that FIN-flag, can help the attacker understand -- what is the level of activity on that port, and how the firewall is being used by your organisation.

5. FTP Bounce scan
This scan allows the sender to disguise his actual location by bouncing the packet through an FTP server. This is also designed for the sender to go undetected.

6. Sweep scan
This sort of scan tilt heavily towards network scanning, less to port-scanning. In this scan, you or attacker pings the same port across a number of computers on your network to identify which computers on the network are active. This does not reveal information about the port’s state, instead it tells the sender which systems on a network are active. Thus, it can be used as a preliminary scan.

As you may have already sensed that network-scanning activity (host discovery) would precede the port-scanning. Indeed, network scanning is a process that identifies a list of active hosts on a network and maps them to their IP addresses, which need to be compiled before running a port scan.

Network Scanning is often the first step hackers take in staging an attack.
When you want to scan your LAN, you would be using ARP Scan. An ARP scan maps IP addresses to MAC addresses and can be used to determine hosts that are active. But if you or attacker is not inside the LAN, then this scan cannot be used.

Thus, if you want to scan out of a LAN environment, then you need to execute number of ICMP scans. You would be executing this sort of scans by using ICMP requests for address mark, echo, and timestamp, etc. If you don't get a response from an IP address, then it means that there is no host at the target address or your request was blocked by a firewall or packet filter solution.

Once the network scan has been completed and a list of available hosts compiled, a port scan attack can identify the usage of specific ports. It will typically classify ports as open, closed, or filtered.

Open ports: Open ports indicate that the target server or network is actively accepting connections or datagrams and has responded with a packet that indicates it is listening. It also indicates that the service used for the scan (typically TCP or UDP) is in use as well.

Closed ports: Closed ports indicate that the server or network received the request, but there is no service “listening” on that port. A closed port is still accessible and can be useful in showing that a host is on an IP address.

Filtered ports: Filtered ports indicate that a request packet was sent, but the host did not respond and is not listening. This usually means that a request packet was filtered out and/or blocked by a firewall. If packets do not reach their target location, attackers cannot find out more information. Filtered ports often respond with error messages reading “destination unreachable” or “communication prohibited.”

Since cyber criminals search through networks to assess how ports react, which enables them to understand your business's security levels and the systems they deploy.

Some important defense mechanisms you can use are:
1. A network based IPS
To protect your business from internal threats...

2. A strong firewall
A firewall can prevent unauthorized access to your company’s private network. It controls ports and their visibility, as well as detects when a port scan is in-progress before shutting it down.

3. TCP wrappers
These will allow you to have the flexibility to permit or deny access to servers based on IP addresses and domain names.

4. Uncover holes in own network
You can conduct your own internal port scans to determine whether more ports are open than required. You should regularly check your systems to identify potential weak points or vulnerabilities that could be exploited by an attacker.

5. Tools
Some tools such as network monitoring, packet filtering, and IP mapping, etc will improve your ability to identify attacks and offer advanced visibility across your networks.