
- Python 取證教程
- 首頁
- 簡介
- Python 安裝
- Python 概覽
- 基本法證應用
- 雜湊函式
- 破解加密
- 虛擬化
- 網路取證
- Python 模組
- Dshell 和 Scapy
- 搜尋
- 索引
- Python Imaging 庫
- 移動取證
- 網路時間協議
- 多處理支援
- 記憶體和取證
- Linux 中的取證
- 危害指標
- 雲實現
- Python 取證有用資源
- Python 取證 - 快速指南
- Python 取證 - 有用資源
- Python 取證 - 討論
Python 取證 - 索引
索引實際上可以為調查員提供一個檔案的完整檢視並從中收集潛在的證據。證據可能包含在檔案、磁碟映象、記憶體快照或網路跟蹤中。
索引有助於減少耗時任務的時間,例如關鍵字搜尋。法證調查還涉及互動式搜尋階段,其中索引用於快速找到關鍵字。
索引還有助於按排序列表列出關鍵字。
示例
以下示例展示瞭如何在 Python 中使用索引。
aList = [123, 'sample', 'zara', 'indexing']; print "Index for sample : ", aList.index('sample') print "Index for indexing : ", aList.index('indexing') str1 = "This is sample message for forensic investigation indexing"; str2 = "sample"; print "Index of the character keyword found is " print str1.index(str2)
上面的指令碼將產生以下輸出。

廣告