Skip to content

Commit 020eec1

Browse files
authored
Merge pull request #90 from H4ckForJob/dev
[+] Dev分支合并
2 parents 5e2394d + 448b47d commit 020eec1

File tree

6 files changed

+623
-601
lines changed

6 files changed

+623
-601
lines changed

dirmap.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@Author: xxlin
66
@LastEditors: xxlin
77
@Date: 2019-04-10 13:27:59
8-
@LastEditTime: 2019-05-01 17:57:11
8+
@LastEditTime: 2023-07-25 15:56:04
99
'''
1010

1111
import os
@@ -26,7 +26,10 @@ def main():
2626
"""
2727
main fuction of dirmap
2828
"""
29-
29+
# Make sure the version of python you are using is high enough
30+
if sys.version_info < (3, 8):
31+
outputscreen.error("Sorry, dirmap requires Python 3.8 or higher\n")
32+
sys.exit(1)
3033
# anyway output thr banner information
3134
banner()
3235

@@ -42,7 +45,11 @@ def main():
4245
initOptions(cmdLineOptions)
4346

4447
# run!
45-
run()
48+
try:
49+
run()
50+
except KeyboardInterrupt:
51+
outputscreen.success("[+] exit")
52+
sys.exit(1)
4653

4754
if __name__ == "__main__":
4855
main()

doc/dirmap.png

-60.1 KB
Loading

0 commit comments

Comments
 (0)