- Learning Python for Forensics
- Preston Miller Chapin Bryce
- 115字
- 2021-08-20 10:17:11
Modifying the print_output() function
This function is identical to the previous iteration, with the exception of the addition of the newline character \n on line 101. This helps separate entries in the console's output with an extra space. When iterating through the code, we will find that not all functions need updating to improve the user experience, accuracy, or efficiency of the code. Only by modifying an existing function will some sort of benefit be achieved:
093 def print_output(usb_name, usb_date):
094 """
095 Print the information discovered
096 :param usb_name: String USB Name to print
097 :param usb_date: String USB Date to print
098 :return: None
099 """
100 print('Device: {}'.format(usb_name))
101 print('First Install: {}\n'.format(usb_date))
推薦閱讀
- 攻守道:企業(yè)數字業(yè)務安全風險與防范
- Mobile Forensics Cookbook
- Metasploit Penetration Testing Cookbook(Second Edition)
- 開發(fā)者的Web安全戒律:真實威脅與防御實踐
- Penetration Testing with Perl
- 反黑命令與攻防從新手到高手(微課超值版)
- 數據安全實踐指南
- 計算機網絡安全技術研究
- Falco云原生安全:Falco原理、實踐與擴展
- 安全防御入門手冊
- 互聯(lián)網企業(yè)安全高級指南
- 構建新型網絡形態(tài)下的網絡空間安全體系
- Bug Bounty Hunting Essentials
- 云計算安全:關鍵技術、原理及應用
- 紅藍攻防:技術與策略(原書第3版)