基于java的密码字典生成

import java.io.*;public class 密码字典生成 {// 密码最短长度int min = 8;// 密码最长长度int max = 14;// 常用密码组合String[] MOST_USE = new String[] { "11111111", "00000000", "11223344", "0123456789", "000000", "0123456789","101010", "111111", "111222", "112233", "11223344", "121212", "12121212", "12344321456", "1234567","12345678", "123456789", "1234567890", "1234gwer", "1qaz2wsx", "2222415926", "555555", "7758521", "7758258","77777777", "8888888", "99999999", "99999999", "abcdefg", "admin", "love", "qwertyuiop", "1314", "7788","8899", "123", "1234", };// 常用年份组合String[] YEAR = new String[] { "1970", "1971", "1972", "1973", "1974", "1975", "1976", "1977", "1978", "1979","1980", "1981", "1982", "1983", "1984", "1985", "1986", "1987", "1988", "1989", "1990", "1991", "1992","1993", "1994", "1995", "1996", "1997", "1998", "1999", "2000,2001", "2002", "2003", "2004", "2005", "2006","2007", "2008", "2009", "2010", "2011", "2012", "2013", "2014", "2015", "2016,“2017,2018", "2019", "2020","2021", "2022", "2023", "2024" };// 常用月份组合String[] MONTH = new String[] { "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "1", "2","3", "4", "5", "6", "7", "8", "9" };// 常用日期组合String[] DAY = new String[] { "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14","15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "1","2", "3", "4", "5", "6", "7", "8", "9" };// 常用首字母String[] FLETTER = new String[] { "b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", "s", "t", "w","x", "y", "z" };// 常用姓氏组合String[] LASTNAME = new String[] { "li", "ma", "wu", "xu", "hu", "yu", "he", "liu", "sun", "gao", "luo", "cai","guo", "zhu", "wang", "zhao", "yang", "zhou", "song", "meng", "deng", "zhang", "huang", "liang", "qian","zheng", "feng", "chen", "hu", "shen", "han", "kong" };// 常用名字拼音组合String[] FIRSTNAME = new String[] { "bo", "bi", "bai", "bei", "bao", "ban", "ben", "bin", "bang", "bing", "biao","ci", "cai", "can", "cen", "cun", "ceng", "cong", "cao", "chi", "chu", "chui", "chan", "chen", "cheng","chang", "chong", "chuan", "chuang", "chao", "che", "cha", "chai", "de", "di", "du", "dai", "dao", "dan","deng", "ding", "dang", "dong", "fa", "fu", "fei", "fan", "fen", " fang", "feng", "fou", "gu", "gui", "gao","gai", "gan", "gen", "guo", "gang", "geng", "guan", "guang", "hu", "hui", "hao", "han", "hen", "huo","hang", "heng", "huan", "huang", "hun", "ji", "ju", "jiu", "jie", "jin", "jun", " jue", "jing", "ji", "jia","jiao", "jian", "juan", "jiang", "kai", "kui", "kan", "ken", "kun", "kuo", "kang", "keng", "kong", "kuan","kuang", "le", "li", "lai", "lu", "lei", "lie", "lan", "lin", "lun", "lang", "ling", "long", "liao", "lian","luan", "mi", "mu", "mai", "man", "mei", "mao", "miu", "min", "mang", "meng", "ming", "miao", "mian", "na","ni", "nu", "niu", "nan", "nuo", "neng", "ning", "nv", "pa", "pi", "pu", "pai", "pen", "pin", "pan", "pao","peng", "ping", "pang", "pian", "qi", "qu", "qiu", "qing", "qin", "quan", "qian", "qiao", "que", "ri", "re","ruo", "rou", "ran", "ren", "rui", "rang", "reng", "sa", "si", "se", "su", "sai", "sun", "suo", "song","sang", "san", "suan", "shi", "shu", "shui", "shan", "shen", "sheng", "shang", "shuan", "shuang", "shao","she", "sha", "shai", "ta", "te", "tan", "tei", "ti", "tu", "tang", "tai", "tao", "tuo", "teng", "ting","tun", "tong", "tian", "tou", "wa", "wu", "wai", "wei", "wang", "wan", "xi", "xu", "xiu", "xian", "xu","xie", "xun", "xin", "xing", "xiang", "xiong", "xia", "xuan", "xue", "ya", "yi", "yu", "yao", "you", "yan","yun", "yue", "yin", "ying", " yuan", "yang", "yong", "zu", "zao", "zui", "ze", "zi", "zou", "zuo", "zeng","zuan", "zong", "zun", "zan", "zai" };// 常用特殊符号String[] MOST_SIN = new String[] { "!", "@", "#", "_", "~", "*", "$", ",", ".", "," };public void create(String[] temp) throws IOException {File f = new File("./dict.txt");FileOutputStream fop = new FileOutputStream(f, true);OutputStreamWriter writer = new OutputStreamWriter(fop, "UTF-8");for (String i : temp) {String str = i + '\n';if (str.length() < this.max && str.length() > this.min)writer.append(str);}writer.close();fop.close();};public void create(String[] temp, String[] temp1) throws IOException {File f = new File("./dict.txt");FileOutputStream fop = new FileOutputStream(f, true);OutputStreamWriter writer = new OutputStreamWriter(fop, "UTF-8");for (String i : temp) {for (String j : temp1) {String str = i + j + '\n';if (str.length() < this.max && str.length() > this.min)writer.append(str);}}writer.close();fop.close();};public void create(String[] temp, String[] temp1, String[] temp2) throws IOException {File f = new File("./dict.txt");FileOutputStream fop = new FileOutputStream(f, true);OutputStreamWriter writer = new OutputStreamWriter(fop, "UTF-8");for (String x : temp) {for (String y : temp1) {for (String z : temp2) {String str = x + y + z + '\n';if (str.length() < this.max && str.length() > this.min)writer.append(str);}}}writer.close();fop.close();};public void create(String[] temp, String[] temp1, String[] temp2, String[] temp3) throws IOException {File f = new File("./dict.txt");FileOutputStream fop = new FileOutputStream(f, true);OutputStreamWriter writer = new OutputStreamWriter(fop, "UTF-8");for (String a : temp) {for (String b : temp1) {for (String c : temp2) {for (String d : temp3) {String str = a + b + c + d + '\n';if (str.length() < this.max && str.length() > this.min)writer.append(str);}}}}writer.close();fop.close();};public void create(String[] temp, String[] temp1, String[] temp2, String[] temp3, String[] temp4)throws IOException {File f = new File("./dict.txt");FileOutputStream fop = new FileOutputStream(f, true);OutputStreamWriter writer = new OutputStreamWriter(fop, "UTF-8");for (String a : temp) {for (String b : temp1) {for (String c : temp2) {for (String d : temp3) {for (String e : temp4) {String str = a + b + c + d + e + '\n';if (str.length() < this.max && str.length() > this.min)writer.append(str);}}}}}writer.close();fop.close();};public void create(String[] temp, String[] temp1, String[] temp2, String[] temp3, String[] temp4, String[] temp5)throws IOException {File f = new File("./dict.txt");FileOutputStream fop = new FileOutputStream(f, true);OutputStreamWriter writer = new OutputStreamWriter(fop, "UTF-8");for (String a : temp) {for (String b : temp1) {for (String c : temp2) {for (String d : temp3) {for (String e : temp4) {for (String z : temp5) {String str = a + b + c + d + e + z + '\n';if (str.length() < this.max && str.length() > this.min)writer.append(str);}}}}}}writer.close();fop.close();};public static void main(String[] args) throws IOException {密码字典生成 createdict = new 密码字典生成();System.out.println("正在生成:姓+年+常用符号");createdict.create(createdict.LASTNAME, createdict.YEAR, createdict.MOST_SIN);System.out.println("正在生成:姓+常用数字");createdict.create(createdict.LASTNAME, createdict.MOST_USE);System.out.println("正在生成:姓+常用数字+常用符号");createdict.create(createdict.LASTNAME, createdict.MOST_USE, createdict.MOST_SIN);System.out.println("正在生成:姓+年+月+日");createdict.create(createdict.LASTNAME, createdict.YEAR, createdict.MONTH, createdict.DAY);System.out.println("正在生成:姓+月+日+常用符号");createdict.create(createdict.LASTNAME, createdict.MONTH, createdict.DAY, createdict.MOST_USE);System.out.println("正在生成:姓+名+年");createdict.create(createdict.LASTNAME, createdict.FIRSTNAME, createdict.YEAR);System.out.println("正在生成:姓+名+月+日");createdict.create(createdict.LASTNAME, createdict.FIRSTNAME, createdict.MONTH, createdict.DAY);System.out.println("正在生成:姓+名+年+月+日");createdict.create(createdict.LASTNAME, createdict.FIRSTNAME, createdict.YEAR, createdict.MONTH, createdict.DAY);System.out.println("正在生成:姓+名+名+年");createdict.create(createdict.LASTNAME, createdict.FIRSTNAME, createdict.FIRSTNAME, createdict.YEAR);System.out.println("正在生成:姓+名+名+月+日");createdict.create(createdict.LASTNAME, createdict.FIRSTNAME, createdict.FIRSTNAME, createdict.MONTH,createdict.DAY);System.out.println("正在生成:姓+名+名+年+月+日");createdict.create(createdict.LASTNAME, createdict.FIRSTNAME, createdict.FIRSTNAME, createdict.YEAR,createdict.MONTH, createdict.DAY);System.out.println("正在生成:2字首字母+常用数字");createdict.create(createdict.FLETTER, createdict.FLETTER, createdict.MOST_USE);System.out.println("正在生成:2字首字母+常用符号");createdict.create(createdict.FLETTER, createdict.FLETTER, createdict.MOST_SIN);System.out.println("正在生成:2字首字母+年");createdict.create(createdict.FLETTER, createdict.FLETTER, createdict.YEAR);System.out.println("正在生成:2字首字母+年+常用符号");createdict.create(createdict.FLETTER, createdict.FLETTER, createdict.YEAR, createdict.MOST_SIN);System.out.println("正在生成:2字首字母+月+日");createdict.create(createdict.FLETTER, createdict.FLETTER, createdict.MONTH, createdict.DAY);System.out.println("正在生成:2字首字母+月+日+常用符号");createdict.create(createdict.FLETTER, createdict.FLETTER, createdict.MONTH, createdict.DAY,createdict.MOST_SIN);System.out.println("正在生成:2字首字母+年+月+日");createdict.create(createdict.FLETTER, createdict.FLETTER, createdict.YEAR, createdict.MONTH, createdict.DAY);System.out.println("正在生成:3字首字母+常用数字");createdict.create(createdict.FLETTER, createdict.FLETTER, createdict.FLETTER, createdict.MOST_USE);System.out.println("正在生成:3字首字母+常用符号");createdict.create(createdict.FLETTER, createdict.FLETTER, createdict.FLETTER, createdict.MOST_SIN);System.out.println("正在生成:3字首字母+年");createdict.create(createdict.FLETTER, createdict.FLETTER, createdict.FLETTER, createdict.YEAR);System.out.println("正在生成:3字首字母+年+常用符号");createdict.create(createdict.FLETTER, createdict.FLETTER, createdict.FLETTER, createdict.YEAR,createdict.MOST_SIN);System.out.println("正在生成:3字首字母+月+日");createdict.create(createdict.FLETTER, createdict.FLETTER, createdict.FLETTER, createdict.MONTH, createdict.DAY);System.out.println("正在生成:3字首字母+月+日+常用符号");createdict.create(createdict.FLETTER, createdict.FLETTER, createdict.FLETTER, createdict.MONTH, createdict.DAY,createdict.MOST_SIN);System.out.println("正在生成:3字首字母+年+月+日");createdict.create(createdict.FLETTER, createdict.FLETTER, createdict.FLETTER, createdict.YEAR, createdict.MONTH,createdict.DAY);}
}

基于java的密码字典生成相关推荐

  1. 基于Java语言密码字典生成器实现

    作者 | 顾北 对这个世界充满向往的理想主义者 利用Java生成穷举字典(数字+字母(大小写)+字符),可用于爆破各种密码等场景,原理枚举数组中元素的各种组合情况. 用户可根据需要自由选择生成字典的长 ...

  2. python123测验5随机密码生成_基于社会工程学的弱口令密码字典生成工具

    Chinese Common User Passwords Profiler 基于社会工程学的弱口令密码字典生成工具 使用方法 : 第一步 : 定义已知信息 class Person: NAME = ...

  3. 基于Java的学校试卷生成系统设计与实现(附数据库)

    概要 最近脑瓜疼,没事干,突然想搞点事情,随后就拉上三五同学组了一个Team,开发一些自己喜欢的东西,...... 好了,废话不多说,本次发文主要还是介绍基于Java的学校试卷生成系统设计与实现,该系 ...

  4. java数字密码字典生成器

    直接上代码,如有不足请指出 import java.io.*;/*** 描述:*java代码实现的字典生成器,新手写的,有不足之处可以指出*写个main()调用即可,create方法的参数为文件存储的 ...

  5. php 生成密码字典,密码字典生成工具crunch的简单使用

    案例1: crunch 1 8 #生成最小1位,最大8位,由26个小写字母为元素的所有组合 案例2: crunch 1 6 abcdefg #生成最小为1,最大为6.由abcdefg为元素的所有组合 ...

  6. java 试卷自动生成_基于JAVA的试题自动生成系统 - WEB源码|JSP源码/Java|源代码 - 源码中国...

    压缩包 : 试卷自动生成系统.rar 列表 试卷自动生成系统/.classpath 试卷自动生成系统/.project 试卷自动生成系统/bin/Db/Sql.class 试卷自动生成系统/bin/f ...

  7. java根据密码字典解密word和excel加密文件

     本类为word解密的工具类,后期还会有压缩包的加密解密,以及暴力破解相关方法,喜欢的朋友可以关注我的后期更新,尊重原创,切勿胡乱转发 /** * @Description word破解工具类* * ...

  8. Python生成密码字典写入文件算法

    Python生成密码字典写入文件算法 简介 主要原理 代码 如果有其他可以提高时空复杂度的算法可以优化一下 简介 密码字典生成原理比较简单,主要靠正常的按序叠加生成,故所需时间以及较大的内存资源 主要 ...

  9. java生成iso9660工具_基于数据库的代码自动生成工具,生成JavaBean、生成数据库文档、生成前后端代码等(TableGo v7.0.0版)...

    TableGo_20210212 v7.0.0 正式版发布,此次版本更新如下: 1.新增对DB2数据库的支持 2.新增按字段生成文件,支持把字段.JSON.XML数据转换成任何代码 3.新增大量新的自 ...

  10. 字典生成----在线密码破解工具hydra和medusa的使用

    大家好,我是SuieKa. 本次主要稍微详细分析一下字典的生成和在线密码破解工具hydra和medusa及使用案例,希望对大家学习上有帮助! 目录表 一.常见字典生成工具及使用方法 1.字典生成工具c ...

最新文章

  1. Tensorflow— 简单示例
  2. 挑战 10 个最难回答的 Java 问题(附答案)
  3. java程序中date类型比较大小总结
  4. Linux学习之系统编程篇:互斥锁(pthread_mutex_init / lock / trylock / unlock / destroy)
  5. JAVA内存存储数据的位置
  6. when and where is createContent called
  7. 一个用js写的接口http调试程序
  8. Real Application Cluster 10g安装与配置(下)
  9. 我为什么做程序猿訪谈录
  10. PHP中面向对象分析设计的经验总结
  11. JS常用事件兼容性处理方法
  12. 关于java分包原则
  13. 应用统计学学什么科目_应用统计学专业考研需考哪些科目
  14. 谷歌浏览器截取长图 (不用安装插件)
  15. 基站机房防雷接地解决方案
  16. Flutter学习笔记
  17. 重新连接共享打印机报错0x00000002
  18. 华为H5快游戏如何接入广告服务
  19. 计算机系统结构——量化研究方法(第三版)
  20. 用Google实现站内搜索

热门文章

  1. 合同html样式,css 合同打印print--水印
  2. 空手套白狼的典型案例,不花一分钱,整合别家产品,赚自己的钱
  3. Mac os查看共享文件
  4. Linux SSH无密登录配置
  5. 台式计算机用手机流量上网,台式机如何使用手机流量上网
  6. Go语言反射规则 - The Laws of Reflection
  7. c语言中calc是什么函数,CSS 3 中的计算函数 calc() 有啥用?
  8. 为啥面试需要Aggressive?
  9. vue 版的老虎机抽奖活动效果折腾小记
  10. Centos8Web服务器搭建