Prompt
Analyze this Squid proxy log to answer the following questions.
squid_access.log15.9KB
Tutorial Video
Walk-Through
This challenge involves analyzing a Squid proxy log. Basic scripting knowledge is necessary to complete the challenge in a reasonable amount of time.
Questions
1. In what year was this log saved?
Take any of the Epoch timestamps and convert them into a human-readable date. An online tool, such as Epoch Converter, can be used to do this.
2. How many milliseconds did the fastest request take?
cat squid_access.log | awk '{print $2}' | sort -n
3. How many milliseconds did the longest request take?
Same as the question above
4. How many different IP addresses did the proxy service in this log?
cat squid_access.log | awk '{print $3}' | sort | uniq | wc -l
5. How many GET requests were made?
cat squid_access.log | awk '{print $6}' | sort | uniq –c
6. How many POST requests were made?
Same as the question above
7. What company created the antivirus used on the host at 192.168.0.224?
The name of the company is found within the URLs of the requests made 192.168.0.224
cat squid_access.log | grep "192.168.0.224"
8. What URL is used to download an antivirus update?
Use the command from the question above and then find the URL that includes “virus” and “definitions”
©️ 2024 Cyber Skyline. All Rights Reserved. Unauthorized reproduction or distribution of this copyrighted work is illegal.