8000 GitHub - 2Klasic/sysnet: A tool to recover system and network infos
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

2Klasic/sysnet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SYSNET

Build Status Platform  Packagist  Packagist 

Usage : sysnet [OPTIONS]
 -s, --system   print system informations
 -n, --network  print network informations
 -a, --all      print all informations
 -v, --version  print version

Sysnet is a tool which recover system & network informations. This tool supports Linux, OS X Windows & iOS

System

If you run sysnet with -s argument it prints some system informations about your processor and your operating system.

User : mathieu
Operating System : Linux
version : 3.16.0-4-686-pae
architecture : i686
Disk usage of / : 3352797184
Free space in / : 2452209664
Total : 1510039552

Network

To recover network informations such as IPv6 address or all interfaces on a machine, I used an awesome library : ifaddrs.h.

Specialy a function called getifaddrs that creates a linked list of structures describing the network interfaces of the local system.

Instead of ifconfig, you don't have to run sysnet as root on Debian.

hostname: debian-dev
lo
	address: 127.0.0.1
	netmask: 255.0.0.0
eth0
	address: 192.168.72.140
	netmask: 255.255.255.0
IPv6 lo
	address: ::1
IPv6 eth0
	address: fe80::20c:29ff:fe08:74f8%eth0

Demo

Here is a demo of sysnet running on GNU/Linux Debian 8.5.

sysnet demo

Platforms tested :

  • Linux
  • macOS
  • Windows
  • iOS 9

TODO

The TODO list is here

Installation

I wrote a Makefile to build sysnet run make & sudo make install to build and install

Make sure you have GCC installed

By default, the install directory is /usr/bin/, you can change it by modifying INSTALL_DIR variable in the Makefile

Credits

Tool developed by @matteyeux

About

A tool to recover system and network infos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 93.2%
  • Makefile 6.8%
0