in reply to Help with shockwave-flash parser

Hi woompy,

Am I correct that you're actually trying to execute this entire program as a regex evaluation?!?!  That's gotta set some kind of record for an obfuscated regex.

Sorry that I know next to nothing about Shockwave flash (for some very tiny value of "next to").  But I can see that you've got an extra line in your script; take out the first right brace in:

} }eisg) {}

and then, at least, your program will compile and run.

I would *strongly* urge you to reconsider writing the regex evaluation as a subroutine instead, otherwise you're not going to get alot of people wanting to jump in and tackle it.


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/

Replies are listed 'Best First'.
Re^2: Help with shockwave-flash parser
by woompy (Initiate) on Nov 06, 2006 at 03:40 UTC
    Ok updated the code. The funny thing is it still ran with the extra right curly bracket all it did was print it out. Carn't use HTML::parser as it will be added to the text parser of a forum. This is the output of the above code -
    this is width of - BOLT CODE - - 365 this is height of - BOLT CODE - - 340 this is src of - BOLT CODE - - 340 this is width of - YOUTUBE CODE - - 425 this is height of - YOUTUBE CODE - - 350 this is src of - YOUTUBE CODE - - http://www.youtube.com/v/topeBoB-Ap +Q this is width of - YAHOO CODE - - 425 this is height of - YAHOO CODE - - 350 this is src of - YAHOO CODE - - http://us.i1.yimg.com/cosmos.bcst.yah +oo.com/player/media/swf/FLVVideoSolo.swf This is the text output - <!--videocode-->QUERTSTRING,TITLE,WIDTH and +HEIGHT - (- BOLT CODE - ) loop=false&quality=high&bgcolor=white&width +=365&height=340&name=video_play_500&allowScriptAccess=sameDomain&plug +inspage=http://www.macromedia.com/go/getflashplayer(- BOLT CODE - )(w +idth - 365)(height - 340)(type - ok)(src - 340)<--videocode--> <!--videocode-->QUERTSTRING,TITLE,WIDTH and HEIGHT - (- YOUTUBE CODE - + ) src=http://www.youtube.com/v/topeBoB-ApQ&wmode=transparent&height= +350&width=425(- YOUTUBE CODE - )(width - 425)(height - 350)(type - ok +)(src - http://www.youtube.com/v/topeBoB-ApQ)<--videocode--> <!--videocode-->QUERTSTRING,TITLE,WIDTH and HEIGHT - (- YAHOO CODE - ) + src=http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLV +VideoSolo.swf&width=425&height=350&id=970784&emailUrl=http%3A%2F%2Fvi +deo.yahoo.com%2Futil%2Fmail%3Fei%3DUTF-8%26vid%3De2e02ad6d9d1646cfa12 +ec8f270ae1ad.970784%26cache%3D1&imUrl=http%25253A%25252F%25252Fvideo. +yahoo.com%25252Fvideo%25252Fplay%25253F%252526ei%25253DUTF-8%252526vi +d%25253De2e02ad6d9d1646cfa12ec8f270ae1ad.970784%252526cache%25253D1&i +mTitle=Nobody%252527s%252BWatching%252BOK%252BGo&searchUrl=http://vid +eo.yahoo.com/video/search?p=&profileUrl=http://video.yahoo.com/video/ +profile?yid=&creatorValue=bm9ib2R5c3dhdGNoaW5ndHY%3D&vid=e2e02ad6d9d1 +646cfa12ec8f270ae1ad.970784(- YAHOO CODE - )(width - 425)(height - 35 +0)(type - ok)(src - http://us.i1.yimg.com/cosmos.bcst.yahoo.com/playe +r/media/swf/FLVVideoSolo.swf)<--videocode-->
    There is no SRC in the Bolt code but it won't produce an error as the src value is taken up with the height value. Sorry about the messy code, its a copy and paste from my open perl IDE.