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) ![App Screenshot](https://res.cloudinary.com/dnq1cp8ev/image/upload/v1719372913/smb_tvphl4.png)
# SMB Scanner Tool # SMB Scanner Tool
> [!NOTE]\ > [!NOTE]\
@ -9,13 +13,9 @@
## Badges ## Badges
<p align="center"> ![GitHub followers](https://img.shields.io/github/followers/twhite96?style=for-the-badge&logo=github&logoColor=white&labelColor=black&color=white)
<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; ![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)
<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; ![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)
<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>
## Acknowledgements ## Acknowledgements

View file

@ -8,6 +8,8 @@ from os.path import exists
import datetime import datetime
import textwrap import textwrap
import sys import sys
import getpass
global domain global domain
@ -34,3 +36,12 @@ def options():
Fore.YELLOW + Style.BRIGHT, Fore.YELLOW + Style.BRIGHT,
Fore.RED + 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