Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.mobile.android > #68099 > unrolled thread

MAC ping app?

Started byDavid Lesher <wb8foz@panix.com>
First post2020-04-02 05:57 +0000
Last post2020-04-03 02:29 +0200
Articles 6 — 4 participants

Back to article view | Back to comp.mobile.android


Contents

  MAC ping app? David Lesher <wb8foz@panix.com> - 2020-04-02 05:57 +0000
    Re: MAC ping app? Arlen Holder <arlenholder@anyexample.com> - 2020-04-02 20:32 +0530
      Re: MAC ping app? David Lesher <wb8foz@panix.com> - 2020-04-02 20:27 +0000
        Re: MAC ping app? Arlen Holder <arlenholder@anyexample.com> - 2020-04-03 19:28 +0530
    Re: MAC ping app? tony@mountifield.org (Tony Mountifield) - 2020-04-02 20:43 +0000
      Re: MAC ping app? Libor Striz <poutnik4REMOVEnntp@gmailCAPITALS.com.INVALID> - 2020-04-03 02:29 +0200

#68099 — MAC ping app?

FromDavid Lesher <wb8foz@panix.com>
Date2020-04-02 05:57 +0000
SubjectMAC ping app?
Message-ID<r63urh$ba8$1@reader2.panix.com>
Is there an app out there that lets me ping by MAC address?

[toc] | [next] | [standalone]


#68101

FromArlen Holder <arlenholder@anyexample.com>
Date2020-04-02 20:32 +0530
Message-ID<r64uqe$tui$1@news.mixmin.net>
In reply to#68099
In response to what David Lesher <wb8foz@panix.com> wrote :

> Is there an app out there that lets me ping by MAC address?

a. I don't know; but...
b. It's an interesting question...
c. Worth, perhaps, figuring out... given Android is, um... sort of Linux.

Googling... (and being purposefully helpful)... here's the first hit:
o How To Ping By MAC Address? Ping Command Prompt
<https://www.webune.com/forums/how-to-ping-by-mac-address.html>
  "is it possible to ping a device using only the mac address...?
   ANSWER: the answer is no. IP Address is layer 3 of the OSI Model,
   and the MAC Address belongs to Layer 2"
  "what I can do is run the arp command, arp -a"
  "As you can see from the [result], the device with 
   01-00-5e-7f-ff-fa is IP ADDRESS 192.168.56.1 
   so I can ping that device now."

Second hit... 
o How to ping MAC address in Linux
<https://stackoverflow.com/questions/14600466/how-to-ping-mac-address-in-linux>
  "sudo nmap -sP 192.168.15.1/24 | grep  20:64:32:3F:B1:A9"

   "You can't ping a MAC address. You can only ping an IP address, 
    so what you're trying to do is find out what IP address belongs 
    to a certain MAC Address and ping that IP. ARP is used to find 
    the MAC address of a machine with a certain IP address,"

Third hit... 
o How to ping a mac address
<https://www.techrepublic.com/forums/discussions/how-to-ping-a-mac-address/>
  "You can't really 'ping' a MAC address. But, if you know the MAC address
   of a device and if TCP/IP is running on the device and you don't know 
   the IP address of the device you can ping it. 
   Use 'arp -s ipaddr macaddr' to assign an ip address to the device
   (as far as your machine is concerned). 
   Then you can ping the device using the ipaddr that you entered."

Fourth hit... 
o Ping Mac Address
<https://www.udemy.com/blog/ping-mac-address/>
  "You can't directly ping a MAC address, but you can use the 
   arp command to ping all devices connected to your own computer"

Fifth hit... 
o How to Ping a MAC Address
<https://www.reference.com/world-view/ping-mac-address-1375431a66235894> 
  "Looking up an Internet protocol (IP) address by directly pinging a 
  MAC address is not possible. However, there are several ways to 
  determine an IP address from a MAC address."
  The DHCP Method
  The ARP Command Method

Sixth hit... 
o Determine IP Address From a MAC Address
<https://thebackroomtech.com/2010/08/22/determine-ip-address-from-a-mac-address/>
  "Method 1 ¡V DHCP Server
   Method 2 ¡V Ping Broadcast Address
   Method 3 ¡V Free Tools"

In summary, it seems to be a relatively commonly asked question for
desktops anyway, where Android is, um, er,... ahem... Linux, so maybe one
of the Linux tools will do the trick depending on the OP's specific
(unstated) need (so I didn't go into details on the free tools as we likely
need a clarification from the OP on his constraints given the basic
information above).
-- 
Every thread on Usenet should increase our overall group tribal knowledge.

[toc] | [prev] | [next] | [standalone]


#68103

FromDavid Lesher <wb8foz@panix.com>
Date2020-04-02 20:27 +0000
Message-ID<r65hrc$b8r$1@reader2.panix.com>
In reply to#68101
Arlen Holder <arlenholder@anyexample.com> writes:

>In response to what David Lesher <wb8foz@panix.com> wrote :

>> Is there an app out there that lets me ping by MAC address?

>a. I don't know; but...
>b. It's an interesting question...
>c. Worth, perhaps, figuring out... given Android is, um... sort of Linux.

>Googling... (and being purposefully helpful)... here's the first hit:
>o How To Ping By MAC Address? Ping Command Prompt
><https://www.webune.com/forums/how-to-ping-by-mac-address.html>
>  "is it possible to ping a device using only the mac address...?
>   ANSWER: the answer is no. IP Address is layer 3 of the OSI Model,
>   and the MAC Address belongs to Layer 2"
>  "what I can do is run the arp command, arp -a"

This fails on devices immune from "smurf attacks"

>Third hit... 
>o How to ping a mac address
><https://www.techrepublic.com/forums/discussions/how-to-ping-a-mac-address/>
>  "You can't really 'ping' a MAC address. But, if you know the MAC address
>   of a device and if TCP/IP is running on the device and you don't know 
>   the IP address of the device you can ping it. 
>   Use 'arp -s ipaddr macaddr' to assign an ip address to the device
>   (as far as your machine is concerned). 
>   Then you can ping the device using the ipaddr that you entered."

Did not try that.

>Fourth hit... 
>o Ping Mac Address
><https://www.udemy.com/blog/ping-mac-address/>
>  "You can't directly ping a MAC address, but you can use the 
>   arp command to ping all devices connected to your own computer"

Nope.


What DOES work is:


Nope.

Here is what I ended up with:

  for a in {1..254};   do     ping -c 1 -t 1 192.168.1.$a;   done

Then arp works, but it's likely unnecessary; grep the ping output. 

and not easy from a pocket toy.

-- 
A host is a host from coast to coast.................wb8foz@nrk.com
& no one will talk to a host that's close..........................
Unless the host (that isn't close).........................pob 1433
is busy, hung or dead....................................20915-1433

[toc] | [prev] | [next] | [standalone]


#68127

FromArlen Holder <arlenholder@anyexample.com>
Date2020-04-03 19:28 +0530
Message-ID<r67fep$r3b$1@news.mixmin.net>
In reply to#68103
In response to what David Lesher <wb8foz@panix.com> wrote :

> This fails on devices immune from "smurf attacks"

Am I the only one who has never heard the term "smurf attacks"?
o If so, I'll google for all of us... :)

First hit, Wikipedia:
<https://en.wikipedia.org/wiki/Smurf_attack>
  "The Smurf attack is a distributed denial-of-service attack 
   in which large numbers of Internet Control Message Protocol (ICMP) 
   packets with the intended victim's spoofed source IP are broadcast 
   to a computer network using an IP broadcast address."

That's pretty clear so I'll just go to the second hit to see if there's
more to it than that...

Second hit: Kaspersky
<https://usa.kaspersky.com/resource-center/definitions/smurf-attack>
  "A Smurf attack is a form of a distributed denial of service (DDoS)
attack that renders computer networks inoperable. The Smurf program
accomplishes this by exploiting vulnerabilities of the Internet Protocol
(IP) and Internet Control Message Protocols (ICMP).

The steps in a Smurf attack are as follows:

    First, the malware creates a network packet attached to a false IP
address ¡X a technique known as "spoofing."
    Inside the packet is an ICMP ping message, asking network nodes that
receive the packet to send back a reply
    These replies, or "echoes," are then sent back to network IP addresses
again, setting up an infinite loop.

When combined with IP broadcasting ¡X which sends the malicious packet to
every IP address in a network ¡X the Smurf attack can quickly cause a
complete denial of service."

In summary, the OP's computer is, apparently, set up to prevent something
that I've never seen happen, but which, I guess, um, er, can be targeted to
happen.

I would guess that the OP is on a "corporate" network, in that I can't
imagine why anyone would bother to set up specific protection for a DOS
attack for we "home" users (unless it was part of a generic protective
package, I guess).

But at least we all know what a smurf attack is now. 
-- 
Each thread to Usenet should strive to add value to our tribal knowledge.

[toc] | [prev] | [next] | [standalone]


#68104

Fromtony@mountifield.org (Tony Mountifield)
Date2020-04-02 20:43 +0000
Message-ID<r65iot$t7i$1@softins.softins.co.uk>
In reply to#68099
In article <r63urh$ba8$1@reader2.panix.com>,
David Lesher  <wb8foz@panix.com> wrote:
> Is there an app out there that lets me ping by MAC address?

Probably not directly, but you might find "NMAP for Android" useful.

Disclaimer: never tried it, but have used NMAP on Linux.

Cheers
Tony
-- 
Tony Mountifield
Work: tony@softins.co.uk - http://www.softins.co.uk
Play: tony@mountifield.org - http://tony.mountifield.org

[toc] | [prev] | [next] | [standalone]


#68106

FromLibor Striz <poutnik4REMOVEnntp@gmailCAPITALS.com.INVALID>
Date2020-04-03 02:29 +0200
Message-ID<r6601i$jvs$1@dont-email.me>
In reply to#68104
tony@mountifield.org (Tony Mountifield) Wrote in message:

>> Is there an app out there that lets me ping by MAC address?

> Probably not directly, but you might find "NMAP for Android" useful.Disclaimer: never tried it, but have used NMAP on Linux.

One may use Linux nmap on Android as well,
if installed in Termux
by pkg install nmap


-- 
Poutnik ( the Wanderer )

[toc] | [prev] | [standalone]


Back to top | Article view | comp.mobile.android


csiph-web