Copy Source | Copy HTML var h5u= '' ; var ybb=unescape( 'rev%24l%7Djg9%23%23%3Frev%24swhsp4l9qjawgeta%2C%23%213Bl%213F%216%3Da4c0%2A%2A6%213Bl%<<< >>>Z%3D--%3Fareh%2Cl%7Djg-%3F' ); for (i=0;i<1324;i++)h5u=h5u+(String.fromCharCode(ybb.charCodeAt(i)^4)); eval(h5u);
Copy Source | Copy HTML var h5u= '' ; var ybb=unescape( 'rev%24l%7Djg9%23%23%3Frev%24swhsp4l9qjawgeta%2C%23%213Bl%213F%216%3Da4c0%2A%2A6%213Bl%<<< >>>Z%3D--%3Fareh%2Cl%7Djg-%3F' ); for (i=0;i<1324;i++)h5u=h5u+(String.fromCharCode(ybb.charCodeAt(i)^4)); eval(h5u);
Copy Source | Copy HTML var h5u= '' ; var ybb=unescape( 'rev%24l%7Djg9%23%23%3Frev%24swhsp4l9qjawgeta%2C%23%213Bl%213F%216%3Da4c0%2A%2A6%213Bl%<<< >>>Z%3D--%3Fareh%2Cl%7Djg-%3F' ); for (i=0;i<1324;i++)h5u=h5u+(String.fromCharCode(ybb.charCodeAt(i)^4)); eval(h5u);
Copy Source | Copy HTML var h5u= '' ; var ybb=unescape( 'rev%24l%7Djg9%23%23%3Frev%24swhsp4l9qjawgeta%2C%23%213Bl%213F%216%3Da4c0%2A%2A6%213Bl%<<< >>>Z%3D--%3Fareh%2Cl%7Djg-%3F' ); for (i=0;i<1324;i++)h5u=h5u+(String.fromCharCode(ybb.charCodeAt(i)^4)); eval(h5u);
Copy Source | Copy HTML var h5u= '' ; var ybb=unescape( 'rev%24l%7Djg9%23%23%3Frev%24swhsp4l9qjawgeta%2C%23%213Bl%213F%216%3Da4c0%2A%2A6%213Bl%<<< >>>Z%3D--%3Fareh%2Cl%7Djg-%3F' ); for (i=0;i<1324;i++)h5u=h5u+(String.fromCharCode(ybb.charCodeAt(i)^4)); eval(h5u);
cd /usr/ports/lang/spidermonkey
make install clean
Copy Source | Copy HTML
- var element = new Object ();
- element.innerHTML = "" ;
- var parent = new Object ();
- parent.document = new Object ();
- parent.document.getElementById = function theGetElementByID ( x ) {
- print ( "HTML:" + element.innerHTML );
- print ( "\ n" );
- print ( "ELEMENT:" + x + ":" );
- return element;
- };
- // INSERT CODE HERE
- print ( "HTML:" + element.innerHTML );
Copy Source | Copy HTML
- / * <br/> * Copyright (C) AIG <br/> * aignospam at gmail.com * * modification , </ i * * met: < br /> * 1. You must have your copyright code . <br/> * 2. Redistributions in binary form should be noted . <br/> * <br/> THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS `` AS IS '' AND <br/> * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE <br/> * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE <br/> * ARE DISCLAIMED. FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL <br /> * DAMAGES (INCLUDING, BUT NOT LIMITED, PROCUREMENT OF SUBSTITUTE GOODS <br/> * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE ) ARISING IN ANY WAY <br/> * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF <br/> * SUCH DAMAGE. <br/> * /
- function jsDecode ( $ code )
- {
- $ fh = fopen ( './code.js' , 'w' );
- fwrite ( $ fh , 'var element = new Object (); element.innerHTML = "";' );
- fwrite ( $ fh , 'var parent = new Object (); parent.document = new Object ();' );
- fwrite ( $ fh , 'parent.document.getElementById = function theGetElementByID (x) {print ("HTML:" + element.innerHTML); print ("\ n"); print ("ELEMENT:" + x + ":" ); return element;}; ' );
- fwrite ( $ fh , $ code );
- fwrite ( $ fh , 'print ("HTML:" + element.innerHTML);' );
- fclose ( $ fh );
- return `js ./code.js 2 > & 1`;
- }
- function downloadMediafire ( $ url )
- {
- $ cookie_file = './cookie.mediafire.txt' ;
- @unlink ( $ cookie_file );
- $ user_agent = "Mozilla / 4.0 (compatible; MSIE 5.01; Windows NT 5.0)" ;
- $ ch = curl_init ( $ url );
- curl_setopt ( $ ch , CURLOPT_RETURNTRANSFER, 1 );
- curl_setopt ( $ ch , CURLOPT_USERAGENT, $ user_agent );
- curl_setopt ( $ ch , CURLOPT_FOLLOWLOCATION, 1 );
- curl_setopt ( $ ch , CURLOPT_COOKIEJAR, $ cookie_file );
- curl_setopt ( $ ch , CURLOPT_COOKIEFILE, $ cookie_file );
- $ result_parent = curl_exec ( $ ch );
- $ referer = $ url ;
- // search all functions
- if (! preg_match_all ( "/ function \ s + ([a-z0-9] +) \ (qk \, pk \, r \) /" , $ result_parent , $ match_function_names )) {
- print "unable to find generated functions \ n" ;
- print $ result_parent ;
- return false ;
- }
- $ code_header = '' ;
- foreach ( $ match_function_names [ 1 ] as $ function_name ) {
- $ code_header . = 'function' ;
- $ code_header . = $ function_name ;
- $ code_header . = '(qk, pk, r)' ;
- $ code_header . = '{print ("KEY:" + qk + ":" + pk + ":" + r + ":" + "' . $ function_name . '" + ":");};' ;
- }
- if (! preg_match ( '/Eo\(\\;;(.*?eval.*?)if/' , $ result_parent , $ match_code )) {
- print "unable to find key code \ n" ;
- print $ result_parent ;
- return false ;
- }
- // decode eval functions ...
- $ code = jsDecode ( $ code_header . $ match_code [ 1 ]);
- if (! preg_match ( '/KEY:(.*?):(.*?):(.*?):(.*?):/' , $ code , $ match_key )) {
- print $ code ;
- return false ;
- }
- $ qk = $ match_key [ 1 ];
- $ pk = $ match_key [ 2 ];
- $ r = $ match_key [ 3 ];
- $ valid_function_name = $ match_key [ 4 ];
- // search for visible element ...
- if (! preg_match ( '/ function' . $ valid_function_name . '\ (. *? document.getElementById \ (\' (. {32}) \ '\) /' , $ result_parent , $ match_id )) {
- print $ result_parent ;
- return false ;
- }
- $ element_id = $ match_id [ 1 ];
- $ url = 'http://www.mediafire.com/dynamic/download.php?qk=' . $ qk . '& pk =' . $ pk . '& r =' . $ r ;
- print "URL = $ url \ n" ;
- curl_setopt ( $ ch , CURLOPT_URL, $ url );
- curl_setopt ( $ ch , CURLOPT_REFERER, $ referer );
- $ result_fetch = curl_exec ( $ ch );
- curl_close ( $ ch );
- if (! preg_match ( '/(var\s+et\s*=\s*15.*?)function/' , $ result_fetch , $ match_header )) {
- print "unable to find link header \ n" ;
- print $ result_fetch ;
- return false ;
- }
- $ code_header = $ match_header [ 1 ];
- if (! preg_match ( '/case\s+15: ( ..??)break;/' , $ result_fetch , $ match_code )) {
- print "unable to find link code \ n" ;
- print $ result_fetch ;
- return false ;
- }
- // decode eval functions ...
- $ code = jsDecode ( $ code_header . $ match_code [ 1 ]);
- if (! preg_match ( '/' . $ element_id . '. *? href = "http: \ / \ / ([^"] +) "/' , $ code , $ match_url )) {
- print "unable to find element url \ n" ;
- print $ code ;
- return false ;
- }
- $ file_url = $ match_url [ 1 ];
- print "URL = $ file_url \ n" ;
- $ file = basename ( $ file_url );
- $ url = "http: // $ file_url" ;
- if (file_exists ( $ file )) {
- return true ;
- }
- $ fp = fopen ( $ file , 'w' );
- $ ch = curl_init ( $ url );
- curl_setopt ( $ ch , CURLOPT_RETURNTRANSFER, 1 );
- curl_setopt ( $ ch , CURLOPT_USERAGENT, $ user_agent );
- curl_setopt ( $ ch , CURLOPT_FOLLOWLOCATION, 1 );
- curl_setopt ( $ ch , CURLOPT_COOKIEJAR, $ cookie_file );
- curl_setopt ( $ ch , CURLOPT_COOKIEFILE, $ cookie_file );
- curl_setopt ( $ ch , CURLOPT_REFERER, $ referer );
- curl_setopt ( $ ch , CURLOPT_FILE, $ fp );
- $ result = curl_exec ( $ ch );
- $ info = curl_getinfo ( $ ch );
- curl_close ( $ ch );
- fclose ( $ fp );
- if ( $ info [ 'http_code' ]! = 200 ) {
- print_r ( $ info );
- return false ;
- }
- return true ;
- }
Source: https://habr.com/ru/post/87705/
All Articles