Skip to content

Instantly share code, notes, and snippets.

@HarshKapadia2
Last active December 10, 2020 21:10
Show Gist options
  • Save HarshKapadia2/3c6435b6a6561d6613711366c71dec31 to your computer and use it in GitHub Desktop.
Save HarshKapadia2/3c6435b6a6561d6613711366c71dec31 to your computer and use it in GitHub Desktop.
For CNS practicals.

Linux Tools

For CNS (Cryptography and Network Security) practicals.

hashdeep

wget

whois

traceroute

ping

  • https://www.youtube.com/watch?v=bzACzCTCTrU
  • Sends ICMP echo req and destination sends ICMP echo reply.
  • TTL is usually 64 and whatever val is displayed is usually the number of hops.
  • The time is the round-trip time.
  • -c, -i (interval), -s (bytes)

dig

nikto

theHarvester

  • https://www.youtube.com/watch?v=VytCL2ujjcA
  • Penetration testing, passive reconnaissance (ie, uses publicly available info)
  • e-mail search and subdomain gathering.
  • -d <domain> -l <val> -b <search_using>, -d <domain> -l <val> -b all

dmitry

  • https://www.youtube.com/watch?v=z2EUhV11QB4
  • Deepmagic Information Gathering Tool
  • Passive reconnaissance
  • e-mail search, whois lookup, subdomain gathering, TCP port scanning, etc.
  • -w, -n, -s, -p, -o, -e , combination of flags
  • Find domain

tcpdump

  • https://www.youtube.com/watch?v=hWc-ddF5g1I
  • Packet capture and analyzing tool
  • -h, -D, -i any -c 10 -n (-s), -w <file_name.ext> -v, -n -r <file_name> | less -i icmp, "src 172.17.0.3, (dst <ip> and icmp) and not (port 80 or port 443)"
  • TCP flags: S (SYN), . (ACK), P (PSH), R (RST), U (URG), F (FIN)

nmap

  • College handout.
  • Network Mapper
  • Network exploration and security auditing.
  • Port states: open, closed, filtered, unfiltered, open|filtered, closed|filtered
  • Scans: TCP Connect() (-sT), TCP SYN (-sS), TCP FIN (-sF), TCP NULL (-sN), TCP XMAS (-sX), ACK (-sA)
  • Ping sweep (-sP)
  • OS: -sV (version detection), -O

Misc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment