- 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))
推薦閱讀
- Node Security
- 工業(yè)控制網(wǎng)絡(luò)安全技術(shù)
- 反黑命令與攻防從新手到高手(微課超值版)
- 代碼審計(jì):企業(yè)級(jí)Web代碼安全架構(gòu)
- 防火墻技術(shù)與應(yīng)用(第2版)
- 模糊測(cè)試:強(qiáng)制發(fā)掘安全漏洞的利器
- 從0到1:CTFer成長(zhǎng)之路
- 情報(bào)驅(qū)動(dòng)應(yīng)急響應(yīng)
- 無線傳感器網(wǎng)絡(luò)安全與加權(quán)復(fù)雜網(wǎng)絡(luò)抗毀性建模分析
- 博弈論與數(shù)據(jù)安全
- 黑客攻擊與防范實(shí)戰(zhàn)從入門到精通
- 數(shù)字銀行安全體系構(gòu)建
- 黑客攻防與電腦安全從新手到高手(超值版)
- Web代碼安全漏洞深度剖析
- 信息組織