diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index 8e61b4e..0000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,2 +0,0 @@ -Steps to follow for contribute -Adding video and text tutorial diff --git a/LinuxInfo.py b/LinuxInfo.py index 3bf7842..2d79832 100644 --- a/LinuxInfo.py +++ b/LinuxInfo.py @@ -1,3 +1,8 @@ +''' + Author : Deepak Chauhan + GitHub : https://github.com/royaleagle73 + Email : 2018PGCACA63@nitjsr.ac.in +''' import os import threading from timeit import default_timer as timer diff --git a/README.md b/README.md index 1b53e70..91e4ffb 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ Software Information Storage Information Hardware Information File Information +Ports Information ``` and help you to export into text file. @@ -49,28 +50,46 @@ if you want to create any class add it in following directory ``` 2. :file_folder: img : ``` -contains all project images. +contains all images related to project and screenshots of Input and Output screen. ``` 3. :file_folder: output : ``` Here final generated file will added ``` -4. :page_facing_up: Cinfo.py: +4. :page_facing_up: Linuxinfo.py: +``` +This file contains all working code for linux system. +``` +5. :page_facing_up: Windowsinfo.py: +``` +This file contains all working code for windows system. +``` +6. :page_facing_up: Cinfo.py: ``` This file is start of this project . -simply run this code to execute this projects. +simply run this code to execute this project. ``` - ### Install -Download or clone this repository and extract in your Local Machine go to the extracted folder. -use Windows console and run +Download or clone this repository and extract in your Local Machine and go to the extracted folder. +use Windows console and install all requirements using command.. +On any Operating system, run this command to install all dependencies : +``` +pip3 install -r requirements.txt +``` +Now run the program by following command in any operating system of your choice : + +In windows: ``` python Cinfo.py ``` +In linux / mac OS: +``` +python3 Cinfo.py +``` ![run](https://github.com/chavarera/Cinfo/blob/master/img/run.PNG) diff --git a/__pycache__/LinuxInfo.cpython-37.pyc b/__pycache__/LinuxInfo.cpython-37.pyc deleted file mode 100644 index c01cb00..0000000 Binary files a/__pycache__/LinuxInfo.cpython-37.pyc and /dev/null differ diff --git a/data.json b/data.json deleted file mode 100644 index 68fc044..0000000 --- a/data.json +++ /dev/null @@ -1 +0,0 @@ -"{\n \"hardware\": {\n \"bios\": {\n \"Manufacturer\": \"LENOVO\",\n \"SMBIOSBIOSVe\": \"62CN34WW\",\n \"SerialNumber\": \"WB06631325WB0206050C\"\n },\n \"cpu\": {\n \"Logical proces.\": \"2\",\n \"Name of the cpu\": \"Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz\",\n \"Number of cores\": \"2\"\n },\n \"usb\": {\n \"ROOT_HUB2\": 2,\n \"ROOT_HUB3\": 1\n }\n },\n \"network\": {\n \"HostNodeName\": \"EKPubgikar\",\n \"IpAddress\": \"192.168.137.1\",\n \"MacAddress\": \"E0:06:E6:BF:14:6A\",\n \"ip\": [\n \"\",\n \"Windows IP Configuration\",\n \"\",\n \" Host Name . . . . . . . . . . . . : EKPubgikar\",\n \" Primary Dns Suffix . . . . . . . : \",\n \" Node Type . . . . . . . . . . . . : Hybrid\",\n \" IP Routing Enabled. . . . . . . . : No\",\n \" WINS Proxy Enabled. . . . . . . . : No\",\n \"\",\n \"Ethernet adapter Ethernet:\",\n \"\",\n \" Media State . . . . . . . . . . . : Media disconnected\",\n \" Connection-specific DNS Suffix . : \",\n \" Description . . . . . . . . . . . : Qualcomm Atheros AR8162/8166/8168 PCI-E Fast Ethernet Controller (NDIS 6.30)\",\n \" Physical Address. . . . . . . . . : 3C-97-0E-38-16-AD\",\n \" DHCP Enabled. . . . . . . . . . . : Yes\",\n \" Autoconfiguration Enabled . . . . : Yes\",\n \"\",\n \"Wireless LAN adapter Local Area Connection* 1:\",\n \"\",\n \" Media State . . . . . . . . . . . : Media disconnected\",\n \" Connection-specific DNS Suffix . : \",\n \" Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter\",\n \" Physical Address. . . . . . . . . : 12-68-9D-EC-F9-08\",\n \" DHCP Enabled. . . . . . . . . . . : Yes\",\n \" Autoconfiguration Enabled . . . . : Yes\",\n \"\",\n \"Wireless LAN adapter Wi-Fi:\",\n \"\",\n \" Connection-specific DNS Suffix . : \",\n \" Description . . . . . . . . . . . : Qualcomm Atheros AR9285 Wireless Network Adapter\",\n \" Physical Address. . . . . . . . . : 20-68-9D-EC-F9-08\",\n \" DHCP Enabled. . . . . . . . . . . : Yes\",\n \" Autoconfiguration Enabled . . . . : Yes\",\n \" Link-local IPv6 Address . . . . . : fe80::6105:e1f7:ed1f:863%6(Preferred) \",\n \" IPv4 Address. . . . . . . . . . . : 192.168.31.25(Preferred) \",\n \" Subnet Mask . . . . . . . . . . . : 255.255.255.0\",\n \" Lease Obtained. . . . . . . . . . : Thursday, December 12, 2019 11:14:13 PM\",\n \" Lease Expires . . . . . . . . . . : Friday, December 13, 2019 11:14:13 AM\",\n \" Default Gateway . . . . . . . . . : 192.168.31.1\",\n \" DHCP Server . . . . . . . . . . . : 192.168.31.1\",\n \" DHCPv6 IAID . . . . . . . . . . . : 69232797\",\n \" DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-24-7F-3F-18-3C-97-0E-38-16-AD\",\n \" DNS Servers . . . . . . . . . . . : 8.8.8.8\",\n \" 8.8.4.4\",\n \" NetBIOS over Tcpip. . . . . . . . : Enabled\",\n \"\",\n \"Wireless LAN adapter Local Area Connection* 2:\",\n \"\",\n \" Connection-specific DNS Suffix . : \",\n \" Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter #2\",\n \" Physical Address. . . . . . . . . : 22-68-9D-EC-F9-08\",\n \" DHCP Enabled. . . . . . . . . . . : No\",\n \" Autoconfiguration Enabled . . . . : Yes\",\n \" Link-local IPv6 Address . . . . . : fe80::5d28:40c7:a850:61d4%12(Preferred) \",\n \" IPv4 Address. . . . . . . . . . . : 192.168.137.1(Preferred) \",\n \" Subnet Mask . . . . . . . . . . . : 255.255.255.0\",\n \" Default Gateway . . . . . . . . . : \",\n \" DHCPv6 IAID . . . . . . . . . . . : 203581597\",\n \" DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-24-7F-3F-18-3C-97-0E-38-16-AD\",\n \" DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1\",\n \" fec0:0:0:ffff::2%1\",\n \" fec0:0:0:ffff::3%1\",\n \" NetBIOS over Tcpip. . . . . . . . : Enabled\",\n \"\",\n \"Ethernet adapter Bluetooth Network Connection:\",\n \"\",\n \" Media State . . . . . . . . . . . : Media disconnected\",\n \" Connection-specific DNS Suffix . : \",\n \" Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)\",\n \" Physical Address. . . . . . . . . : E0-06-E6-BF-14-6A\",\n \" DHCP Enabled. . . . . . . . . . . : Yes\",\n \" Autoconfiguration Enabled . . . . : Yes\"\n ]\n },\n \"software\": [\n {\n \"name\": \"AppGini Free Trial Edition version 5.76\",\n \"publisher\": \"BigProf Software\",\n \"version\": \"5.76\"\n },\n {\n \"name\": \"Google Chrome\",\n \"publisher\": \"Google LLC\",\n \"version\": \"78.0.3904.108\"\n },\n {\n \"name\": \"kdenlive\",\n \"publisher\": \"KDE e.V.\",\n \"version\": \"19.08.2\"\n },\n {\n \"name\": \"JetBrains PyCharm Community Edition 2019.2.1\",\n \"publisher\": \"JetBrains s.r.o.\",\n \"version\": \"192.6262.63\"\n },\n {\n \"name\": \"XAMPP\",\n \"publisher\": \"Bitnami\",\n \"version\": \"7.3.5-1\"\n },\n {\n \"name\": \"OpenOffice 4.1.6\",\n \"publisher\": \"Apache Software Foundation\",\n \"version\": \"4.16.9790\"\n },\n {\n \"name\": \"XiaoMiFlash\",\n \"publisher\": \"XiaoMi\",\n \"version\": \"1.1.4\"\n },\n {\n \"name\": \"Java Auto Updater\",\n \"publisher\": \"Oracle Corporation\",\n \"version\": \"2.8.231.11\"\n },\n {\n \"name\": \"Microsoft Visual C++ 2015 Redistributable (x64) - 14.0.23918\",\n \"publisher\": \"Microsoft Corporation\",\n \"version\": \"14.0.23918.0\"\n },\n {\n \"name\": \"Python Launcher\",\n \"publisher\": \"Python Software Foundation\",\n \"version\": \"3.7.6860.0\"\n },\n {\n \"name\": \"PHPRad Classic version 2.4.1\",\n \"publisher\": \"RadSystems\",\n \"version\": \"2.4.1\"\n },\n {\n \"name\": \"Google Update Helper\",\n \"publisher\": \"Google LLC\",\n \"version\": \"1.3.35.341\"\n },\n {\n \"name\": \"Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.6161\",\n \"publisher\": \"Microsoft Corporation\",\n \"version\": \"9.0.30729.6161\"\n },\n {\n \"name\": \"Google Update Helper\",\n \"publisher\": \"Google Inc.\",\n \"version\": \"1.3.99.0\"\n },\n {\n \"name\": \"Adobe Refresh Manager\",\n \"publisher\": \"Adobe Systems Incorporated\",\n \"version\": \"1.8.0\"\n },\n {\n \"name\": \"Adobe Acrobat Reader DC\",\n \"publisher\": \"Adobe Systems Incorporated\",\n \"version\": \"19.021.20056\"\n },\n {\n \"name\": \"Lenovo EasyCamera\",\n \"publisher\": \"Vimicro\",\n \"version\": \"3.15.0414.1\"\n },\n {\n \"name\": \"Microsoft Visual C++ 2015 x86 Minimum Runtime - 14.0.23918\",\n \"publisher\": \"Microsoft Corporation\",\n \"version\": \"14.0.23918\"\n },\n {\n \"name\": \"ShareX\",\n \"publisher\": \"ShareX Team\",\n \"version\": \"13.0.1\"\n },\n {\n \"name\": \"Anaconda3 2019.03 (Python 3.7.3 64-bit)\",\n \"publisher\": \"Anaconda, Inc.\",\n \"version\": \"2019.03\"\n },\n {\n \"name\": \"Android Studio\",\n \"publisher\": \"Google LLC\",\n \"version\": \"3.4\"\n },\n {\n \"name\": \"ELAN Touchpad 11.15.0.18_X64\",\n \"publisher\": \"ELAN Microelectronic Corp.\",\n \"version\": \"11.15.0.18\"\n },\n {\n \"name\": \"Git version 2.21.0\",\n \"publisher\": \"The Git Development Community\",\n \"version\": \"2.21.0\"\n },\n {\n \"name\": \"ImageMagick 7.0.8-49 Q16 (64-bit) (2019-06-08)\",\n \"publisher\": \"ImageMagick Studio LLC\",\n \"version\": \"7.0.8\"\n },\n {\n \"name\": \"Mozilla Firefox 67.0.2 (x64 en-US)\",\n \"publisher\": \"Mozilla\",\n \"version\": \"67.0.2\"\n },\n {\n \"name\": \"Tesseract-OCR - open source OCR engine\",\n \"publisher\": \"Tesseract-OCR community\",\n \"version\": \"v5.0.0.20190526\"\n },\n {\n \"name\": \"VLC media player\",\n \"publisher\": \"VideoLAN\",\n \"version\": \"3.0.8\"\n },\n {\n \"name\": \"WinRAR 5.71 (64-bit)\",\n \"publisher\": \"win.rar GmbH\",\n \"version\": \"5.71.0\"\n },\n {\n \"name\": \"Python 3.7.5 Tcl/Tk Support (64-bit symbols)\",\n \"publisher\": \"Python Software Foundation\",\n \"version\": \"3.7.5150.0\"\n },\n {\n \"name\": \"Microsoft Visual C++ 2010 x64 Redistributable - 10.0.40219\",\n \"publisher\": \"Microsoft Corporation\",\n \"version\": \"10.0.40219\"\n },\n {\n \"name\": \"Node.js\",\n \"publisher\": \"Node.js Foundation\",\n \"version\": \"10.16.3\"\n },\n {\n \"name\": \"Java 8 Update 231 (64-bit)\",\n \"publisher\": \"Oracle Corporation\",\n \"version\": \"8.0.2310.11\"\n },\n {\n \"name\": \"Microsoft Visual C++ 2008 Redistributable - x64 9.0.30729.6161\",\n \"publisher\": \"Microsoft Corporation\",\n \"version\": \"9.0.30729.6161\"\n },\n {\n \"name\": \"Java SE Development Kit 8 Update 211 (64-bit)\",\n \"publisher\": \"Oracle Corporation\",\n \"version\": \"8.0.2110.12\"\n },\n {\n \"name\": \"Dokan Library 1.0.1.81 (x64)\",\n \"publisher\": \"Dokany Project\",\n \"version\": \"1.0.1.81\"\n },\n {\n \"name\": \"Revo Uninstaller Pro 3.1.8\",\n \"publisher\": \"VS Revo Group, Ltd.\",\n \"version\": \"3.1.8\"\n },\n {\n \"name\": \"Intel\\u00ae Hardware Accelerated Execution Manager\",\n \"publisher\": \"Intel Corporation\",\n \"version\": \"7.5.1\"\n },\n {\n \"name\": \"Microsoft Visual C++ 2015 x64 Minimum Runtime - 14.0.23918\",\n \"publisher\": \"Microsoft Corporation\",\n \"version\": \"14.0.23918\"\n },\n {\n \"name\": \"DB Browser for SQLite\",\n \"publisher\": \"DB Browser for SQLite Team\",\n \"version\": \"3.11.2\"\n }\n ],\n \"storage\": {\n \"DiskSize\": [\n {\n \"Name\": \"TOSHIBA MK6465GSX\",\n \"TotalSize\": \"596.17 GB\"\n },\n {\n \"Name\": \"Multiple Card Reader USB\",\n \"TotalSize\": null\n }\n ],\n \"Partions\": [\n {\n \"FreeSpace\": \"17.04 GB\",\n \"Name\": \"C\",\n \"TotalSize\": \"130.16 GB\"\n },\n {\n \"FreeSpace\": \"44.19 GB\",\n \"Name\": \"D\",\n \"TotalSize\": \"200.0 GB\"\n },\n {\n \"FreeSpace\": \"56.88 GB\",\n \"Name\": \"E\",\n \"TotalSize\": \"78.43 GB\"\n },\n {\n \"FreeSpace\": \"28.41 GB\",\n \"Name\": \"F\",\n \"TotalSize\": \"186.17 GB\"\n }\n ],\n \"Ram\": [\n {\n \"PhysicalMemory\": \"3.85 GB\"\n }\n ]\n },\n \"system\": {\n \"BuildBranch\": \"19h1_release\",\n \"BuildLab\": \"18362.19h1_release.190318-1202\",\n \"BuildLabEx\": \"18362.1.amd64fre.19h1_release.190318-1202\",\n \"CompositionID\": \"Enterprise\",\n \"CurrentBuild\": \"18362\",\n \"EditionID\": \"Professional\",\n \"InstallDate\": \"2019-07-22 21:26:04\",\n \"Machine Name\": \"AMD64\",\n \"Network Name\": \"EKPubgikar\",\n \"PathName\": \"C:\\\\Windows\",\n \"Platform Type\": \"Windows-10-10.0.18362-SP0\",\n \"Processor Name\": \"Intel64 Family 6 Model 58 Stepping 9, GenuineIntel\",\n \"ProductId\": \"00330-70007-80970-AAOEM\",\n \"ProductName\": \"Windows 10 Pro\",\n \"Release No \": \"10\",\n \"ReleaseId\": \"1903\",\n \"SoftwareType\": \"System\",\n \"System Type\": \"Windows\",\n \"SystemRoot\": \"C:\\\\WINDOWS\",\n \"Version No\": \"10.0.18362\"\n },\n \"webbrowser\": [\n \"Firefox-308046B0AF4A39CB\",\n \"Google Chrome\",\n \"IEXPLORE.EXE\"\n ]\n}" \ No newline at end of file diff --git a/lib/linux/__pycache__/get_browsers.cpython-37.pyc b/lib/linux/__pycache__/get_browsers.cpython-37.pyc deleted file mode 100644 index 8edee12..0000000 Binary files a/lib/linux/__pycache__/get_browsers.cpython-37.pyc and /dev/null differ diff --git a/lib/linux/__pycache__/get_drives.cpython-37.pyc b/lib/linux/__pycache__/get_drives.cpython-37.pyc deleted file mode 100644 index be29b56..0000000 Binary files a/lib/linux/__pycache__/get_drives.cpython-37.pyc and /dev/null differ diff --git a/lib/linux/__pycache__/get_hw_info.cpython-37.pyc b/lib/linux/__pycache__/get_hw_info.cpython-37.pyc deleted file mode 100644 index a975af1..0000000 Binary files a/lib/linux/__pycache__/get_hw_info.cpython-37.pyc and /dev/null differ diff --git a/lib/linux/__pycache__/get_network_info.cpython-37.pyc b/lib/linux/__pycache__/get_network_info.cpython-37.pyc deleted file mode 100644 index d090588..0000000 Binary files a/lib/linux/__pycache__/get_network_info.cpython-37.pyc and /dev/null differ diff --git a/lib/linux/__pycache__/get_os_info.cpython-37.pyc b/lib/linux/__pycache__/get_os_info.cpython-37.pyc deleted file mode 100644 index 1839133..0000000 Binary files a/lib/linux/__pycache__/get_os_info.cpython-37.pyc and /dev/null differ diff --git a/lib/linux/__pycache__/get_package_list.cpython-37.pyc b/lib/linux/__pycache__/get_package_list.cpython-37.pyc deleted file mode 100644 index f9d3bfa..0000000 Binary files a/lib/linux/__pycache__/get_package_list.cpython-37.pyc and /dev/null differ diff --git a/lib/linux/__pycache__/get_ports.cpython-37.pyc b/lib/linux/__pycache__/get_ports.cpython-37.pyc deleted file mode 100644 index bc1cb04..0000000 Binary files a/lib/linux/__pycache__/get_ports.cpython-37.pyc and /dev/null differ diff --git a/lib/linux/__pycache__/get_startup_list.cpython-37.pyc b/lib/linux/__pycache__/get_startup_list.cpython-37.pyc deleted file mode 100644 index a3db8ed..0000000 Binary files a/lib/linux/__pycache__/get_startup_list.cpython-37.pyc and /dev/null differ diff --git a/lib/linux/__pycache__/list_files.cpython-37.pyc b/lib/linux/__pycache__/list_files.cpython-37.pyc deleted file mode 100644 index 6f085ad..0000000 Binary files a/lib/linux/__pycache__/list_files.cpython-37.pyc and /dev/null differ diff --git a/lib/linux/get_browsers.py b/lib/linux/get_browsers.py index 8155db0..c9d7c8c 100644 --- a/lib/linux/get_browsers.py +++ b/lib/linux/get_browsers.py @@ -1,3 +1,8 @@ +''' + Author : Deepak Chauhan + GitHub : https://github.com/royaleagle73 + Email : 2018PGCACA63@nitjsr.ac.in +''' import os class get_browsers: diff --git a/lib/linux/get_drives.py b/lib/linux/get_drives.py index e9c499b..0edc271 100644 --- a/lib/linux/get_drives.py +++ b/lib/linux/get_drives.py @@ -1,3 +1,8 @@ +''' + Author : Deepak Chauhan + GitHub : https://github.com/royaleagle73 + Email : 2018PGCACA63@nitjsr.ac.in +''' import os from tabulate import tabulate diff --git a/lib/linux/get_hw_info.py b/lib/linux/get_hw_info.py index f3488d6..62744a1 100644 --- a/lib/linux/get_hw_info.py +++ b/lib/linux/get_hw_info.py @@ -1,3 +1,8 @@ +''' + Author : Deepak Chauhan + GitHub : https://github.com/royaleagle73 + Email : 2018PGCACA63@nitjsr.ac.in +''' import os from tabulate import tabulate diff --git a/lib/linux/get_network_info.py b/lib/linux/get_network_info.py index 6621210..59a1fc6 100644 --- a/lib/linux/get_network_info.py +++ b/lib/linux/get_network_info.py @@ -1,3 +1,8 @@ +''' + Author : Deepak Chauhan + GitHub : https://github.com/royaleagle73 + Email : 2018PGCACA63@nitjsr.ac.in +''' import os from tabulate import tabulate diff --git a/lib/linux/get_os_info.py b/lib/linux/get_os_info.py index a083ffd..3a4c254 100644 --- a/lib/linux/get_os_info.py +++ b/lib/linux/get_os_info.py @@ -1,3 +1,8 @@ +''' + Author : Deepak Chauhan + GitHub : https://github.com/royaleagle73 + Email : 2018PGCACA63@nitjsr.ac.in +''' import os from tabulate import tabulate diff --git a/lib/linux/get_package_list.py b/lib/linux/get_package_list.py index dfa7e6c..1fd9807 100644 --- a/lib/linux/get_package_list.py +++ b/lib/linux/get_package_list.py @@ -1,3 +1,8 @@ +''' + Author : Deepak Chauhan + GitHub : https://github.com/royaleagle73 + Email : 2018PGCACA63@nitjsr.ac.in +''' import os class get_package_list: diff --git a/lib/linux/get_ports.py b/lib/linux/get_ports.py index 0548413..4c745dd 100644 --- a/lib/linux/get_ports.py +++ b/lib/linux/get_ports.py @@ -1,3 +1,8 @@ +''' + Author : Deepak Chauhan + GitHub : https://github.com/royaleagle73 + Email : 2018PGCACA63@nitjsr.ac.in +''' import os import re diff --git a/lib/linux/get_startup_list.py b/lib/linux/get_startup_list.py index 9274ba8..30b4b8d 100644 --- a/lib/linux/get_startup_list.py +++ b/lib/linux/get_startup_list.py @@ -1,3 +1,8 @@ +''' + Author : Deepak Chauhan + GitHub : https://github.com/royaleagle73 + Email : 2018PGCACA63@nitjsr.ac.in +''' import os class get_startup_list: diff --git a/lib/linux/list_files.py b/lib/linux/list_files.py index eaad4db..aa7b39e 100644 --- a/lib/linux/list_files.py +++ b/lib/linux/list_files.py @@ -1,3 +1,8 @@ +''' + Author : Deepak Chauhan + GitHub : https://github.com/royaleagle73 + Email : 2018PGCACA63@nitjsr.ac.in +''' import os import filetype import json diff --git a/requirements.txt b/requirements.txt index 58a06be..c51eb6a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ pypiwin32==223 pywin32==227 WMI==1.4.9 -filetype