Record the experience of not giving the extracted code to the network disk resource once! Alternative programming thinking, Python break it!

preface:

Record the experience of not giving the extracted code to the network disk resource once! Alternative programming thinking, Python break it! Maybe not everyone can understand the meaning of this title. Just to be clear, it's not easy to find resources on the Internet. However, the friend who shared the online disk forgot to give the extraction code

 

 

Ideas:

When I say this, someone must be thinking, is it necessary to run a dictionary. NO!

Let me share my thoughts with you. Since the author once shared a record, I guess he must have shared it elsewhere. Can I use Python crawler to collect this link?

If there is, extract the text near the link for segmentation. From where? It can be judged whether the extraction code, password or other words appear. If so, the last four digits are the extraction code!

So it can't be decrypted 100%. Unless you lose the extracted code, you must share the file in other places.

 

 

 

explain:

After sorting out the extracted code provided by crawler and user sharing, users can quickly find out how much Baidu cloud disk extracted code is!

This site is not a brute force way to crack extraction code, because of the variability of shared files, at the same time, this tool can also detect whether the files shared by cloud disk users are still valid!

Baidu cloud disk extraction code, quick query!

This tool is only used for learning and communication. Please do not use it for illegal purposes!

 

After analyzing the ideas, I found that there was a website dedicated to this, so I used its interface directly.

For a post request, there is only one parameter, which is to submit the network disk address. However, it is not stable and prone to 500 status code (server error)

 

 

 

Python code for GUI:

#!/usr/bin/python3
# -*- coding: utf-8 -*-
# @Time : 2019/4/5 20:09
# @Author: benevolence
import requests
from tkinter import *

root = Tk()
root.title('Author:Good intentions')
root.geometry('+900+400')
l = Label(root, text='Please enter the network address below', font=('Microsoft YaHei ', 14), fg='red').pack()
e = Entry(root, width=40, text='')
e.pack()

e1 = Entry(root, width=4)
e1.pack()


def getPwd():
headers = {
'Accept': 'application/json, text/javascript, */*; q=0.01',
'Accept-Encoding': 'gzip, deflate',
'Accept-Language': 'zh-CN,zh;q=0.9',
'Connection': 'keep-alive',
'Content-Length': '53',
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
'Cookie': 'Hm_lvt_81c5c6d2c74d56c9ab654aec4c11e078=1586420985,1586421161,1586783021; Hm_lpvt_81c5c6d2c74d56c9ab654aec4c11e078=1586783021',
'Host': 'tools.bugscaner.com',
'Origin': 'http://tools.bugscaner.com',
'Referer': 'http://tools.bugscaner.com/baiduyunpassword/',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3314.0 Safari/537.36 SE 2.X MetaSr 1.0',
'X-Requested-With': 'XMLHttpRequest',

}
data = {'baiduyunurl': e.get()}
pwd = requests.post('http://tools.bugscaner.com/api/baiduyunpassword/', data=data, headers=headers).json()['info'].split(':')[1]
e1.insert('end', pwd)


b = Button(root, width=8, text='Extract password', command=getPwd).pack()
root.mainloop()

Tags: Python network JSON Programming

Posted on Wed, 22 Apr 2020 09:07:14 -0700 by yarin