A program that get history web cache from chrome.
Present events were carved by past, future will be made by the present. History played alot of role on what we are today, and will be in the future. Looking at it, history defines us.
On today's cyber ethics, we are define on what we view or what we browse. Host's credibility and cleanliness will depend on what the user browse and his actions on the web. Clicks are user's decisions, one must be always aware of.
This program is a just a gyst, but I would like to share it to you. This will be a feature to a project that Im making.
Algorithm
Let's jump ahead to walkthrough. I have searched on some ways to output web cache on the blackscreen. Found 2 ways:
1. By sqlite - importing sqlite,extracting the history file from user's Chrome browser, and performing some sql syntax to generate the data needed.
2. Parse through the browser's history file by using some python operations and use some sql syntax with it.
Unluckily I didn't used neither, for I'm having issues with SQlite right now. Anyway, this is how I did it..
open fileoutput.txt #for saved file of the user's history
x = read through the browser's history file
repr(x)
url_list = #initilialize url list var
for lines in x: #iterate through variable lines for every line in x
url = re.findall(r')#regex to find url on every line read
url_list.append(url)#append url on list if found on regex
for url in url_list:
print url
Launch
Running the program, we have the results below
I just extracteed the browser's History file and displayed a portion of URLs I've visited :P.
I will enhance this program, in the future I'll include the dates, graph of the most visited sites. This will just be a teaser for you guys, stay tuned for I'll have this feature in my upcoming forensic tool project.
Prosper!
Comments