Skip to content

Commit

Permalink
common update
Browse files Browse the repository at this point in the history
1. add extend configuration
2. modify other Options
  • Loading branch information
LandGrey committed Aug 1, 2017
1 parent cd6e2e1 commit 94ebe8e
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 19 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ python pydictor.py

#### function and scope of support wordlist number

| function | support number | description |
| function | number (wordlist) | description |
|:---------- | :--------------------------- |:-------------------------------------------------------- |
| len | 1 2 3 4 5 6 7 9 10 11 12 14 | lenght scope |
| head | 1 2 3 4 5 6 7 9 10 11 12 14 | add items prefix |
Expand All @@ -89,12 +89,12 @@ python pydictor.py

#### 1: generate the basic wordlsit based on digital lenght of 4
```
python pydictor.py -base d --len 4 4 --output D:\exits\or\not\dict.txt
python pydictor.py -base d --len 4 4 --output D:\exists\or\not\dict.txt
```

### 2: encode the wordlist
```
python pydictor.py -base c --len 1 3 --encode b64
python pydictor.py -base L --len 1 3 --encode b64
```

#### 3: use d(digital) L(lowercase letter) c(capital letter) generating wordlist
Expand Down Expand Up @@ -191,6 +191,7 @@ supported encoding:
url urlencode
sha256 sha256 digest algorithm
sha512 sha512 digest algorithm
test interface for customized encode function
```


Expand Down
20 changes: 10 additions & 10 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ python pydictor.py

#### 字典类型与功能适用范围对照表

| 功能 | 适用范围(编号) | 说明 |
| 功能 | 适用范围(字典类型编号) | 说明 |
|:---------- | :--------------------------- |:------------------------------------ |
| len | 1 2 3 4 5 6 7 9 10 11 12 14 | 定义长度范围 |
| head | 1 2 3 4 5 6 7 9 10 11 12 14 | 添加字典条目前缀 |
| tail | 1 2 3 4 5 6 7 9 10 11 12 14 | 添加字典条目后缀 |
| encode | 1 2 3 4 5 6 7 9 10 11 12 14 | 对字典条目进行编码 |
| head | 1 2 3 4 5 6 7 9 10 11 12 14 | 添加前缀 |
| tail | 1 2 3 4 5 6 7 9 10 11 12 14 | 添加后缀 |
| encode | 1 2 3 4 5 6 7 9 10 11 12 14 | 编码或自定义加密方法 |
| occur | 3 4 5 7 9 10 11 12 14 | 字母、数字、特殊字符出现次数范围筛选 |
| types | 3 4 5 7 9 10 11 12 14 | 字母、数字、特殊字符各种类数范围筛选 |
| regex | 3 4 5 7 9 10 11 12 14 | 正则筛选 |
Expand All @@ -90,14 +90,14 @@ python pydictor.py


## 使用实例
#### 1: 生成4位纯数字爆破字典, 并保存到'D:\exits\or\not\dict.txt'文件中
#### 1: 生成4位纯数字爆破字典, 并保存到'D:\exists\or\not\dict.txt'文件中
```
python pydictor.py -base d --len 4 4 --output D:\exits\or\not\dict.txt
python pydictor.py -base d --len 4 4 --output D:\exists\or\not\dict.txt
```

#### 2: 生成1-3位小写字母—名字首字母拼音缩写爆破字典, 并用base64编码
#### 2: 生成1-3位小写字母—名字首字母拼音缩写爆破字典, 并用base64编码
```
python pydictor.py -base c --len 1 3 --encode b64
python pydictor.py -base L --len 1 3 --encode b64
```

#### 示例3: 生成包含数字、小写与大写字母的1-4位(默认)爆破字典,保存到'/awesome/pwd' 目录
Expand Down Expand Up @@ -195,7 +195,7 @@ python pydictor.py --conf /my/other/awesome.conf 使用/my/other/awesome.conf
url urlencode
sha256 sha256 摘要算法
sha512 sha512 摘要算法
test 修改/lib/fun/encode.py中的test_encode方法,自定义加密方式
test 修改/lib/fun/encode.py中的test_encode方法,自定义加密方式
```

#### 示例10: 字典处理工具
Expand Down Expand Up @@ -334,7 +334,7 @@ s = 5
">=0" ">=0" ">=0"
```

#### 示例12: 字典筛选社会工程学字典
#### 示例12: 社会工程学字典

```
_ _ _
Expand Down
14 changes: 10 additions & 4 deletions funcfg/extend.conf
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
1 win
1 [fuck, nima, ]
1 19[8,9]{1,1}<none>[0-9]{1,1}<none>[.,_,@]{1,1}<none>
1 20[0-2]{1,1}<none>[0,9]{1,1}<none>[.,_,@]{1,1}<none>
1 20[0-2]{1,1}<none>[0-9]{1,1}<none>[.,_,@]{1,1}<none>
2 [a-z]
2 [2-9]
2 [0-1]{2,2}<none>
2 [001, 111, 123, 1qa, 2ws, aaa, abc, adm, qaz, web, ]
2 19[8,9]{1,1}<none>[0-9]{1,1}<none>
2 20[0-2]{1,1}<none>[0,9]{1,1}<none>
2 20[0-2]{1,1}<none>[0-9]{1,1}<none>
2 [1qa@, 2ws@, qwer, site, test, ]
2 [admin, qwer_, qwert, site_, ]
2 [111abc, admin., admin@, admin_, admini, qazxsw, qweasd, qwert_, ]
Expand Down Expand Up @@ -71,11 +71,17 @@
1 _1q2w3e4r
1 [000000, 222222, 333333, 444444, 555555, 777777, ]
1 .19[8,9]{1,1}<none>[0-9]{1,1}<none>
1 .20[0-2]{1,1}<none>[0,9]{1,1}<none>
1 .20[0-2]{1,1}<none>[0-9]{1,1}<none>
1 @19[8,9]{1,1}<none>[0-9]{1,1}<none>
1 @20[0-2]{1,1}<none>[0-9]{1,1}<none>
1 _19[8,9]{1,1}<none>[0-9]{1,1}<none>
1 _20[0-2]{1,1}<none>[0-9]{1,1}<none>
1 !19[8,9]{1,1}<none>[0-9]{1,1}<none>
1 !20[0-2]{1,1}<none>[0-9]{1,1}<none>
2 [_,@]{1,1}<none>19[8,9]{1,1}<none>[0-9]{1,1}<none>
2 [_,@]{1,1}<none>20[0-2]{1,1}<none>[0,9]{1,1}<none>
2 19[8,9]{1,1}<none>[0-9]{1,1}<none>
2 20[0-2]{1,1}<none>[0,9]{1,1}<none>
2 20[0-2]{1,1}<none>[0-9]{1,1}<none>
2 [11, 12, 88, aa, ]
2 [741, 999, @qq, aaa, ]
2 [#123, @126, @163, abcd, asdf, qwer, test, ]
Expand Down
2 changes: 1 addition & 1 deletion lib/data/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def init_pyoptions():
pyoptions.dir_rewrite_count = 1

# counter tool max count
pyoptions.vs_counter_switcher = 10000
pyoptions.vs_counter_switcher = 100000

# counter tool split word
pyoptions.counter_split = "\n"
Expand Down
2 changes: 1 addition & 1 deletion tools/combiner.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def combiner_enter(directory=os.path.abspath(sys.argv[0]), need_uniqifer=False):
filepaths = []
combine_list = []
storepath = finalsavepath(paths.results_path, pystrs.COMBINER_prefix, mybuildtime(), pyoptions.filextension,
paths.results_file_name)
paths.results_file_name if not need_uniqifer else None)
for rootpath, subdirsname, filenames in os.walk(directory):
filepaths.extend([os.path.abspath(os.path.join(rootpath, _)) for _ in filenames])
if len(filepaths) > 0:
Expand Down

0 comments on commit 94ebe8e

Please sign in to comment.