Add system and os functions

This commit is contained in:
tiff 2024-07-10 16:03:58 -04:00
parent 565d75c441
commit 547dd7f0ca
2 changed files with 18 additions and 7 deletions

View file

@ -1,5 +1,9 @@
## Screenshots
![App Screenshot](https://res.cloudinary.com/dnq1cp8ev/image/upload/v1719372913/smb_tvphl4.png)
# SMB Scanner Tool
> [!NOTE]\
@ -9,13 +13,9 @@
## Badges
<p align="center">
<img alt="GitHub Followers" src="https://img.shields.io/github/followers/twhite96?style=for-the-badge&logo=github&logoColor=white&labelColor=black&color=white"> &nbsp; &nbsp;
<img alt="Infosec Exchange Followers" src="https://img.shields.io/mastodon/follow/110494047736700791?domain=https%3A%2F%2Finfosec.exchange&style=for-the-badge&logo=mastodon&logoColor=white&label=%40tiff%20on%20Infosec%20Exchange&labelColor=white&color=%2310B981"> &nbsp;&nbsp;
<img alt="PGO" src="https://img.shields.io/badge/PGP-728E_9212_5304_2C89_FF79%C2%A0_5463_A720_CEE5_FA60_40F4-10B981?style=for-the-badge&logoColor=black&labelColor=white">
</p>
![GitHub followers](https://img.shields.io/github/followers/twhite96?style=for-the-badge&logo=github&logoColor=white&labelColor=black&color=white)
![Mastodon Follow](https://img.shields.io/mastodon/follow/110494047736700791?domain=https%3A%2F%2Finfosec.exchange&style=for-the-badge&logo=mastodon&logoColor=white&label=%40tiff%20on%20Infosec%20Exchange&labelColor=white&color=%2310B981)
![Static Badge](https://img.shields.io/badge/PGP-728E_9212_5304_2C89_FF79%C2%A0_5463_A720_CEE5_FA60_40F4-10B981?style=for-the-badge&logoColor=black&labelColor=white)
## Acknowledgements

View file

@ -8,6 +8,8 @@ from os.path import exists
import datetime
import textwrap
import sys
import getpass
global domain
@ -34,3 +36,12 @@ def options():
Fore.YELLOW + Style.BRIGHT,
Fore.RED + Style.BRIGHT,
)
def get_os_type():
if sys.platform.startswith("win32"):
getpass.getuser()
elif sys.platform.startswith("dariwn"):
pass
elif sys.platform.startswith("linux"):
pass