Giter Club home page Giter Club logo

wol's Introduction

wol Build

A Wake-On-LAN utility

DESCRIPTION

wol is a command-line tool for implementing the Wake-On-LAN protocol over a local-area network.

INSTALL

./autogen.sh
./configure
make
sudo make install

USAGE

Usage: wol [OPTION...] <mac address>
Wake-On-LAN packet sender

  -i, --interface=NAME       Specify the network interface through which to send [required]
  -p, --password=PASSWORD    Specify the SecureOn password
  -q, -s, --quiet, --silent  No output
  -?, --help                 Give this help list
      --usage                Give a short usage message
  -V, --version              Print program version

Report bugs to <https://github.com/mario-campos/wol>.

In its simplest form, simply pass a MAC-48 address in the typical colon-separated format (xx:xx:xx:xx:xx:xx) as an argument. Without specifying an interface, this command will broadcast the Wake-on-LAN magic packet across all supported interfaces:

wol de:ad:be:ef:ca:fe

You can limit the activity to a single network interface by specifying it with the -i/--interface flags:

wol --interface eth0 de:ad:be:ef:ca:fe

You can also supply a SecureOn password, with the -p/--password flags, for Wake-on-LAN hosts that support it. But beware that the password must be 6 characters or less and it is transmitted in cleartext.

wol --password foobar de:ad:be:ef:ca:fe

CAVEATS

The Wake-On-LAN protocol requires the target computer to support WOL. This is typically a hardware requirement.

LICENSE

wol is licensed with GNU GPL 3.0

wol's People

Contributors

fullaxx avatar mario-campos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

wol's Issues

unrelated argp message/description in wol usage

Description

There is a sentence in the usage that does not relate to the wol program. It seems this message is added by default by argp.

Recreating the issue

$ ./wol --help

Usage: wol [OPTION...] <mac address>
Wake-On-LAN packet sender

  -i, --interface=NAME       Specify the net interface to use
  -p, --password=PASSWORD    Specify the WOL password
  -q, -s, --quiet, --silent  No output
  -?, --help                 Give this help list
      --usage                Give a short usage message
  -V, --version              Print program version

Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.

Report bugs to <http://github.com/iamrekcah/wol>.

The "Mandatory or optional arguments..." line shouldn't be in this usage.

SegFault when no password is used

The last memset() call in main is designed to clear the password from memory.
If no password was used, this memory never exists and we end up passing NULL to memset()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.