当前位置:网站首页>每一个账号对应所有密码,再每一个密码对应所有账号暴力破解代码怎么写?...
每一个账号对应所有密码,再每一个密码对应所有账号暴力破解代码怎么写?...
2022-07-28 15:29:00 【Python进阶者】
点击上方“Python共享之家”,进行关注
回复“资源”即可获赠Python学习资料
今
日
鸡
汤
他乡复行役,驻马别孤坟。
大家好,我是皮皮。
一、前言
前几天在Python最强王者交流群【孤独】问了一道Python处理的问题,如下图所示。

现在就是两个账号密码爆破文件,想先每一个账号对应所有密码试一下再用每一个密码对应所有账号试一下。
其实每个账号对应一遍密码就完全对应了,不需要每个密码再对应一遍账号。
二、实现过程
这个问题其实我之前在破解邻居家小姐姐wifi密码的时候,就有思考过,但是也没啥行动,只是想想就没然后了。
这里【D I Y】给了一个解答,不考虑效率的话,使用双循环强行写。

后来【瑜亮老师】给了一个示例代码,如下所示:
pw = [1,2,3,4,5]
user = ['a','b','c']
for i in user:
for j in pw:
print(i, j)运行之后,得到的结果如下:
即便两个账号密码文件的行数(密码7千多行,账号8千多行)不对应也没关系。因为所有的情况,都是可以遍历到的。l

如果有遇到问题,随时联系我解决,欢迎加入我的Python学习交流群。
三、总结
大家好,我是皮皮。这篇文章主要盘点了一道Python数据处理的问题,文中针对该问题给出了具体的解析和代码实现,帮助粉丝顺利解决了问题。
最后感谢粉丝【孤独】提问,感谢【瑜亮老师】、【DIY】给出的思路和代码解析,感谢【dcpeng】等人参与学习交流。
小伙伴们,快快用实践一下吧!如果在学习过程中,有遇到任何问题,欢迎加我好友,我拉你进Python学习交流群共同探讨学习。

------------------- End -------------------
往期精彩文章推荐:

欢迎大家点赞,留言,转发,转载,感谢大家的相伴与支持
想加入Python学习群请在后台回复【入群】
万水千山总是情,点个【在看】行不行
边栏推荐
- 500million users, four years earlier than wechat... This app, which has been in operation for 15 years, will be permanently discontinued
- Sdl2 concise tutorial (4): using SDL_ Image library importing pictures
- LwIP development | socket | DNS domain name resolution
- Two of C language programming!! Role of
- About standard IO buffers
- Image semantic segmentation practice: tensorflow deeplobv3+ train your own dataset
- 五舅的思考
- 资本「断供」两年,我只能把公司卖了
- The video Number finds the golden key, and Tiktok imitates the latecomers
- 关于MIT6.828_HW9_barriers xv6 homework9的一些问题
猜你喜欢

8051 series MCU firmware upgrade IAP

关于标准IO缓冲区的问题

深入理解Istio流量管理的熔断配置

leetcode 题目

ANSA二次开发 - 界面开发工具介绍

Kubeedge releases white paper on cloud native edge computing threat model and security protection technology

HM二次开发 - Data Names及其使用

mysql 查看事件状态语句和修改办法

Thoughts on solving the pop-up of malicious computer advertisements

QT打包
随机推荐
Stm32cube infrared remote control: input capture
后台弹出layer提示
Baidu editor ueeditor, when editing too much content, the toolbar is not visible, which is not convenient for editing or uploading problems
“蔚来杯“2022牛客暑期多校训练营3 J.Journey 0-1最短路
Qt学习第一天
大地坐标系转换火星坐标系
小程序中的分页查询
The video Number finds the golden key, and Tiktok imitates the latecomers
PHP计算坐标距离
HDU1847解题思路
LeetCode-学会对无序链表进行插入排序(详解)
“蔚来杯“2022牛客暑期多校训练营3 H.Hacker SAM+线段树/DP/分治(不带修查区间最大子段和)
Dynamic programming -- digital statistics DP
The little red book of accelerating investment, "rush to medical treatment"?
About the web docking pin printer, lodop uses
【Multisim仿真】LM339过零电路仿真
在abaqus中使用PyQt设计GUI
Geodetic coordinate system to Martian coordinate system
LwIP development | socket | DNS domain name resolution
UNP前六章 回射服务模型 解析