diff options
author | Thomas Habets <thomas@habets.pp.se> | 2003-08-03 23:06:58 +0000 |
---|---|---|
committer | Thomas Habets <thomas@habets.pp.se> | 2003-08-03 23:06:58 +0000 |
commit | 59bbd37f4f163bec6d8e74bfee6597354c360e92 (patch) | |
tree | ee6a890d6d9db38165c560fcba45ff980d9f49a4 | |
parent | 6c10760e09012f5b5f103926c33c61a798bbcc4a (diff) | |
download | arping-59bbd37f4f163bec6d8e74bfee6597354c360e92.tar.gz |
.
-rwxr-xr-x | arping-scan-net.sh | 4 | ||||
-rw-r--r-- | arping.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/arping-scan-net.sh b/arping-scan-net.sh index d88e5d1..919b421 100755 --- a/arping-scan-net.sh +++ b/arping-scan-net.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: arping-scan-net.sh 974 2003-08-03 22:57:59Z marvin $ +# $Id: arping-scan-net.sh 975 2003-08-03 23:06:58Z marvin $ # # Copyright (C) 2002 Thomas Habets <thomas@habets.pp.se> # @@ -45,7 +45,7 @@ for a in $(seq 192 192); do for b in $(seq 168 168); do for c in $(seq 42 42); do for d in $(seq 0 255); do - sh -c "arping -A -q -c 1 -T $a.$b.$c.$d $TARGET_MAC + sh -c "./arping -A -q -c 1 -T $a.$b.$c.$d $TARGET_MAC if [ \$? = 0 ]; then echo Got answer with address: $a.$b.$c.$d fi" & @@ -12,7 +12,7 @@ * * Also finds out IP of specified MAC * - * $Id: arping.c 974 2003-08-03 22:57:59Z marvin $ + * $Id: arping.c 975 2003-08-03 23:06:58Z marvin $ */ /* * Copyright (C) 2000-2003 Thomas Habets <thomas@habets.pp.se> @@ -46,6 +46,7 @@ * arping -t mac -A host pongs * arping -T ip -A mac pongs * arping -T ip -A cmac pongs + * arping -T bcast mac pongs # bcast of current net * arping -r host mac * arping -R host ip * arping -r mac ip |