Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Pipe in streamname
ShadowM
post Jun 7 2008, 10:57 PM
Post #1


Newbie
*

Group: Members
Posts: 2
Joined: 7-June 08
Member No.: 537



i've come across a slight problem when i 'advertise' a stream that has a pipe in it's name

-> everything after the pipe is executed within mirc as if it were a command

example :

CODE

[22:57] * ShadowM [Now Playing] Liveshow: Release Your Mind (Release Your Mind
[22:57] �� error � unknown command "STREAM"


The original Stream name: Release Your Mind | Stream Hosted @ X-Hosted.nl


preset 2 is what i use in Amip :

CODE

//describe $active [Now Playing] $if(%4,$if(%1,$if(%2,%1: $trunc(%4,32) - %2,%name),%name),%name) $if($mat(%min%sec,^0+$),[Stream],[%min:%sec])


and in my mirc i use :

CODE

alias mp3 {
  /dde mplug announce preset 2
}


how do i escape the pipe (either in mirc or the preset) ?
blink.gif

As this is a security risk ( if i would host a stream and would add a pipe in the name and put in something like quit after it, i would be bumped off irc when i try to advertise .....just to be silent about other potential commands)

how do i resolve this at best ?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Jun 8 2008, 11:53 AM
Post #2


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



http://amip.tools-for.net/wiki/manual/configurator#advanced

"Replace � | � with � $chr(124) � when sending to mIRC
mIRC uses | character for commands separation, so, it's possible to insert a command in the song tag that will do something bad with your mIRC. For security reasons AMIP can replace it with the $chr mIRC function that mIRC will evaluate to | but will not use it as commands splitter. "
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ShadowM
post Jun 9 2008, 10:05 PM
Post #3


Newbie
*

Group: Members
Posts: 2
Joined: 7-June 08
Member No.: 537



QUOTE(Serge @ Jun 8 2008, 01:53 PM) *

http://amip.tools-for.net/wiki/manual/configurator#advanced

"Replace � | � with � $chr(124) � when sending to mIRC
mIRC uses | character for commands separation, so, it's possible to insert a command in the song tag that will do something bad with your mIRC. For security reasons AMIP can replace it with the $chr mIRC function that mIRC will evaluate to | but will not use it as commands splitter. "


found it .. think i've overlooked it unsure.gif *bangs head on wall* ..

might it be a suggestion to put in on by default ..?
.. just to be on the 'safe' side ?


User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: