1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unpack Javascript and send to PHP

Discussion in 'Hire a Freelancer' started by baokyrox, Jan 30, 2014.

  1. baokyrox

    baokyrox BANNED BANNED

    Joined:
    Oct 10, 2008
    Messages:
    429
    Likes Received:
    34
    If my php curl a page with the following code

    Code:
    eval(function(p,a,c,k,e,d){while(c--)if(k[c])p=p.replace(new RegExp('\\b'+c.toString(a)+'\\b','g'),k[c]);return p}('2f(\'2e\').2d({\'a\':\'2://9.1.4:g/d/f/6.e\',\'c\':\'2\',\'2c\':\'2b\',\'k\':\'2://5.1.4/7/k/2a.29\',\'j.a\':\'2://5.1.4/7/k/28.27\',\'j.p\':\'26-25\',\'j.24\':\'10\',\'23\':\'2://9.1.4/i/22/8.21\',\'20\':\'q%\',\'1z\':\'q%\',\'n\':\'2://5.1.4/8\',\'1y\':\'2://5.1.4/8\',\'1x\':\'1\',\'1w\':\'2://5.1.4/\',\'1v\':{\'1u-1t\':{"1s":1r,"1q":{"1p":"1o,h,1n,1m"},"7":{"m":{"1l":{"1k":{"1j":1i}}}},"1h":{"1g":{"b":"1f"},"1e":[{"p":"1d-1c","1b":""}]}},\'1a-3\':{\'19\':\'<o 18="2://5.1.4/17-8.16" 15=0 14=0 13=0 12=11 z=y x=w></o>\',\'n\':\'2://5.1.4/8\'},\'2://5.1.4/l.v\':{}},\'m\':[{b:\'u\',t:\'2://5.1.4/7/7.s\'},{b:\'r\',h:{\'a\':\'2://9.1.4:g/d/f/6.e\',\'c\':\'6\'}},{b:\'l\',h:{\'a\':\'2://9.1.4:g/d/f/6.e\',\'c\':\'6\'}}]});',36,88,'|mp4upload|http||com|www|video|player|v1l4grlmw3be|www2|file|type|provider||mp4|ssxxfusgz3b4quuoecuayy2mcxdwclg2nig22mxpqnmnkohl66ffjc35|182|config||logo|skin|download|modes|link|IFRAME|position|100|html5|swf|src|flash|js|370|HEIGHT|650|WIDTH||NO|SCROLLING|MARGINHEIGHT|MARGINWIDTH|FRAMEBORDER|html|embed|SRC|code|sharing|tag|roll|pre|schedule|countdown|notice|ads|false|visible|controls|linear|vpaid|vast_template|fatal|levels|debug|true|delayAdRequestUntilPlay|jw|ova|plugins|aboutlink|abouttext|downloadlink|height|width|jpg|00044|image|timeout|left|top|png|iphone|xml|bekle|start|startparam|setup|flvplayer|jwplayer'.split('|')))
    
    How do I unpack it to become
    Code:
    jwplayer('flvplayer').setup(
    	{
    	'file':'http://www2.mp4upload.com:182/d/ssxxfusgz3b4quuoecuayy2mcxdwclg2nig22mxpqnmnkohl66ffjc35/video.mp4','provider':'http','startparam':'start','skin':'http://www.mp4upload.com/player/skin/bekle.xml','logo.file':'http://www.mp4upload.com/player/skin/iphone.png','logo.position':'top-left','logo.timeout':'10','image':'http://www2.mp4upload.com/i/00044/v1l4grlmw3be.jpg','width':'100%','height':'100%','link':'http://www.mp4upload.com/v1l4grlmw3be','downloadlink':'http://www.mp4upload.com/v1l4grlmw3be','abouttext':'mp4upload','aboutlink':'http://www.mp4upload.com/','plugins':
    		{
    		'ova-jw':
    			{
    			"delayAdRequestUntilPlay":true,"debug":
    				{
    				"levels":"fatal,config,vast_template,vpaid"
    			}
    			,"player":
    				{
    				"modes":
    					{
    					"linear":
    						{
    						"controls":
    							{
    							"visible":false
    						}
    					}
    				}
    			}
    			,"ads":
    				{
    				"notice":
    					{
    					"type":"countdown"
    				}
    				,"schedule":[
    					{
    					"position":"pre-roll","tag":""
    				}
    				]
    			}
    		}
    		,'sharing-3':
    			{
    			'code':'<IFRAME SRC="http://www.mp4upload.com/embed-v1l4grlmw3be.html" FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=650 HEIGHT=370></IFRAME>','link':'http://www.mp4upload.com/v1l4grlmw3be'
    		}
    		,'http://www.mp4upload.com/download.js':
    			{
    		}
    	}
    	,'modes':[
    		{
    		type:'flash',src:'http://www.mp4upload.com/player/player.swf'
    	}
    	,
    		{
    		type:'html5',config:
    			{
    			'file':'http://www2.mp4upload.com:182/d/ssxxfusgz3b4quuoecuayy2mcxdwclg2nig22mxpqnmnkohl66ffjc35/video.mp4','provider':'video'
    		}
    	}
    	,
    		{
    		type:'download',config:
    			{
    			'file':'http://www2.mp4upload.com:182/d/ssxxfusgz3b4quuoecuayy2mcxdwclg2nig22mxpqnmnkohl66ffjc35/video.mp4','provider':'video'
    		}
    	}
    	]
    }
    );
    
    
    I don't want use regex, I can get the output by using javascript Alert and it will show the output of eval function, but problem is I need send the output to my php page, how do I do it.

    Payment : $15 USD
    Mode: Paypal
     
  2. baokyrox

    baokyrox BANNED BANNED

    Joined:
    Oct 10, 2008
    Messages:
    429
    Likes Received:
    34
    Anyone keen to do this job ? Payment up to $20.00 USD

    I need a code that can evaluate the javascript eval, and send back to my php , be it ajax or whatever.

    Example page that contain the eval code
    Code:
    http://www.mp4upload.com/embed-uzn0d6a792g3-650x370.html
    
    Need to fetch the eval function inside, unpack it and send the mp4 path contain inside back to my php script.
     
  3. ttrox

    ttrox Regular Member

    Joined:
    Jun 28, 2013
    Messages:
    217
    Likes Received:
    75
    Hey, I can try to help you again. I'll get back to you in a few minutes.
     
  4. baokyrox

    baokyrox BANNED BANNED

    Joined:
    Oct 10, 2008
    Messages:
    429
    Likes Received:
    34
    Fixed myself. Thread close