CTFshow Reverse BJDCTF2020 Easy wp

这个没有入口,只能一个个看,发现qes这个函数有一堆数,函数很小,逆向也容易,找到然后用BJD包裹

#int qes()
a = [0x7FFA7E31,0x224FC,0x884A4239,0x22A84,0x84FF235,0x3FF87,0x88424233,0x23185,0x7E4243F1,0x231FC]
 
for i in range(5):
    v6 = (a[i*2] & 0xffffffff) | ((a[i*2+1] & 0xffffffff)<<32)
    v2 = [0]*51
    v8 = 0
    while v6:
        v2[v8] = v6%2
        v6 >>=1
        v8 +=1
    for j in range(50,-1,-1):
        if v2[j] == 1:
            print('*', end='')
        else:
            print(' ', end='')
        if j%5 == 0:
            print(' ', end='')
    print('')
    
'''
  *   *   *   ***** *   * ***** ***** * *   ***** *   * *   *
  *   *  * *  *     *  *    *     *   * *   *     *   * **  *
  ***** ***** *     ***     *     *   ***** ***   *   * * * *
  *   * *   * *     * **    *     *     *   *     *   * *  **
  *   * *   * ***** *   * *****   *     *   *     ***** *   *
'''
#HACKIT4FUN
#BJD{HACKIT4FUN}
BJD{HACKIT4FUN}
 
posted @ 2023-11-06 18:52  Ethan(ˊ˘ˋ*)  阅读(34)  评论(0编辑  收藏  举报