__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#!/usr/bin/env python3
# Copyright (c) 2009, Giampaolo Rodola'. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""A clone of 'ifconfig' on UNIX.
$ python3 scripts/ifconfig.py
lo:
stats : speed=0MB, duplex=?, mtu=65536, up=yes
incoming : bytes=1.95M, pkts=22158, errs=0, drops=0
outgoing : bytes=1.95M, pkts=22158, errs=0, drops=0
IPv4 address : 127.0.0.1
netmask : 255.0.0.0
IPv6 address : ::1
netmask : ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
MAC address : 00:00:00:00:00:00
docker0:
stats : speed=0MB, duplex=?, mtu=1500, up=yes
incoming : bytes=3.48M, pkts=65470, errs=0, drops=0
outgoing : bytes=164.06M, pkts=112993, errs=0, drops=0
IPv4 address : 172.17.0.1
broadcast : 172.17.0.1
netmask : 255.255.0.0
IPv6 address : fe80::42:27ff:fe5e:799e%docker0
netmask : ffff:ffff:ffff:ffff::
MAC address : 02:42:27:5e:79:9e
broadcast : ff:ff:ff:ff:ff:ff
wlp3s0:
stats : speed=0MB, duplex=?, mtu=1500, up=yes
incoming : bytes=7.04G, pkts=5637208, errs=0, drops=0
outgoing : bytes=372.01M, pkts=3200026, errs=0, drops=0
IPv4 address : 10.0.0.2
broadcast : 10.255.255.255
netmask : 255.0.0.0
IPv6 address : fe80::ecb3:1584:5d17:937%wlp3s0
netmask : ffff:ffff:ffff:ffff::
MAC address : 48:45:20:59:a4:0c
broadcast : ff:ff:ff:ff:ff:ff
"""
from __future__ import print_function
import socket
import psutil
from psutil._common import bytes2human
af_map = {
socket.AF_INET: 'IPv4',
socket.AF_INET6: 'IPv6',
psutil.AF_LINK: 'MAC',
}
duplex_map = {
psutil.NIC_DUPLEX_FULL: "full",
psutil.NIC_DUPLEX_HALF: "half",
psutil.NIC_DUPLEX_UNKNOWN: "?",
}
def main():
stats = psutil.net_if_stats()
io_counters = psutil.net_io_counters(pernic=True)
for nic, addrs in psutil.net_if_addrs().items():
print("%s:" % (nic))
if nic in stats:
st = stats[nic]
print(" stats : ", end='')
print(
"speed=%sMB, duplex=%s, mtu=%s, up=%s"
% (
st.speed,
duplex_map[st.duplex],
st.mtu,
"yes" if st.isup else "no",
)
)
if nic in io_counters:
io = io_counters[nic]
print(" incoming : ", end='')
print(
"bytes=%s, pkts=%s, errs=%s, drops=%s"
% (
bytes2human(io.bytes_recv),
io.packets_recv,
io.errin,
io.dropin,
)
)
print(" outgoing : ", end='')
print(
"bytes=%s, pkts=%s, errs=%s, drops=%s"
% (
bytes2human(io.bytes_sent),
io.packets_sent,
io.errout,
io.dropout,
)
)
for addr in addrs:
print(" %-4s" % af_map.get(addr.family, addr.family), end="")
print(" address : %s" % addr.address)
if addr.broadcast:
print(" broadcast : %s" % addr.broadcast)
if addr.netmask:
print(" netmask : %s" % addr.netmask)
if addr.ptp:
print(" p2p : %s" % addr.ptp)
print("")
if __name__ == '__main__':
main()
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| internal | Folder | 0755 |
|
|
| battery.py | File | 1.14 KB | 0755 |
|
| cpu_distribution.py | File | 3.86 KB | 0755 |
|
| disk_usage.py | File | 1.54 KB | 0755 |
|
| fans.py | File | 771 B | 0755 |
|
| free.py | File | 1.17 KB | 0755 |
|
| ifconfig.py | File | 3.58 KB | 0755 |
|
| iotop.py | File | 4.92 KB | 0755 |
|
| killall.py | File | 693 B | 0755 |
|
| meminfo.py | File | 1.03 KB | 0755 |
|
| netstat.py | File | 1.98 KB | 0755 |
|
| nettop.py | File | 4.32 KB | 0755 |
|
| pidof.py | File | 977 B | 0755 |
|
| pmap.py | File | 2.16 KB | 0755 |
|
| procinfo.py | File | 11.63 KB | 0755 |
|
| procsmem.py | File | 3.69 KB | 0755 |
|
| ps.py | File | 4.2 KB | 0755 |
|
| pstree.py | File | 1.65 KB | 0755 |
|
| sensors.py | File | 2.78 KB | 0755 |
|
| temperatures.py | File | 1.5 KB | 0755 |
|
| top.py | File | 7.34 KB | 0755 |
|
| who.py | File | 946 B | 0755 |
|
| winservices.py | File | 1.64 KB | 0755 |
|