Writeup: Advent of Cyber 4 Day 17 - AtomicMaya/knowledge-base GitHub Wiki

Advent of Cyber 4 - Day 17

Link: Advent Of Cyber 4 on TryHackMe

Question 1

Filtering for Usernames: How many usernames fit the syntax above?

Command: egrep '^[a-zA-Z0-9]{6-12}$' strings

Answer: 8

Question 2

Filtering for Usernames: One username consists of a readable word concatenated with a number. What is it?

Answer: User35

Question 3

Filtering for Emails: How many emails fit the syntax above?

Command: egrep '^.+@.+\.com$' strings

Answer: 11

Question 4

Filtering for Emails: How many unique domains are there?

Answer: 8

Question 5

Filtering for Emails: What is the domain of the email with the local-part "lewisham44"?

Command: egrep '^lewisham44@.+\..+$' strings

Answer: amg.com

Question 6

Filtering for Emails: What is the domain of the email with the local-part "maxximax"?

Command: egrep '^maxximax@.+\..+$' strings

Answer: fedfull.com

Question 7

Filtering for Emails: What is the local-part of the email with the domain name "hotmail.com"?

Command: egrep '^.+@hotmail\.com$' strings

Answer: hussain.volt

Question 8

Filtering for URLs: How many URLs fit the syntax provided?

Command: egrep '^http(s?):(www\.)?.+\..+$' strings

Answer: 16

Question 9

Filtering for URLs: How many of these URLs start with "https"?

Command: egrep '^https:(www\.)?.+\..+$' strings

Answer: 7