-
Notifications
You must be signed in to change notification settings - Fork 34
/
helper.py
38 lines (27 loc) · 808 Bytes
/
helper.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import sys
import os
def check_python_version():
version = sys.version
cache = str(version).replace('sys.version_info(major=', '')
nummer = cache[0]
if nummer == "2":
return False
else:
return True
def check_sudo():
if os.geteuid() != 0:
return False
else:
return True
def logo():
return """
__ __.__ __________
/ \ / \__|______ ____\______ \__ __ ____
\ \/\/ / \_ __ \_/ __ \| | _/ | \/ ___\\
>>>>>\>>>>>>>>/|>>||>>|>\/\>>>>>/|>>>>|>>>\>>|>>/>/>/>>>>>>>
\__/\ / |__||__| \___ .______ /____/\___ /
\/ \/ \/ /_____/
by Moritz Abrell - SySS GmbH, 2019 - 2021
Follow the wizard to use WireBug.
Use TAB to show possible options.
"""