- Learning Python for Forensics
- Preston Miller Chapin Bryce
- 277字
- 2021-08-20 10:17:13
Working with Serialized Data Structures
In this chapter, we'll develop greater skills while working with nested lists and dictionaries by manipulating JavaScript Object Notation (JSON) structured data. Our artifact of interest is raw Bitcoin account data that contains, among other things, a list of all sent and received transactions. We'll access this dataset using a web Application Programming Interface (API) and parse it in a manner conducive to analysis.
APIs are created for software products and allow programmers to interface with the software in defined ways. Publicly accessible APIs aren't always available for the given software. When available, they expedite code development by offering methods to interact with the software, as the APIs will handle lower-level implementation details. Developers implement APIs to encourage others to build supporting programs and, additionally, control the manner in which other developers' code interacts with their software. By creating an API, developers are giving other programmers a controlled manner of interfacing with their program.
In this chapter, we'll use the web API from https://www.blockchain.info to query and receive Bitcoin account information for a given Bitcoin address. The JSON data that this API generates can be converted into Python objects using the JSON module from the standard library. Instructions and examples of their API can be found at https://www.blockchain.info/api/blockchain_api.
In this chapter, we'll cover the following:
- Discussing and manipulating serialized structures including Extensible Markup Language (XML) and JSON data
- Creating logs with Python
- Reporting results in a CSV output format
- Web漏洞分析與防范實戰(zhàn):卷1
- Practical Network Scanning
- 走進新安全:讀懂網(wǎng)絡(luò)安全威脅、技術(shù)與新思想
- Kali Linux Wireless Penetration Testing Cookbook
- 硬黑客:智能硬件生死之戰(zhàn)
- 云原生安全與DevOps保障
- 物聯(lián)網(wǎng)安全滲透測試技術(shù)
- Instant Java Password and Authentication Security
- Web安全之深度學(xué)習(xí)實戰(zhàn)
- SQL Injection Strategies
- 黑客攻防實戰(zhàn)從入門到精通
- 網(wǎng)絡(luò)安全大數(shù)據(jù)分析與實戰(zhàn)
- 網(wǎng)絡(luò)服務(wù)安全與監(jiān)控
- Web安全攻防從入門到精通
- 網(wǎng)絡(luò)入侵檢測系統(tǒng)原理與應(yīng)用