Facebook
From Bistre Mockingbird, 1 Year ago, written in PowerShell.
Embed
Download Paste or View Raw
Hits: 128
  1. Windows PowerShell
  2. Copyright (C) Microsoft Corporation. All rights reserved.
  3.  
  4. Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
  5.  
  6. PS C:\Users\Cambel> ping -n 30 8.8.8.8
  7.  
  8. Pinging 8.8.8.8 with 32 bytes of data:
  9. Reply from 8.8.8.8: bytes=32 time=2ms TTL=58
  10. Reply from 8.8.8.8: bytes=32 time=1ms TTL=58
  11. Reply from 8.8.8.8: bytes=32 time=20ms TTL=58
  12. Reply from 8.8.8.8: bytes=32 time=7ms TTL=58
  13. Reply from 8.8.8.8: bytes=32 time=3ms TTL=58
  14. Reply from 8.8.8.8: bytes=32 time=11ms TTL=58
  15. Reply from 8.8.8.8: bytes=32 time=11ms TTL=58
  16. Reply from 8.8.8.8: bytes=32 time=5ms TTL=58
  17. Reply from 8.8.8.8: bytes=32 time=4ms TTL=58
  18. Reply from 8.8.8.8: bytes=32 time=2ms TTL=58
  19. Reply from 8.8.8.8: bytes=32 time=21ms TTL=58
  20. Request timed out.
  21. Reply from 8.8.8.8: bytes=32 time=7ms TTL=58
  22. Reply from 8.8.8.8: bytes=32 time=23ms TTL=58
  23. Reply from 8.8.8.8: bytes=32 time=8ms TTL=58
  24. Reply from 8.8.8.8: bytes=32 time=9ms TTL=58
  25. Reply from 8.8.8.8: bytes=32 time=7ms TTL=58
  26. Reply from 8.8.8.8: bytes=32 time=5ms TTL=58
  27. Reply from 8.8.8.8: bytes=32 time=6ms TTL=58
  28. Reply from 8.8.8.8: bytes=32 time=9ms TTL=58
  29. Reply from 8.8.8.8: bytes=32 time=3ms TTL=58
  30. Reply from 8.8.8.8: bytes=32 time=3ms TTL=58
  31. Reply from 8.8.8.8: bytes=32 time=3ms TTL=58
  32. Reply from 8.8.8.8: bytes=32 time=9ms TTL=58
  33. Reply from 8.8.8.8: bytes=32 time=3ms TTL=58
  34. Reply from 8.8.8.8: bytes=32 time=5ms TTL=58
  35. Reply from 8.8.8.8: bytes=32 time=3ms TTL=58
  36. Reply from 8.8.8.8: bytes=32 time=2ms TTL=58
  37. Reply from 8.8.8.8: bytes=32 time=5ms TTL=58
  38. Reply from 8.8.8.8: bytes=32 time=10ms TTL=58
  39.  
  40. Ping statistics for 8.8.8.8:
  41.     Packets: Sent = 30, Received = 29, Lost = 1 (3% loss),
  42. Approximate round trip times in milli-seconds:
  43.     Minimum = 1ms, Maximum = 23ms, Average = 7ms
  44. PS C:\Users\Cambel> tracert 8.8.8.8
  45.  
  46. Tracing route to dns.google [8.8.8.8]
  47. over a maximum of 30 hops:
  48.  
  49.   1     8 ms    <1 ms    12 ms  sha8vale.connectmy.net [100.88.196.1]
  50.   2     2 ms     2 ms     3 ms  125-253-11-105.ip4.superloop.com [125.253.11.105]
  51.   3     5 ms    14 ms     8 ms  bundle-ether40-101.bdr01-ipt-826lorim-mel.au.superloop.net.co [27.122.124.82]
  52.   4     2 ms     2 ms     2 ms  bundle-ether34-117.bdr02-ipt-530colli-mel.au.superloop.net.co [103.200.13.172]
  53.   5     8 ms     8 ms     8 ms  72.14.205.244
  54.   6     3 ms     3 ms     3 ms  142.250.233.93
  55.   7    13 ms     7 ms    10 ms  142.250.230.155
  56.   8     6 ms     7 ms     4 ms  dns.google [8.8.8.8]
  57.  
  58. Trace complete.
  59. PS C:\Users\Cambel> ipconfig /all
  60.  
  61. Windows IP Configuration
  62.  
  63.    Host Name . . . . . . . . . . . . : Laptop
  64.    Primary Dns Suffix  . . . . . . . :
  65.    Node Type . . . . . . . . . . . . : Hybrid
  66.    IP Routing Enabled. . . . . . . . : No
  67.    WINS Proxy Enabled. . . . . . . . : No
  68.  
  69. Ethernet adapter Ethernet:
  70.  
  71.    Media State . . . . . . . . . . . : Media disconnected
  72.    Connection-specific DNS Suffix  . :
  73.    Description . . . . . . . . . . . : Realtek PCIe GbE Family Controller
  74.    Physical Address. . . . . . . . . : B4-45-06-99-9D-F3
  75.    DHCP Enabled. . . . . . . . . . . : Yes
  76.    Autoconfiguration Enabled . . . . : Yes
  77.  
  78. Wireless LAN adapter Local Area Connection* 1:
  79.  
  80.    Media State . . . . . . . . . . . : Media disconnected
  81.    Connection-specific DNS Suffix  . :
  82.    Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter
  83.    Physical Address. . . . . . . . . : D4-54-8B-BD-BA-00
  84.    DHCP Enabled. . . . . . . . . . . : Yes
  85.    Autoconfiguration Enabled . . . . : Yes
  86.  
  87. Wireless LAN adapter Local Area Connection* 2:
  88.  
  89.    Media State . . . . . . . . . . . : Media disconnected
  90.    Connection-specific DNS Suffix  . :
  91.    Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter #2
  92.    Physical Address. . . . . . . . . : D6-54-8B-BD-BA-FF
  93.    DHCP Enabled. . . . . . . . . . . : Yes
  94.    Autoconfiguration Enabled . . . . : Yes
  95.  
  96. Wireless LAN adapter Wi-Fi:
  97.  
  98.    Connection-specific DNS Suffix  . :
  99.    Description . . . . . . . . . . . : Intel(R) Wi-Fi 6 AX201 160MHz
  100.    Physical Address. . . . . . . . . : D4-54-8B-BD-BA-FF
  101.    DHCP Enabled. . . . . . . . . . . : Yes
  102.    Autoconfiguration Enabled . . . . : Yes
  103.    Link-local IPv6 Address . . . . . : fe80::85b7:193:2859:2775%16(Preferred)
  104.    IPv4 Address. . . . . . . . . . . : 100.88.198.46(Preferred)
  105.    Subnet Mask . . . . . . . . . . . : 255.255.252.0
  106.    Lease Obtained. . . . . . . . . . : Monday, 3 October 2022 10:45:31 PM
  107.    Lease Expires . . . . . . . . . . : Sunday, 9 October 2022 3:37:44 AM
  108.    Default Gateway . . . . . . . . . : 100.88.196.1
  109.    DHCP Server . . . . . . . . . . . : 100.88.196.1
  110.    DHCPv6 IAID . . . . . . . . . . . : 181687435
  111.    DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-29-54-88-04-B4-45-06-99-9D-F3
  112.    DNS Servers . . . . . . . . . . . : 1.1.1.1
  113.                                        8.8.8.8
  114.                                        125.253.59.211
  115.    NetBIOS over Tcpip. . . . . . . . : Enabled
  116.  
  117. Ethernet adapter Bluetooth Network Connection:
  118.  
  119.    Media State . . . . . . . . . . . : Media disconnected
  120.    Connection-specific DNS Suffix  . :
  121.    Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)
  122.    Physical Address. . . . . . . . . : D4-54-8B-BD-BB-03
  123.    DHCP Enabled. . . . . . . . . . . : Yes
  124.    Autoconfiguration Enabled . . . . : Yes
  125. PS C:\Users\Cambel> getmac -v
  126.  
  127. Connection Name Network Adapter Physical Address    Transport Name
  128. =============== =============== =================== ==========================================================
  129. Wi-Fi           Intel(R) Wi-Fi  D4-54-8B-BD-BA-FF   \Device\Tcpip_{E384CE3F-95BB-42BA-A274-7CA8FE5E3296}
  130. Ethernet        Realtek PCIe Gb B4-45-06-99-9D-F3   Media disconnected
  131. Bluetooth Netwo Bluetooth Devic D4-54-8B-BD-BB-03   Media disconnected
  132. PS C:\Users\Cambel> netsh wlan show networks interfaces
  133. One or more parameters for the command are not correct or missing.
  134.  
  135. Usage: show networks [[interface=]<string>] [[mode=]ssid/bssid]
  136.  
  137. Parameters:
  138.  
  139.     Tag             Value
  140.     interface     - Name of the interface which has this profile configured.
  141.     mode          - Get detailed bssid information.
  142.  
  143. Remarks:
  144.  
  145.     Shows the networks available to the system.
  146.     Parameter interface and bssid are both optional.
  147.  
  148.     If interface name is given, only the networks on the given
  149.     interface will be listed. Otherwise, all networks visible to
  150.     the system will be listed.
  151.  
  152.     If mode=bssid is given then the visible bssids for each ssid
  153.     will also be listed. Otherwise only ssids will be listed.
  154.  
  155. Examples:
  156.  
  157.     show networks interface="Wireless Network Connection"
  158.     show networks mode=Bssid
  159.     show networks
  160.  
  161. PS C:\Users\Cambel> netsh wlan show networks mode=bssid
  162.  
  163. Interface name : Wi-Fi
  164. There are 1 networks currently visible.
  165.  
  166. SSID 1 : Superloop-SHA-6-HighSt
  167.     Network type            : Infrastructure
  168.     Authentication          : Open
  169.     Encryption              : None
  170.     BSSID 1                 : e0:10:7f:0a:f3:6c
  171.          Signal             : 88%
  172.          Radio type         : 802.11n
  173.          Band               : 5 GHz
  174.          Channel            : 56
  175.          Bss Load:
  176.              Connected Stations:         2
  177.              Channel Utilization:        2 (0 %)
  178.              Medium Available Capacity:  0 (0 us/s)
  179.          Basic rates (Mbps) : 6 12 24
  180.          Other rates (Mbps) : 9 18 36 48 54
  181.  
  182. PS C:\Users\Cambel> netsh wlan show driver
  183.  
  184. Interface name: Wi-Fi
  185.  
  186.     Driver                    : Intel(R) Wi-Fi 6 AX201 160MHz
  187.     Vendor                    : Intel Corporation
  188.     Provider                  : Intel
  189.     Date                      : 21/06/2022
  190.     Version                   : 22.150.1.1
  191.     INF file                  : oem127.inf
  192.     Type                      : Native Wi-Fi Driver
  193.     Radio types supported     : 802.11b 802.11g 802.11n 802.11a 802.11ac 802.11ax
  194.     FIPS 140-2 mode supported : Yes
  195.     802.11w Management Frame Protection supported : Yes
  196.     Hosted network supported  : No
  197.     Authentication and cipher supported in infrastructure mode:
  198.                                 Open            None
  199.                                 Open            WEP-40bit
  200.                                 Open            WEP-104bit
  201.                                 Open            WEP
  202.                                 WPA-Enterprise  TKIP
  203.                                 WPA-Enterprise  CCMP
  204.                                 WPA-Personal    TKIP
  205.                                 WPA-Personal    CCMP
  206.                                 WPA2-Enterprise TKIP
  207.                                 WPA2-Enterprise CCMP
  208.                                 WPA2-Personal   TKIP
  209.                                 WPA2-Personal   CCMP
  210.                                 Open            Vendor defined
  211.                                 WPA3-Personal   CCMP
  212.                                 Vendor defined  Vendor defined
  213.                                 WPA3-Enterprise 192 BitsGCMP-256
  214.                                 OWE             CCMP
  215.     IHV service present       : Yes
  216.     IHV adapter OUI           : [00 00 00], type: [00]
  217.     IHV extensibility DLL path: C:\Windows\system32\IntelIHVRouter10.dll
  218.     IHV UI extensibility ClSID: {00000000-0000-0000-0000-000000000000}
  219.     IHV diagnostics CLSID     : {00000000-0000-0000-0000-000000000000}
  220.     Wireless Display Supported: Yes (Graphics Driver: Yes, Wi-Fi Driver: Yes)
  221.  
  222. PS C:\Users\Cambel> arp -a
  223.  
  224. Interface: 100.88.198.46 --- 0x10
  225.   Internet Address      Physical Address      Type
  226.   100.88.196.1          d4-ca-6d-3f-4c-19     dynamic
  227.   100.88.198.127        b8-5f-98-e9-1f-ca     dynamic
  228.   100.88.198.156        44-6d-7f-24-f8-1b     dynamic
  229.   100.88.199.25         38-c8-04-a7-05-9c     dynamic
  230.   100.88.199.65         dc-54-d7-c7-22-64     dynamic
  231.   100.88.199.84         18-48-be-b4-44-e6     dynamic
  232.   100.88.199.255        ff-ff-ff-ff-ff-ff     static
  233.   224.0.0.2             01-00-5e-00-00-02     static
  234.   224.0.0.22            01-00-5e-00-00-16     static
  235.   224.0.0.250           01-00-5e-00-00-fa     static
  236.   224.0.0.251           01-00-5e-00-00-fb     static
  237.   224.0.0.252           01-00-5e-00-00-fc     static
  238.   239.255.255.250       01-00-5e-7f-ff-fa     static
  239.   255.255.255.255       ff-ff-ff-ff-ff-ff     static
  240. PS C:\Users\Cambel>