Cyber Deals - Get up to 65% off on CKA, CKAD, CKS, KCNA, KCSA exams and courses!

ethical-hacking

TCP Flag Definitions

  • SYN - The beginning of connection
  • ACK - Acknowledgment of a previous packet
  • FIN - CLose a TCP Connection
  • RST - Abort a connection

nmap

# Scanning a host
nmap -sT -p 21 192.168.1.1        # tcp ping
nmap -sP 192.168.1.1              # ping
nmap -sR 192.168.1.1              # RPC service
sudo nmap -sS 192.168.1.1         # SYN Scan
sudo nmap -sA 192.168.1.1         # ACK Scan
sudo nmap -sF 192.168.1.1         # FIN Scan
sudo nmap -sX 192.168.1.1         # Xmas Scan
sudo nmap -sN 192.168.1.1         # Null Scan to turn off all flags

sudo nmap -sU 192.168.1.1         # UDP Scan, will take time
sudo nmap -sO 192.168.1.1         # Protocol scanning, will take time
sudo nmap -r 192.168.1.1          # disable randomizing ports
sudo nmap -O vm1                  # OS Fingerprint (detect OS)

nmap -sP 192.168.1.0/24           # Network scanning
nmap -sP 192.168.1.1-10.          # Network scanning

Packet Sniffers

Applications that monitor, filter and capture data packets transferred over network. (libpcap/winpcap is library commonly used by sniffers)

  • Network Monitor
  • tcpdump

Tools

  • Wireshark
  • tcpdump/windump
  • snort
  • suricata
  • Zeek
  • Kismet

Blackbox Testing

  • Pentest, EH

Whitebox Testing

  • System Analysis

Tools

Nessus

Nessus is a proprietary vulnerability scanner developed by Tenable, Inc. (Download)

$ sudo service nessusd start

# Reset Nessus Password
/opt/nessus/sbin/nessuscli chpasswd
/opt/nessus/sbin/nessuscli lsuser

Nessus only supports RSA/DSA key types for the authentication.

ssh-keygen -m PEM -t rsa
# or Convert the OPENSSH key to .PEM:
ssh-keygen -p -m PEM -f /path/to/private_key
Disclaimer: Views expressed in articles are those of the respective authors and do not necessarily reflect the views of their employers or this site. While we aim for accuracy, please verify information before relying on it, and let us know if you spot an error.
Tags:
Share:

Related Posts

Ansible

Ansible awx cli

Note: This notes are based on the AAP 2.5 Installation # On Red Hat Enterprise Linux 8, the Controller CLI can be installed via dnf: dnf install …

Ansible

openstack

1. Setup your OpenStack Infra 1.1. Install OS 1.2. Update 1.3. Update /etc/hosts 1.4. Stop and Disable Firewall 1.5. Stop and Disable NetworkManager …

Ansible

GCP Nested Virtualization

Note: This is purely based on GCP Documentation and for my own quick reference with additonal notes.

Ansible

rancher

1. Introduction to Rancher & RKE 1.1. Rancher Architecture 1.2. Disocvering RKE 1.2.1. Node Preparation 1.2.2. Creating the Cluster Configuration …

Terraform – Infrastructure as Code

Terraform – Infrastructure as Code

What is Terraform? Core Concepts Terraform Workflow Terraform Workspaces Terraform Modules Real-World Use Cases Ansible Lab on AWS AAP All-in-One on …

Ansible

Azure Certifications

Microsoft Certified: Security, Compliance, and Identity Fundamentals Manage identity and access in Azure Active Directory Zero Trust Guidance Center …