File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
# Impacket - Collection of Python classes for working with network protocols.
3
3
#
4
- # Copyright Fortra, LLC and its affiliated companies
4
+ # Copyright Fortra, LLC and its affiliated companies
5
5
#
6
6
# All rights reserved.
7
7
#
30
30
print (version .BANNER )
31
31
32
32
parser = argparse .ArgumentParser (add_help = True , description = "This script will launch a SMB Server and add a "
33
- "share specified as an argument. You need to be root in order to bind to port 445. "
33
+ "share specified as an argument. Usually, you need to be root in order to bind to port 445. "
34
34
"For optional authentication, it is possible to specify username and password or the NTLM hash. "
35
35
"Example: smbserver.py -comment 'My share' TMP /tmp" )
36
36
98
98
server .setSMBChallenge ('' )
99
99
100
100
# Rock and roll
101
- server .start ()
101
+ try :
102
+ server .start ()
103
+ except KeyboardInterrupt :
104
+ print ("\n Interrupted, exiting..." )
105
+ sys .exit (130 )
You can’t perform that action at this time.
0 commit comments