diff --git a/easy_p.py b/easy_p.py index e230ac8..c1ff205 100644 --- a/easy_p.py +++ b/easy_p.py @@ -21,10 +21,7 @@ print "PowerShell/WMI Generator" def clear(): - try: - sp.call('cls',shell=True) - except: - sp.call('clear',shell=True) + tos.system('cls' if os.name == 'nt' else 'clear') def powershell_encode(data): #https://github.com/darkoperator/powershell_scripts/blob/master/ps_encoder.py #Carlos - aka Darkoperator wrote the code below: