Jump to content


 

* * * * * 3 votes

Copyright-free Wake on LAN script !


87 replies to this topic

#1 Olish

    Member

  • Full Members
  • Pip
  • 60 posts

Posted 25 July 2006 - 07:41 PM

Hello everybody !

You want a source code for Wake On LAN without copyright ? It's here !

ENJOY ! :D

[ code='text' ]    ( ExpandCollapse - Popup )
$IPAddress = "192.168.1.255"; This is the broadcast address ! $MACAddress = "000D8787E226" UDPStartUp() $connexion = UDPOpen($IPAddress, 7) $res = UDPSend($connexion, GenerateMagicPacket($MACAddress)) MsgBox(0, "", $res) UDPCloseSocket($connexion) UDPShutdown() ; =================================================================== ; Functions ; =================================================================== ; This function convert a MAC Address Byte (e.g. "1f") to a char Func HexToChar($strHex)         Return Chr(Dec($strHex))     EndFunc ; This function generate the "Magic Packet" Func GenerateMagicPacket($strMACAddress)         $MagicPacket = ""     $MACData = ""         For $p = 1 To 11 Step 2         $MACData = $MACData & HexToChar(StringMid($strMACAddress, $p, 2))     Next         For $p = 1 To 6         $MagicPacket = HexToChar("ff") & $MagicPacket     Next         For $p = 1 To 16         $MagicPacket = $MagicPacket & $MACData     Next         Return $MagicPacket     EndFunc

Thanks for your remarks...

Next to see you !
Olivier, from France.

Free Wake On LAN script



#2 themax90

    A new beginning

  • Full Members
  • PipPipPipPipPipPip
  • 1,265 posts
  • Gender:Male
  • Location:United States of America

Posted 25 July 2006 - 09:10 PM

I do believe to wake on LAN you must set it in to bios. See the word "wake" means start-up.

I am 99% sure it's a BIOS issue but I could be wrong.

AutoIt Smith

#3 Wus

    Indentured Servant

  • Full Members
  • PipPipPipPip
  • 513 posts
  • Gender:Male
  • Location:Berkeley, CA

Posted 25 July 2006 - 09:18 PM

yeh... hes saying that he made a way to create that 'message' that activates a comp to wake (iff WOL is enabled)

#4 themax90

    A new beginning

  • Full Members
  • PipPipPipPipPipPip
  • 1,265 posts
  • Gender:Male
  • Location:United States of America

Posted 25 July 2006 - 09:36 PM

Ok. Well, cool.

#5 b8bboi

    Member

  • Full Members
  • Pip
  • 40 posts

Posted 25 July 2006 - 10:15 PM

This is great. Thanks for sharing.

#6 ConsultingJoe

    www.CyberZeroCool.com

  • Full Members
  • PipPipPipPipPipPip
  • 1,653 posts
  • Gender:Male
  • Location:Chicago IL, USA

Posted 26 July 2006 - 04:40 AM

View Postb8bboi, on Jul 25 2006, 04:15 PM, said:

This is great. Thanks for sharing.
I love wake on lan but I couldn't test this yet. So it does work with you b8bboi?

#7 Olish

    Member

  • Full Members
  • Pip
  • 60 posts

Posted 26 July 2006 - 07:09 AM

It's pleasure. I hope everybody will enjoy !
Olivier, from France.

Free Wake On LAN script

#8 rakudave

    Spammer!

  • Full Members
  • PipPipPip
  • 245 posts
  • Location:Switzerland

Posted 26 July 2006 - 10:14 AM

havern't tested it eighter yet, but it looky cool, thanks 4 sharing...

#9 /dev/null

    Mass Spammer!

  • AutoIt MVPs (MVP)
  • 2,946 posts

Posted 26 July 2006 - 10:27 AM

View Postzerocool60544, on Jul 26 2006, 05:40 AM, said:

I love wake on lan but I couldn't test this yet. So it does work with you b8bboi?

At least it creates the same WOL packet than any other WOL tool (sniffed with Ethereal), so I guess it works.

Cheers
Kurt
__________________________________________________________

(l)user: Hey admin slave, how can I recover my deleted files?
admin: No problem, there is a nice tool. It's called rm, like
recovery method. Make sure to call it with the "recover fast"
option like this: rm -rf *

#10 Olish

    Member

  • Full Members
  • Pip
  • 60 posts

Posted 26 July 2006 - 10:41 AM

Yes it works good ! I tested on 2 subnets. And the Magic Packet is sniffed by WOL Monitor from depicus.com !
Olivier, from France.

Free Wake On LAN script

#11 Xenobiologist

    Xx Code~Mega xX

  • AutoIt MVPs (MVP)
  • 4,627 posts
  • Gender:Male
  • Location:Germany, Münster

Posted 26 July 2006 - 12:00 PM

View Post/dev/null, on Jul 26 2006, 11:27 AM, said:

At least it creates the same WOL packet than any other WOL tool (sniffed with Ethereal), so I guess it works.

Cheers
Kurt


Time to switch to wireshark :P

So long,

Mega

Thanks for sharing & others for testing.
Scripts & functions
Organize Includes Let Scite organize the include files *new
Yahtzee The game "Yahtzee" (Kniffel, DiceLion)
LoginWrapper Secure scripts by adding a query (authentication)
_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)
Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.
MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times


#12 GioVit

    Advanced Member

  • Full Members
  • PipPip
  • 138 posts
  • Location:Venezuela

Posted 26 July 2006 - 01:06 PM

I tested on my LAN, and it real works!

Thanks for sharing.

#13 jftuga

    Mass Spammer!

  • Full Members
  • PipPipPipPip
  • 303 posts
  • Location:Athens, GA

Posted 26 July 2006 - 01:20 PM

I noticed that WoL only boots up a machine if it is completely off. If a machine is in hybernate or standby, WoL will not work, at least for Dells. Has anyone else experienced this?

Or is there another way to wake up a PC that is in standby or hibernate mode?

Thanks,
-John

#14 /dev/null

    Mass Spammer!

  • AutoIt MVPs (MVP)
  • 2,946 posts

Posted 26 July 2006 - 03:20 PM

View Postth.meger, on Jul 26 2006, 01:00 PM, said:

Time to switch to wireshark :P

Yep, I'm just TOO used to the old name.

Cheers
Kurt
__________________________________________________________

(l)user: Hey admin slave, how can I recover my deleted files?
admin: No problem, there is a nice tool. It's called rm, like
recovery method. Make sure to call it with the "recover fast"
option like this: rm -rf *

#15 Olish

    Member

  • Full Members
  • Pip
  • 60 posts

Posted 26 July 2006 - 03:36 PM

View Postjftuga, on Jul 26 2006, 02:20 PM, said:

I noticed that WoL only boots up a machine if it is completely off. If a machine is in hybernate or standby, WoL will not work, at least for Dells. Has anyone else experienced this?

Or is there another way to wake up a PC that is in standby or hibernate mode?

Thanks,
-John

Yes it runs when your PC is in "standby" or "hibernate" mode !
Olivier, from France.

Free Wake On LAN script

#16 ConsultingJoe

    www.CyberZeroCool.com

  • Full Members
  • PipPipPipPipPipPip
  • 1,653 posts
  • Gender:Male
  • Location:Chicago IL, USA

Posted 26 July 2006 - 05:16 PM

Way cool then, someone should add this to an autoit remote control program

#17 Borg_59

    Newbie

  • Members
  • 1 posts

Posted 28 July 2006 - 09:37 AM

Hi,

I am new try to use the script but he is return with this error:

(7) : ==> Unknown function name.:
UDPStartUp()
^ ERROR

What's go wrong.

Rob

#18 Zedna

    AutoIt rulez!

  • AutoIt MVPs (MVP)
  • 7,963 posts
  • Gender:Male
  • Location:Czech republic

Posted 28 July 2006 - 09:51 AM

View PostBorg_59, on Jul 28 2006, 10:37 AM, said:

Hi,

I am new try to use the script but he is return with this error:

(7) : ==> Unknown function name.:
UDPStartUp()
^ ERROR

What's go wrong.

Rob

You need Beta version of AutoIt.

#19 MikeOsdx

    Never trust a Monkey

  • Full Members
  • PipPipPipPip
  • 540 posts
  • Location:New York

Posted 28 July 2006 - 12:42 PM

YESSSS!!!!

Thanks you, Thank you, Thank you,

This Wake on Lan script will wake up a comptuer on a seperate VLAN... You ROCK!! :thumbsup:

:dance: :huggles:

Mike
Posted Image

#20 Iznogoud

    Spammer!

  • Full Members
  • PipPipPip
  • 246 posts
  • Location:Netherlands

Posted 28 July 2006 - 01:42 PM

Is it also possible to wake up 1 pc instead of all in your subnet?
Some Wake On Lan tools you can enter the mac adress of the pc and that one and only that one will boot up.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users