This script collects various system details such as device information, logged-in users, MAC addresses, IP addresses, and installed applications. It then generates both an Excel and a PDF report containing this information.
- Collects system details (device name, processor, RAM, etc.)
- Retrieves information about logged-in users
- Gets the MAC address and IP addresses of the system
- Gathers a list of installed applications (Windows only)
- Creates Excel and PDF reports
- Python 3.x
- Required packages:
platform
,socket
,psutil
,pandas
,subprocess
,datetime
,getmac
,tkinter
,reportlab
Install the required packages using pip:
pip install -r requirements.txt
- Run the script:
- Select the directory where you want to save the reports.
python main.py
The script will generate system_audit_report.xlsx
and system_audit_report.pdf
in the selected directory.
The script includes the following functions:
get_system_details()
: Collects system-related information.get_users()
: Retrieves information about logged-in users.get_mac_addresses()
: Gets the MAC address of the system.get_ip_addresses()
: Gathers IP address details for all network interfaces.get_installed_apps_windows()
: Uses a PowerShell command to get a list of installed applications on Windows.create_excel_report()
: Generates an Excel report and saves it to the specified path.create_pdf_report()
: Generates a PDF report and saves it to the specified path.get_save_path()
: Opens a file dialog for the user to select a directory to save the reports.
Contributions are welcome! Please fork this repository and submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE
file for more details.