当前位置:网站首页>buuctf misc zip
buuctf misc zip
2022-06-22 00:12:00 【[mzq]】
zip

Extract a lot zip file , But the size is small , If you run a weak password, you can't run out 
utilize crc Blast data, Then he can splice the data as described in the title
#python3
import zipfile
import string
import binascii
def CrackCrc(crc):
for i in dic:
for j in dic:
for k in dic:
for h in dic:
s = i + j + k + h
if crc == (binascii.crc32(s.encode())):
f.write(s)
return
def CrackZip():
for i in range(0,68):
file = 'out'+str(i)+'.zip'
crc = zipfile.ZipFile(file,'r').getinfo('data.txt').CRC
CrackCrc(crc)
print('\r'+"loading:{:%}".format(float((i+1)/68)),end='')
dic = string.ascii_letters + string.digits + '+/='
f = open('out.txt','w')
print("\nCRC32begin")
CrackZip()
print("CRC32finished")
f.close()
After blasting , It's strange to find the data , Comparing the tail features, it is found that the head is missing rar file 

A filling rar The file header , Decompression is obtained. flag
what flag It's not in there 
see rar Compressed package comments , have to flag
rar v 1.rar

flag{nev3r_enc0de_t00_sm4ll_fil3_w1th_zip}
边栏推荐
- Reddit产品主管:Web3创作者必备的NFT会员实用指南
- 未定义UNICODE_STRING 标识解决方案
- Isn't the so-called 0 copy just to let the CPU rest? Deep understanding of MMAP
- pytorch 界面编程相关
- Is Oriental Fortune futures regular? Is this platform safe and reliable?
- 【微信小程序】40029 invalid code解决办法集合
- Object partition
- Unity-网络开发(一)
- redis主从复制(九)
- metersphere与jenkins的持续集成
猜你喜欢

Component value transfer: props are used for parent component and child component value transfer

WMS warehouse management system source code

诚邀 Elastic Stack 开发者成为 CSDN Elastic 云社区管理员

Here comes the CV overview of target detection, visual weakly supervised learning, brain multimodal imaging technology and so on! Image graphics development annual report review special issue!

【微信小程序】40029 invalid code解决办法集合

Today's sleep quality record 81 points

We sincerely invite elastic stack developers to become CSDN elastic cloud community administrators
![[安洵杯 2019]吹着贝斯扫二维码](/img/38/7bfa5e9b97658acfe24d3aab795bce.png)
[安洵杯 2019]吹着贝斯扫二维码

buuctf misc 弱口令

En juin, le classement des langues de programmation a été publié et la langue doit être « féodale ».
随机推荐
CPDA | what basic skills do data analysts need?
Katalon框架测试web(八)等待
Shenzhen Data Analyst Certification (CPDA) in the second half of 2022, [enter to view]
Based on vscode platformio under Arduino framework, one project is configured with two compatibility modes of different development boards
无法定位程序输入点于动态链接库怎么办
Oracle flashback and RMAN samples
VIM automatic command events
【微信小程序】40029 invalid code解决办法集合
【next】nextjs打包出现组件定义缺少显示名称【Component definition is missing display name】
6月編程語言排行榜已出,這門語言要“封神”
编写自己的kubernetes controller
Lectures explanation for unsupervised graph level representation learning (usib)
Katalon框架测试web(十八)框架frame操作
Component value transfer: props are used for parent component and child component value transfer
Celery+rabbit distributed task processing
Go language learning tutorial (12)
CVPR2022 | 弱监督多标签分类中的损失问题
数学知识:约数个数—约数
Today's sleep quality record 81 points
C. Helping the nature (CF) difference