PicoCTF2018 - Forensics - Desrouleaux
Objective:
Our network administrator is having some trouble handling the tickets for all of of our incidents. Can you help him out by answering all the questions? Connect with nc 2018shell.picoctf.com 63299. incidents.json [1]
Solution:
You'll need to consult the file `incidents.json` to answer the following questions.
What is the most common source IP address? If there is more than one IP address that is the most common, you may give any of the most common ones.
186.120.220.162
Correct!
I just looked at my list to see which source ip was used most
How many unique destination IP addresses were targeted by the source IP address 186.120.220.162?
3
Correct!
I just counted the number of uqnique destiations for that IP
What is the number of unique destination ips a file is sent, on average? Needs to be correct to 2 decimal places.
1.11
Correct!
I looked at my output and 8 were unique and only 1 went to two locations.
picoCTF{J4y_s0n_d3rUUUULo_23fa6fa6}
I wrote a simple python script to sort out the information I would need to make it a bit easier to read then did the calculations manually
here is the python
import json
with open('incidents.json','r') as f:
data = json.load(f)
def src_dst_ip():
print("Destination IP and Source IP")
for p in data['tickets']:
print("Src IP: ",p['src_ip']," ","Dest IP: ",p['dst_ip'])
def file_dst_ip():
print("Destination IP and File Name")
for p in data['tickets']:
print("Dest IP: ",p['dst_ip']," ","file hash :",p['file_hash'])
def file_src_ip():
print("Source IP and File Name")
for p in data['tickets']:
print("Src IP: ",p['src_ip']," ","file hash :",p['file_hash'])
src_dst_ip()
print(" ")
print(" ")
print(" ")
print(" ")
file_dst_ip()
print(" ")
print(" ")
print(" ")
print(" ")
file_src_ip()
print(" ")
print(" ")
print(" ")
Comments
Post a Comment