Decrypt file with GPG and Download m3u8 file

Decrypt file with GPG

  • Import keys to gpg

    gpg –import secring.skr
    gpg –import pubring.pkr
    gpg –list-keys

result as below,
pub 2048R/82F66E2C 2014-01-06 [expires: 2017-01-06]

  Key fingerprint = 4BA1 30AA 793A 1D54 2787  F287 F87E 5CFF 82F6 6E2C

uid xxxx-999999999-20140106
sub 2048R/A1EBDC74 2014-01-06 [expires: 2017-01-06]

pub 4096R/A05189D6 2014-01-02 [expires: 2017-12-31]

  Key fingerprint = 674A 9A1D 5675 ED25 802C  574C F591 50E3 A051 89D6

uid CEMailBxHKEPSC2017-12-31
sub 4096R/B47C7A5B 2014-01-02 [expires: 2017-12-31]

  • Run sftp -P 38024 [email protected] to login
  • Download PPSCDDMMYY.pgp from server
  • Run gpg PPSCDDMMYY.pgp to decrypt and mv PPSCDDMMYY PPSCDDMMYY.zip and unzip PPSCDDMMYY.zip to get file MERCHANT.TXT

Download m3u8 file

  • Install Chrome Cache View from NirSoft
  • Install ffmpeg
    sudo add-apt-repository ppa:mc3man/trusty-media
    sudo apt-get update
    sudo apt-get install ffmpeg gstreamer0.10-ffmpeg
  • find m3u8 url in Chrome Cache View
  • run ffmpeg -i http://stmw.rthk.hk/aod/_definst_/radio/archive/radio1/City_Snapshot/mp3/mp3:20150413.mp3/playlist.m3u8 -c copy City_Snapshot-20150413-.mp3 to download

Reference:
GnuPG

http://www.pgpi.org/doc/pgpintro/
http://www.hanewin.net/encrypt/PGcrypt.htm
http://support.gpgtools.org/kb/gpgservices-faq/how-to-encrypt-and-sign-text-or-files-with-gpgservices
http://science.opposingviews.com/decrypt-file-using-pgp-23391.html
ftp://ftp.pgpi.org/pub/pgp/6.5/docs/english/PGPCmdLineGuide.pdf
http://askubuntu.com/questions/100281/how-do-i-make-a-pgp-key
https://help.ubuntu.com/community/GnuPrivacyGuardHowto
http://www.techrepublic.com/blog/linux-and-open-source/encrypting-and-decrypting-files-with-gnupg/
http://ubuntuforums.org/showthread.php?t=680292
http://askubuntu.com/questions/332020/how-do-i-import-a-private-key-into-gpg-so-that-it-becomes-the-default-key
https://www.madboa.com/geek/gpg-quickstart/
http://www.spywarewarrior.com/uiuc/gpg/gpg-com-4.htm

Download m3u8
http://swimminginthought.com/download-m3u8-file/

你可能感兴趣的:(Decrypt file with GPG and Download m3u8 file)