官术网_书友最值得收藏!

Summary

In this chapter, you learned how to parse a plain text file using Python. This process can be implemented for other log files, including those from firewalls, web servers, or other applications and services. Following these steps, we can identify repetitive data structures that lend themselves to scripts, process their data, and output results to the user. With our iterative build process, we implemented a test-then-code approach where we built a working prototype and then continually enhanced it into a viable and reliable forensic tool.

In addition to the text format we explored here, some files have a more concrete structure and are stored in a serialized format. Other files, such as HTML, XML, and JSON, file structure data in a manner that can be readily converted into a series of Python objects. The code for this project can be downloaded from GitHub or Packt, as described in the Preface.

In the next chapter, we will explore the methods in Python that we can use to parse, manipulate, and interact with these structured formats.

主站蜘蛛池模板: 嘉禾县| 泰顺县| 焦作市| 大宁县| 崇左市| 旬邑县| 宝鸡市| 疏附县| 抚宁县| 乌兰浩特市| 合山市| 田林县| 攀枝花市| 宜君县| 天峨县| 渑池县| 五原县| 崇文区| 思茅市| 平遥县| 八宿县| 噶尔县| 安丘市| 正镶白旗| 牟定县| 曲松县| 延川县| 民权县| 迁西县| 沙坪坝区| 团风县| 军事| 卓资县| 页游| 乌兰县| 大化| 平江县| 湖口县| 泰安市| 五原县| 开封县|