Änderungen

K
Zeile 295: Zeile 295:     
===von allen routern im netz mac adressen einsammeln -klauschweine===
 
===von allen routern im netz mac adressen einsammeln -klauschweine===
 +
 
<pre>
 
<pre>
for I in $(ip route|awk '{if(substr($0,1,5)=="10.63")print $1}'|grep -v /);do echo $I;wget -O - http://$I/cgi-bin-info.html?h|grep perm_ether;done
+
for I in $(ip route|awk '{if(substr($0,1,5)=="10.63")print $1}'|grep -v /);do echo $I;wget -q -O - http://$I/cgi-bin-status.html|awk >/tmp/macs.txt -v i=$I '/MAC/{print substr($0,11,17),i;exit}';done
 
  −
und ordnen:
  −
 
  −
awk '/x/ {print $4,$1}' macs.txt|sort|uniq|more
   
</pre>
 
</pre>