mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
Added doc string to check_platform
This commit is contained in:
parent
9f70af7ecb
commit
b4a365de15
|
@ -221,6 +221,13 @@ def check_php():
|
|||
exit()
|
||||
|
||||
def check_platform(required_data):
|
||||
"""Checks system for specific platform related data and returns requested value.
|
||||
|
||||
Args:
|
||||
required_data (string): accepts "system" or "architecture"
|
||||
Returns:
|
||||
string: data requested by required_data, Returns all if required_data isn't specified.
|
||||
"""
|
||||
system = platform.system()
|
||||
architecture = platform.machine()
|
||||
if required_data == "system":
|
||||
|
|
Loading…
Reference in New Issue
Block a user