Skip to content

Commit a9f3eae

Browse files
committed
修改
1 parent 13899eb commit a9f3eae

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

.DS_Store

6 KB
Binary file not shown.

zoomeye/cli.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -51,23 +51,23 @@ def main():
5151
parser_info.set_defaults(func=core.info)
5252

5353
# query zoomeye data
54-
parser_search = subparsers.add_parser(
54+
P_search = subparsers.add_parser(
5555
"search",
5656
help="Search the ZoomEye database"
5757
)
5858

59-
parser_search.add_argument(
59+
P_search.add_argument(
6060
"dork",
6161
help="The ZoomEye search keyword or ZoomEye exported file"
6262
)
63-
parser_search.add_argument(
63+
P_search.add_argument(
6464
"-num",
6565
default=20,
6666
help="The number of search results that should be returned, support 'all'",
6767
type=str,
6868
metavar='value'
6969
)
70-
parser_search.add_argument(
70+
P_search.add_argument(
7171
"-facet",
7272
default=None,
7373
nargs='?',
@@ -80,7 +80,7 @@ def main():
8080
'''),
8181
metavar='field'
8282
)
83-
parser_search.add_argument(
83+
P_search.add_argument(
8484
"-filter",
8585
default=None,
8686
metavar='field=regexp',
@@ -93,7 +93,7 @@ def main():
9393
web field: [app,headers,keywords,title,site,city,country,webapp,component,framework,server,waf,os,timestamp,*]
9494
''')
9595
)
96-
parser_search.add_argument(
96+
P_search.add_argument(
9797
'-stat',
9898
default=None,
9999
metavar='field',
@@ -106,7 +106,7 @@ def main():
106106
web field: [webapp,component,framework,server,waf,os,country]
107107
''')
108108
)
109-
parser_search.add_argument(
109+
P_search.add_argument(
110110
"-save",
111111
default=None,
112112
metavar='field=regexp',
@@ -118,18 +118,18 @@ def main():
118118
type=str,
119119
const='all'
120120
)
121-
parser_search.add_argument(
121+
P_search.add_argument(
122122
"-count",
123123
help="The total number of results in ZoomEye database for a search",
124124
action="store_true"
125125
)
126-
parser_search.add_argument(
126+
P_search.add_argument(
127127
"-figure",
128128
help="Pie chart or bar chart showing data,can only be used under facet and stat",
129129
choices=('pie', 'hist'),
130130
default=None
131131
)
132-
parser_search.add_argument(
132+
P_search.add_argument(
133133
"-type",
134134
help=(
135135
"""
@@ -139,7 +139,7 @@ def main():
139139
choices={'web', 'host'},
140140
default="host"
141141
)
142-
parser_search.add_argument(
142+
P_search.add_argument(
143143
"-force",
144144
help=(
145145
"""
@@ -148,12 +148,12 @@ def main():
148148
),
149149
action="store_true"
150150
)
151-
parser_search.set_defaults(func=core.search)
151+
P_search.set_defaults(func=core.search)
152152

153153
# initial account configuration related commands
154-
parser_init = subparsers.add_parser("init", help="Initialize the token for ZoomEye-python")
155-
parser_init.add_argument("-apikey", help="ZoomEye API Key", default=None, metavar='[api key]')
156-
parser_init.set_defaults(func=core.init)
154+
P_init = subparsers.add_parser("init", help="Initialize the token for ZoomEye-python")
155+
P_init.add_argument("-apikey", help="ZoomEye API Key", default=None, metavar='[api key]')
156+
P_init.set_defaults(func=core.init)
157157

158158
parser_ip_info = subparsers.add_parser("ip", help="Query IP information")
159159
parser_ip_info.add_argument("ip", help="search device IP", metavar='ip', type=str)

0 commit comments

Comments
 (0)