Skip to content

Instantly share code, notes, and snippets.

@Kotaro666-dev
Created April 21, 2020 11:02
Show Gist options
  • Save Kotaro666-dev/1fab85d58ab5438e82e509f4952e88b6 to your computer and use it in GitHub Desktop.
Save Kotaro666-dev/1fab85d58ab5438e82e509f4952e88b6 to your computer and use it in GitHub Desktop.

Revisions

  1. Kotaro666-dev created this gist Apr 21, 2020.
    78 changes: 78 additions & 0 deletions linux
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,78 @@
    cat data.txt
    // It shows dumphexed lines
    mkdir /tmp/kotaro666
    cp data.txt /tmp/kotaro666
    cd /tmp/kotaro666
    ls
    // check if the file is sucucessfully copied in new directory

    xxd -r data.txt newfile
    ls -la
    // check if the file "newfile" is created
    cat newfile
    // content
    // ?4h??6??@4bi???hBZh91AY&SY????????ϟ???????????????׽??9??
    // ?mF?h?h44
    // ??B??,0? ??4@?????@2C@h?? ?
    // ?v;?P??;z?????s?!??+?f???̗?0`h?e?^???m??K?l??5n?+tÔhY???R?Br"?<(Hت$ $?ɋ?^-K?????}?\,?ǿ?}E?F?_!r?U?g?E?i??9x??TB@?lȲ???BF.hM?SC4?V?F?
    //
    // ??\??WQO4?p?i????S?#&??/?#??[j?ŀ?<D?uԐ^_?H.?-??wAt
    // ?[??UP?G?CP??&:?2?*?)?\???????H?

    file newfile
    // newfile: gzip compressed data, was "data2.bin",
    // last modified: Tue Oct 16 12:00:23 2018, max compression, from Unix
    mv newfile newfile.gz
    // Change name and add .gz
    gzip -d newfile.gz
    ls
    // shows 2files; data.txt newfile

    file newfile
    // bzip2 compressed data, block size = 900k
    mv newfile newfile.bz2
    // Change name and add .bz2
    bunzip2 newfile.bz2

    file newfile
    // newfile: gzip compressed data, was "data4.bin",
    // last modified: Tue Oct 16 12:00:23 2018, max compression, from Unix
    mv newfile newfile.gz
    gzip -d newfile.gz
    file newfile
    // newfile: POSIX tar archive (GNU)

    mv newfile newfile.tar
    tar xvf newfile.tar
    // result : data5.bin
    file data5.bin
    // POSIX tar archive (GNU)

    mv data5.bin data5.bin.tar
    tar xvf data5.bin.tar
    // result data6.bin

    file data6.bin
    // result: data6.bin: bzip2 compressed data, block size = 900k
    mv data6.bin data6.bin.bz2
    bunzip2 data6.bin.bz2
    // result: data6.bin

    file data6.bin
    // result: data6.bin: POSIX tar archive (GNU)
    mv data6.bin data6.bin.tar
    tar xvf data6.bin.tar
    // result: data8.bin

    file data8.bin
    // data8.bin: gzip compressed data, was "data9.bin",
    // last modified: Tue Oct 16 12:00:23 2018, max compression, from Unix
    mv data8.bin data8.bin.gz
    gunzip data8.bin.gz
    // result: data8.bin

    file data8.bin
    // data8.bin: ASCII text -> Yes finally!
    cat data8.bin
    // The password is 8ZjyCRiBWFYkneahHwxCv3wb2a1ORpYL