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

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.

主站蜘蛛池模板: 延吉市| 中西区| 山阴县| 修水县| 鹰潭市| 阜康市| 华宁县| 郁南县| 明光市| 都江堰市| 贞丰县| 嘉祥县| 津南区| 册亨县| 武清区| 来安县| 芦山县| 鄂尔多斯市| 余干县| 安西县| 洛阳市| 东乡| 通山县| 稻城县| 辽源市| 赤壁市| 本溪| 丹江口市| 西峡县| 嵩明县| 松潘县| 博野县| 海阳市| 随州市| 沛县| 嵊州市| 开封县| 呼玛县| 千阳县| 呈贡县| 南汇区|