linear-mcp-fast 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. ccl_chromium_reader/__init__.py +2 -0
  2. ccl_chromium_reader/ccl_chromium_cache.py +1335 -0
  3. ccl_chromium_reader/ccl_chromium_filesystem.py +302 -0
  4. ccl_chromium_reader/ccl_chromium_history.py +357 -0
  5. ccl_chromium_reader/ccl_chromium_indexeddb.py +1060 -0
  6. ccl_chromium_reader/ccl_chromium_localstorage.py +454 -0
  7. ccl_chromium_reader/ccl_chromium_notifications.py +268 -0
  8. ccl_chromium_reader/ccl_chromium_profile_folder.py +568 -0
  9. ccl_chromium_reader/ccl_chromium_sessionstorage.py +368 -0
  10. ccl_chromium_reader/ccl_chromium_snss2.py +332 -0
  11. ccl_chromium_reader/ccl_shared_proto_db_downloads.py +189 -0
  12. ccl_chromium_reader/common.py +19 -0
  13. ccl_chromium_reader/download_common.py +78 -0
  14. ccl_chromium_reader/profile_folder_protocols.py +276 -0
  15. ccl_chromium_reader/serialization_formats/__init__.py +0 -0
  16. ccl_chromium_reader/serialization_formats/ccl_blink_value_deserializer.py +401 -0
  17. ccl_chromium_reader/serialization_formats/ccl_easy_chromium_pickle.py +133 -0
  18. ccl_chromium_reader/serialization_formats/ccl_protobuff.py +276 -0
  19. ccl_chromium_reader/serialization_formats/ccl_v8_value_deserializer.py +627 -0
  20. ccl_chromium_reader/storage_formats/__init__.py +0 -0
  21. ccl_chromium_reader/storage_formats/ccl_leveldb.py +582 -0
  22. ccl_simplesnappy/__init__.py +1 -0
  23. ccl_simplesnappy/ccl_simplesnappy.py +306 -0
  24. linear_mcp_fast/__init__.py +8 -0
  25. linear_mcp_fast/__main__.py +6 -0
  26. linear_mcp_fast/reader.py +433 -0
  27. linear_mcp_fast/server.py +367 -0
  28. linear_mcp_fast/store_detector.py +117 -0
  29. linear_mcp_fast-0.1.0.dist-info/METADATA +160 -0
  30. linear_mcp_fast-0.1.0.dist-info/RECORD +39 -0
  31. linear_mcp_fast-0.1.0.dist-info/WHEEL +5 -0
  32. linear_mcp_fast-0.1.0.dist-info/entry_points.txt +2 -0
  33. linear_mcp_fast-0.1.0.dist-info/top_level.txt +4 -0
  34. tools_and_utilities/Chromium_dump_local_storage.py +111 -0
  35. tools_and_utilities/Chromium_dump_session_storage.py +92 -0
  36. tools_and_utilities/benchmark.py +35 -0
  37. tools_and_utilities/ccl_chrome_audit.py +651 -0
  38. tools_and_utilities/dump_indexeddb_details.py +59 -0
  39. tools_and_utilities/dump_leveldb.py +53 -0
@@ -0,0 +1,59 @@
1
+ """
2
+ Copyright 2020-2024, CCL Forensics
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ this software and associated documentation files (the "Software"), to deal in
6
+ the Software without restriction, including without limitation the rights to
7
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
8
+ of the Software, and to permit persons to whom the Software is furnished to do
9
+ so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
21
+ """
22
+
23
+ import sys
24
+ import pathlib
25
+ from ccl_chromium_reader import ccl_chromium_indexeddb
26
+
27
+
28
+ def main(args):
29
+ ldb_path = pathlib.Path(args[0])
30
+ wrapper = ccl_chromium_indexeddb.WrappedIndexDB(ldb_path)
31
+
32
+ for db_info in wrapper.database_ids:
33
+ db = wrapper[db_info.dbid_no]
34
+ print("------Database------")
35
+ print(f"db_number={db.db_number}; name={db.name}; origin={db.origin}")
36
+ print()
37
+ print("\t---Object Stores---")
38
+ for obj_store_name in db.object_store_names:
39
+ obj_store = db[obj_store_name]
40
+ print(f"\tobject_store_id={obj_store.object_store_id}; name={obj_store.name}")
41
+ try:
42
+ one_record = next(obj_store.iterate_records())
43
+ except StopIteration:
44
+ one_record = None
45
+ if one_record is not None:
46
+ print("\tExample record:")
47
+ print(f"\tkey: {one_record.key}")
48
+ print(f"\tvalue: {one_record.value}")
49
+ else:
50
+ print("\tNo records")
51
+ print()
52
+ print()
53
+
54
+
55
+ if __name__ == '__main__':
56
+ if len(sys.argv) < 2:
57
+ print(f"USAGE: {pathlib.Path(sys.argv[0]).name} <ldb dir path>")
58
+ exit(1)
59
+ main(sys.argv[1:])
@@ -0,0 +1,53 @@
1
+ import sys
2
+ import csv
3
+ from ccl_chromium_reader.storage_formats import ccl_leveldb
4
+ import pathlib
5
+
6
+ ENCODING = "iso-8859-1"
7
+
8
+
9
+ def main(args):
10
+ input_path = args[0]
11
+ output_path = "leveldb_dump.csv"
12
+ if len(args) > 1:
13
+ output_path = args[1]
14
+
15
+ leveldb_records = ccl_leveldb.RawLevelDb(input_path)
16
+
17
+ with open(output_path, "w", encoding="utf-8", newline="") as file1:
18
+ writes = csv.writer(file1, quoting=csv.QUOTE_ALL)
19
+ writes.writerow(
20
+ [
21
+ "key-hex", "key-text", "value-hex", "value-text", "origin_file",
22
+ "file_type", "offset", "seq", "state", "was_compressed"
23
+ ])
24
+
25
+ for record in leveldb_records.iterate_records_raw():
26
+ writes.writerow([
27
+ record.user_key.hex(" ", 1),
28
+ record.user_key.decode(ENCODING, "replace"),
29
+ record.value.hex(" ", 1),
30
+ record.value.decode(ENCODING, "replace"),
31
+ str(record.origin_file),
32
+ record.file_type.name,
33
+ record.offset,
34
+ record.seq,
35
+ record.state.name,
36
+ record.was_compressed
37
+ ])
38
+
39
+
40
+ if __name__ == '__main__':
41
+ if len(sys.argv) < 2:
42
+ print(f"Usage: {pathlib.Path(sys.argv[0]).name} <indir path> [outpath.csv]")
43
+ exit(1)
44
+ print()
45
+ print("+--------------------------------------------------------+")
46
+ print("|Please note: keys and values in leveldb are binary blobs|")
47
+ print("|so any text seen in the output of this script might not |")
48
+ print("|represent the entire meaning of the data. The output of |")
49
+ print("|this script should be considered as a preview of the |")
50
+ print("|data only. |")
51
+ print("+--------------------------------------------------------+")
52
+ print()
53
+ main(sys.argv[1:])