tjctf2018部分题解

本文由多位大佬的题解整理而来,仅供学习参考

RC4获得了L - 40分

Alphabet = #_23456789abcdefghijklmnopqrstuvwxyz

Key = pq_xc589r3nb#mgjtkh7w2dlfvy4eaoi6uzs

密文:wpwt#5ng4_qbitp#8mq59r_g866c4t59c6vy6tisj4af6bprfnbd_wrq2wjmr4ld_s26a7i#biiyqjolq8lus_wfusfkj8xv2qrrv3etab_marovc #uuoueyl

rc4是一个流密码。我开始研究rc4加密算法,并且很长一段时间没有得到任何结果。

但题目描述说“拿了L”。然后,经过几次搜索后,我才知道有一种名为LC4的算法。这就是为什么它被称为“拿一个L”。

so接下来

pip install lc4

tjctf2018部分题解_第1张图片

flag:tjctf {elsie_four_is_not_rc4}

We Will Rock You 75 points       Forensics

在这项任务中,作者给了我们一个加密货币钱包。你只需要bruteforce-wallet使用RockYou字典强行破解wallet文件

  • bruteforce-wallet:https://github.com/glv2/bruteforce-wallet
  • Rockyou:https://wiki.skullsecurity.org/Passwords

有了这个题目We Will Rock You,我立即想到将Rockyou字典列入其中。

在Google上快速搜索后,我发现了这个GitHub:https://github.com/glv2/bruteforce-wallet

bruteforce句法:

Usage: ./bruteforce-wallet [options]

Options:
  -b  Beginning of the password.
                 default: ""
  -e  End of the password.
                 default: ""
  -f    Read the passwords from a file instead of generating them.
  -h           Show help and quit.
  -l  Minimum password length (beginning and end included).
                 default: 1
  -m  Maximum password length (beginning and end included).
                 default: 8
  -s  Password character set.
                 default: "0123456789ABCDEFGHIJKLMNOPQRSTU
                           VWXYZabcdefghijklmnopqrstuvwxyz"
  -t       Number of threads to use.
                 default: 1
  -v       Print progress info every n seconds.
  -w    Restore the state of a previous session if the file exists,
               then write the state to the file regularly (~ every minute).

$ git clone https://github.com/glv2/bruteforce-wallet.git
$ ./autogen.sh
$ sudo apt install libdb-dev libssl-dev -y
$ ./configure
$ make
$ ./bruteforce-wallet -t 6 -f rockyou_dic ../9d7e6203fb6e2c14646c63bea94e48001b9317c86bec229c3e063904a168dfad_wallet.dat
Warning: using dictionary mode, ignoring options -b, -e, -l, -m and -s.

Tried passwords: 1
Tried passwords per second: inf
Last tried password: zeufhezuf

Password found: tinkerbellflag:tjctf{tinkerbell}

你可能感兴趣的:(tjctf2018部分题解)