Send an ad-hoc WOL packet without depending on binaries
1
vote
0
answers
178
views
Under a
VPN
exist a variety of machines that have their mobo's WOL
protocol enabled. With that said, I wish to create a script that creates a WOL
packet that can be sent to a specific machine of the network without depending on any binaries (e.g., etherwake
or wakeonlan
).
One can easily implement the code required to generate the byte-stream of the magic packet after reading the respective paper [[1] ] but I do not have the knowledge on how to transmit/send the packet from inside the VPN
network.
So in the following scenario:
+---+ +---+ +---+ +---+
| A | | B | | C | | D |
+---+ +---+ +---+ +---+ __ _
\______\_____\__VPN__\______( )_( )_
( internet)_________ +---+
_(__)_(_)_ | W |
+---+
With me having remote access (e.g., via ssh
) to either of the machines of the VPN
and saying e.g., that I am in the machine D
which can see the rest in the local network, how can I send a packet to wake machine B
for instance (once again, without relying on any kind of software/library) ?
Thank you in advance.
Asked by ex1led
(286 rep)
Jul 16, 2022, 10:20 AM
Last activity: Jul 16, 2022, 01:37 PM
Last activity: Jul 16, 2022, 01:37 PM