performancehoogl.blogg.se

Free magic packet sender
Free magic packet sender








(1) Well, indeed, sed is not explicitly required. In this case replace $Broadcast address by the destination public IP, and open/forward the specified $PortNumber (UDP) on destination.

  • The above one-line bash command should work too for wake on LAN via internet.
  • The specific port number seems not to be important on WOL.
  • NetCat's OpenBSD version has a bug as for today (Juy 2015) on broadcast data sending ( -b), so you will have to replace it by NetCat Traditional version (netcat-traditional package on apt-get installers).
  • CygWin's NetCat version doesn't need for -b parameter.
  • Free magic packet sender 64 bits#

    Tested working on Ubuntu, Kali and even CygWin (Windows 7 SP 1 64 bits ).

    free magic packet sender

    SoCat can be used instead (syntax will differ, of course). The forged wake on LAN package is sent to the network stack piping it to NetCat.and so on) prior to sending the string to the network stack. The sed command is used here to remove colons ( :) from the MAC and to add the \x hex specificator (so that 11 becomes \x11, 22 becomes \x22.The WOL magic packet is composed of ffffffffffff (12 times f) followed by 16 times the destination MAC without colons ( :).The command line would be: echo -e $(echo $(printf 'f%.0s' ) | sed -e 's/./\\x&/g') | nc -w1 -u -b $Broadcast $PortNumber

    free magic packet sender

    Bash supporting brace expansion (I think it is v3.5.1 and above).The minimum requirements I can think off:








    Free magic packet sender