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

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.

主站蜘蛛池模板: 鞍山市| 巴里| 浑源县| 巴林右旗| 布拖县| 白山市| 太原市| 皋兰县| 栾川县| 嘉禾县| 正定县| 宁都县| 溆浦县| 达拉特旗| 巫山县| 株洲县| 荃湾区| 兴山县| 敖汉旗| 江北区| 井研县| 新化县| 岳阳县| 巴中市| 高碑店市| 鸡西市| 龙泉市| 高安市| 高邮市| 涡阳县| 舒兰市| 惠安县| 罗源县| 泽普县| 湘西| 张掖市| 平果县| 新河县| 云林县| 法库县| 台北县|