-
-
Save evilsocket/93e92517e8995517e4ed to your computer and use it in GitHub Desktop.
wtf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arp = | |
"? (192.168.1.117) at 00:92:d4:06:01:32 [ether] on enp2s0\n" + | |
"? (192.168.1.112) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.127) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.122) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.121) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.4) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.3) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.14) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.13) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.8) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.23) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.17) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.28) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.38) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.37) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.47) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.42) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.41) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.52) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.61) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.199) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.194) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.193) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.204) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.203) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.214) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.213) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.223) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.218) at <incomplete> on enp2s0\n" + | |
"Tatamata-PC.home (192.168.1.217) at 00:1f:d0:9f:f5:72 [ether] on enp2s0\n" + | |
"? (192.168.1.228) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.227) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.238) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.237) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.247) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.242) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.241) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.252) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.251) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.134) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.133) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.128) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.143) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.138) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.137) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.148) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.147) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.158) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.157) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.152) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.167) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.161) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.172) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.171) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.182) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.181) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.176) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.191) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.186) at <incomplete> on enp2s0\n" + | |
"Milos-PC.home (192.168.1.185) at 74:d4:35:26:56:52 [ether] on enp2s0\n" + | |
"? (192.168.1.68) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.67) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.78) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.77) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.72) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.87) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.82) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.81) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.92) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.91) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.102) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.101) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.111) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.106) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.105) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.115) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.125) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.7) at <incomplete> on enp2s0\n" + | |
"discus.home (192.168.1.1) at 00:25:53:95:18:39 [ether] on enp2s0\n" + | |
"? (192.168.1.12) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.11) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.22) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.21) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.16) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.31) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.26) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.25) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.36) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.35) at <incomplete> on enp2s0\n" + | |
"new-host.home (192.168.1.45) at 94:44:44:91:fe:d0 [ether] on enp2s0\n" + | |
"? (192.168.1.40) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.55) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.50) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.49) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.60) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.59) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.198) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.207) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.201) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.211) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.222) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.221) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.216) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.231) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.226) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.225) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.236) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.235) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.246) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.245) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.240) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.250) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.249) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.132) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.131) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.142) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.141) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.136) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.151) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.146) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.145) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.156) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.155) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.166) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.175) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.170) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.169) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.180) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.179) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.190) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.184) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.71) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.66) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.65) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.76) at <incomplete> on enp2s0\n" + | |
"android-ec6527e6da8b666.home (192.168.1.75) at 10:bf:48:ed:fa:b9 [ether] on enp2s0\n" + | |
"? (192.168.1.86) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.80) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.90) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.89) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.100) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.99) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.110) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.109) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.119) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.114) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.113) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.124) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.123) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.5) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.15) at <incomplete> on enp2s0\n" + | |
"nemanjan00-server.home (192.168.1.10) at 00:40:ca:9d:ef:f0 [ether] on enp2s0\n" + | |
"? (192.168.1.9) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.20) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.19) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.29) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.24) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.39) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.34) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.33) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.44) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.43) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.54) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.53) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.48) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.63) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.58) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.57) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.196) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.195) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.206) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.205) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.215) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.210) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.209) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.220) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.219) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.230) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.229) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.224) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.239) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.234) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.233) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.243) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.254) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.253) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.248) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.135) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.130) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.129) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.140) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.139) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.149) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.144) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.159) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.154) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.153) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.164) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.163) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.174) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.173) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.183) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.178) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.177) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.188) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.187) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.70) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.69) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.79) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.74) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.73) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.84) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.94) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.93) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.88) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.103) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.98) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.97) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.108) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.107) at <incomplete> on enp2s0\n" + | |
"? (192.168.1.118) at <incomplete> on enp2s0\n" + | |
iface ="enp2s0" | |
gw_ip ="192.168.1.1" | |
local_ip="192.168.1.244" | |
arp.split("\n").each do |line| | |
if line =~ /[^\s]+\s+\(([0-9\.]+)\)\s+at\s+([a-f0-9:]+).+#{iface}.*/i | |
if $1 != gw_ip and $1 != local_ip and $2 != "ff:ff:ff:ff:ff:ff" | |
puts "#{$1} #{$2}" | |
end | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment