/\/\o\/\/ PowerShelled

This blog has moved to http://ThePowerShellGuy.com Greetings /\/\o\/\/
$AtomFeed = ("Atom.xml")
$PreviousItems = (" Getting performanceMonitor info from Monad "," Monad -and More bytes with -band = shorter script "," Tip from Monad "," MSH AD querying with .NET 2.0 framework "," get AD user allowed Logonhours from MSH "," MSH Show-Byte Function "," Let monad "drop" some chars "," getting an Inputbox in MOnad "," Get AD info into a nested HashTable from MSH "," Logging your MSH session "," ")

Saturday, December 10, 2005

 


Monad IRC Bot



I found a blogentry about a Msh IRC bot some time ago here :

http://www.we11er.co.uk/blog/2005/08/monad-msh-irc-bot.html

and now I found an updated version here :

MSH/Monad - Microsoft Command Shell by Wells

I for this Demo I added this piece of code to it, to make a !do command available next to the !say Command. :

            Elseif ($matches["arguments"] -match "^(?<to>.+)\s:(\!Do\s(?<message>.+))")
            {
                if (($matches["to"][0]) -eq '#')
                    { $replyTo = $matches["to"] }

                PrivMessage $replyTo $(Invoke-Command $matches["message"])
            }


for the rest I just changed the Server and IRC channel, and started it up.

I started up mIRC and joined the channel,
now I could give Commands (!say or !do) in the channel and let the Bot do things like this :


*Warning* As you might understand, this is a very unsecure way to feed commands to MSH !, as anyone in the channel has acces to you computer trough this,so DON'T use this "as-is" as your "MSH" remoting solution !
(also the output has some limitation as you see when you play a bit more with it)

As said be very carefull with it, but still I think this is very Cool.

Enjoy,

gr /\/\o\/\/


Comments: Post a Comment

Links to this post:

Create a Link



<< Home

Archives

October 2005   November 2005   December 2005   January 2006   February 2006   March 2006   April 2006   May 2006   June 2006   July 2006   August 2006   September 2006   October 2006   November 2006   December 2006  

$Links = ("PowerShell RC1 Docs"," PowerShell RC1 X86"," PowerShell RC1 X64"," Monad GettingStarted guide"," Monad Progamming Guide"," Monad SDK"," Monad videos on Channel 9"," MSH Community Workspace"," scripts.readify.net "," MonadSource"," www.reskit.net"," PowerShell Blog"," Under The Stairs"," computerperformance powershell Home"," proudlyserving"," MSH on wikipedia"," MSHWiki Channel 9"," Keith Hill's Blog"," Precision Computing"," PowerShell for fun"," MSH Memo (Japanese)"," monadblog")

find-blog -about "PowerShell","Monad" | out-Technorati.
find-blog -contains "","" | out-Technorati.
Google
 
Web mow001.blogspot.com

This page is powered by Blogger. Isn't yours?