herrDeng網內搜尋

自訂搜尋

Ads

2022年6月14日 星期二

資訊隱藏(steganography)軟體steghide

  1. print("這行可是python,Jupyter Notebook真是魅力無窮,下面開始是linux系統指令,安裝steghide....")
  2.  
  3. !lsb_release -a
  4.  
  5. !pip install pydub
  6.  
  7. from google.colab import files
  8. files.upload()
  9.  
  10. from IPython.display import Audio
  11.  
  12. from pydub import AudioSegment
  13. sound = AudioSegment.from_mp3('musik.mp3')
  14. sound.export('musik.wav', format="wav")
  15.  
  16. Audio('musik.wav')
  17.  
  18. with open('secret.txt', 'w') as f:
  19. x=input('輸入一小段文字,藏進檔案中:\r\n')
  20. f.write(x)
  21.  
  22. !cat secret.txt
  23.  
  24. """steghide支援jpg, bmp, wav and au,其他不支援"""
  25.  
  26. !sudo apt install steghide
  27.  
  28.  
  29. %%shell
  30. steghide embed -cf musik.wav -ef secret.txt
  31.  
  32. Audio('musik.wav')
  33.  
  34. !steghide --help
  35.  
  36.  
  37. %%shell
  38. steghide --info musik.wav -p 123456
  39.  
  40.  
  41. %%shell
  42. rm secret.txt
  43. ls
  44.  
  45.  
  46. %%shell
  47. steghide extract -sf musik.wav
  48.  
  49. !cat secret.txt

沒有留言:

Related Posts Plugin for WordPress, Blogger...

熱門文章