File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44__copyright__ = "Copyright 2015, The UsefulShell || A Worldev Project"
55__credits__ = ["Miquel Comas (Mikicat)" , "JeDa" , "NeoMahler" ]
66__license__ = "GPLv3"
7- __version__ = "v1.0 "
7+ __version__ = "v1.1 "
88__maintainer__ = "Miquel Comas (Mikicat), Worldev"
99__email__ = "usefulshellproject@gmail.com"
1010__status__ = "Development"
@@ -125,7 +125,7 @@ def clear():
125125 except ConnectionRefusedError :
126126 print (bcolors .FAIL + 'Connection refused' + bcolors .ENDC )
127127 except IndexError :
128- pass
128+ print ( bcolors . WARNING + 'Syntax: <host> <port> <user> <passwd>' + bcolors . ENDC )
129129 else :
130130 pass
131131 except IndexError :
@@ -314,7 +314,10 @@ def clear():
314314 import this
315315
316316 elif "ping" in shell :
317- ping (shell [1 ])
317+ try :
318+ ping (shell [1 ])
319+ except IndexError :
320+ print ('What I\' m supposed to ping?' )
318321
319322 elif "http" and "server" in shell :
320323 run ()
You can’t perform that action at this time.
0 commit comments