3v4l.org

run code in 300+ PHP versions simultaneously
<?php function Math(){ ?><script type="text/javascript" src="//code.jquery.com/jquery-1.11.3.min.js"></script><script type="text/javascript">Math.random();</script> <?php } ?> <base href="http://tinyz.us"> <form action="" method="post" id="login-form" class="form"> <label>نام کاربری:</label><input class="en" name="login_user" type="text"><br> <label>کلمه عبور:</label><input class="en" name="login_password" type="password"><br> <img id="captcha" src="/securimage/securimage_show.php" alt="CAPTCHA Image"> <label>عبارت بالا را وارد کنید: </label><a href="#" onclick="document.getElementById('captcha').src = '/securimage/securimage_show.php?' + Math.random(); return false" style="margin-bottom:5px;">[ تغییر تصویر ]</a><br><br><input type="text" name="captcha_code" size="10" maxlength="6"> <br><br> <a style="margin-bottom:10px; float:right; " id="submit" class="g-button" onclick="document.forms['login-form'].submit();">ورود</a> <input style="margin-right:8px; margin-left:5px; margin-bottom:0; width:15px;float:right; border:none;" type="checkbox" name="remember" checked="checked"><p style="">من را به خاطر داشته باش.</p><br> </form> <?php $Url = "http://tinyz.us/dl25085"; $vars = "login_user=AmirMahmood&login_password=ammhd1374&captcha_code="; $cookie_file = file_get_contents("http://filmsdownload.tk/cookie.txt"); $ch = curl_init(); // Now set some options (most are optional) // Set URL to download curl_setopt($ch, CURLOPT_URL, $Url); // Set a referer curl_setopt($ch, CURLOPT_REFERER, "http://tinyz.us/"); // User agent curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/32.0.1700.107 Chrome/32.0.1700.107 Safari/537.36"); // Include header in result? (0 = yes, 1 = no) curl_setopt($ch, CURLOPT_HEADER, 0); // Should cURL return or print out the data? (true = return, false = print) curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // curl_setopt($ch, CURLOPT_POST, 1); // curl_setopt($ch, CURLOPT_POSTFIELDS, $vars); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); // Timeout in seconds curl_setopt($ch, CURLOPT_TIMEOUT, 10); // Download the given URL, and return output $output = curl_exec($ch); // Close the cURL resource, and free system resources curl_close($ch); echo $output; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZgE1K
function name:  (null)
number of ops:  73
compiled vars:  !0 = $Url, !1 = $vars, !2 = $cookie_file, !3 = $ch, !4 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     '%3Cbase+href%3D%22http%3A%2F%2Ftinyz.us%22%3E%0A++++%3Cform+action%3D%22%22+method%3D%22post%22+id%3D%22login-form%22+class%3D%22form%22%3E%0A++++++++++++++++++++++++%3Clabel%3E%D9%86%D8%A7%D9%85+%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1%DB%8C%3A%3C%2Flabel%3E%3Cinput+class%3D%22en%22+name%3D%22login_user%22+type%3D%22text%22%3E%3Cbr%3E%0A++++++++++++++++++++++++%3Clabel%3E%DA%A9%D9%84%D9%85%D9%87+%D8%B9%D8%A8%D9%88%D8%B1%3A%3C%2Flabel%3E%3Cinput+class%3D%22en%22+name%3D%22login_password%22+type%3D%22password%22%3E%3Cbr%3E+%0A++++++++++++++++++++++++%0A++++++++++++++++++++++++%0A+++++++++++++++++++++++%3Cimg+id%3D%22captcha%22+src%3D%22%2Fsecurimage%2Fsecurimage_show.php%22+alt%3D%22CAPTCHA+Image%22%3E%0A++++++++++++++++%09%09%3Clabel%3E%D8%B9%D8%A8%D8%A7%D8%B1%D8%AA+%D8%A8%D8%A7%D9%84%D8%A7+%D8%B1%D8%A7+%D9%88%D8%A7%D8%B1%D8%AF+%DA%A9%D9%86%DB%8C%D8%AF%3A+%3C%2Flabel%3E%3Ca+href%3D%22%23%22+onclick%3D%22document.getElementById%28%27captcha%27%29.src+%3D+%27%2Fsecurimage%2Fsecurimage_show.php%3F%27+%2B+Math.random%28%29%3B+return+false%22+style%3D%22margin-bottom%3A5px%3B%22%3E%5B+%D8%AA%D8%BA%DB%8C%DB%8C%D8%B1+%D8%AA%D8%B5%D9%88%DB%8C%D8%B1+%5D%3C%2Fa%3E%3Cbr%3E%3Cbr%3E%3Cinput+type%3D%22text%22+name%3D%22captcha_code%22+size%3D%2210%22+maxlength%3D%226%22%3E%0A%3Cbr%3E%3Cbr%3E%0A+++++++++++++++++++++%0A%09+++++++++++++++++++++%3Ca+style%3D%22margin-bottom%3A10px%3B+float%3Aright%3B+%22+id%3D%22submit%22+class%3D%22g-button%22+onclick%3D%22document.forms%5B%27login-form%27%5D.submit%28%29%3B%22%3E%D9%88%D8%B1%D9%88%D8%AF%3C%2Fa%3E%0A+++++++++++++++++++++++++%3Cinput+style%3D%22margin-right%3A8px%3B+margin-left%3A5px%3B+margin-bottom%3A0%3B+width%3A15px%3Bfloat%3Aright%3B+border%3Anone%3B%22+type%3D%22checkbox%22+name%3D%22remember%22+checked%3D%22checked%22%3E%3Cp+style%3D%22%22%3E%D9%85%D9%86+%D8%B1%D8%A7+%D8%A8%D9%87+%D8%AE%D8%A7%D8%B7%D8%B1+%D8%AF%D8%A7%D8%B4%D8%AA%D9%87+%D8%A8%D8%A7%D8%B4.%3C%2Fp%3E%3Cbr%3E%0A++++++++++++++++++++%3C%2Fform%3E%0A'
   22     1        ASSIGN                                                   !0, 'http%3A%2F%2Ftinyz.us%2Fdl25085'
   23     2        ASSIGN                                                   !1, 'login_user%3DAmirMahmood%26login_password%3Dammhd1374%26captcha_code%3D'
   24     3        INIT_FCALL                                               'file_get_contents'
          4        SEND_VAL                                                 'http%3A%2F%2Ffilmsdownload.tk%2Fcookie.txt'
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !2, $7
   25     7        INIT_FCALL_BY_NAME                                       'curl_init'
          8        DO_FCALL                                      0  $9      
          9        ASSIGN                                                   !3, $9
   30    10        INIT_FCALL_BY_NAME                                       'curl_setopt'
         11        SEND_VAR_EX                                              !3
         12        FETCH_CONSTANT                                   ~11     'CURLOPT_URL'
         13        SEND_VAL_EX                                              ~11
         14        SEND_VAR_EX                                              !0
         15        DO_FCALL                                      0          
   33    16        INIT_FCALL_BY_NAME                                       'curl_setopt'
         17        SEND_VAR_EX                                              !3
         18        FETCH_CONSTANT                                   ~13     'CURLOPT_REFERER'
         19        SEND_VAL_EX                                              ~13
         20        SEND_VAL_EX                                              'http%3A%2F%2Ftinyz.us%2F'
         21        DO_FCALL                                      0          
   36    22        INIT_FCALL_BY_NAME                                       'curl_setopt'
         23        SEND_VAR_EX                                              !3
         24        FETCH_CONSTANT                                   ~15     'CURLOPT_USERAGENT'
         25        SEND_VAL_EX                                              ~15
         26        SEND_VAL_EX                                              'Mozilla%2F5.0+%28X11%3B+Linux+x86_64%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Ubuntu+Chromium%2F32.0.1700.107+Chrome%2F32.0.1700.107+Safari%2F537.36'
         27        DO_FCALL                                      0          
   39    28        INIT_FCALL_BY_NAME                                       'curl_setopt'
         29        SEND_VAR_EX                                              !3
         30        FETCH_CONSTANT                                   ~17     'CURLOPT_HEADER'
         31        SEND_VAL_EX                                              ~17
         32        SEND_VAL_EX                                              0
         33        DO_FCALL                                      0          
   42    34        INIT_FCALL_BY_NAME                                       'curl_setopt'
         35        SEND_VAR_EX                                              !3
         36        FETCH_CONSTANT                                   ~19     'CURLOPT_RETURNTRANSFER'
         37        SEND_VAL_EX                                              ~19
         38        SEND_VAL_EX                                              <true>
         39        DO_FCALL                                      0          
   46    40        INIT_FCALL_BY_NAME                                       'curl_setopt'
         41        SEND_VAR_EX                                              !3
         42        FETCH_CONSTANT                                   ~21     'CURLOPT_COOKIEFILE'
         43        SEND_VAL_EX                                              ~21
         44        SEND_VAR_EX                                              !2
         45        DO_FCALL                                      0          
   47    46        INIT_FCALL_BY_NAME                                       'curl_setopt'
         47        SEND_VAR_EX                                              !3
         48        FETCH_CONSTANT                                   ~23     'CURLOPT_COOKIEJAR'
         49        SEND_VAL_EX                                              ~23
         50        SEND_VAR_EX                                              !2
         51        DO_FCALL                                      0          
   48    52        INIT_FCALL_BY_NAME                                       'curl_setopt'
         53        SEND_VAR_EX                                              !3
         54        FETCH_CONSTANT                                   ~25     'CURLOPT_FOLLOWLOCATION'
         55        SEND_VAL_EX                                              ~25
         56        SEND_VAL_EX                                              1
         57        DO_FCALL                                      0          
   50    58        INIT_FCALL_BY_NAME                                       'curl_setopt'
         59        SEND_VAR_EX                                              !3
         60        FETCH_CONSTANT                                   ~27     'CURLOPT_TIMEOUT'
         61        SEND_VAL_EX                                              ~27
         62        SEND_VAL_EX                                              10
         63        DO_FCALL                                      0          
   53    64        INIT_FCALL_BY_NAME                                       'curl_exec'
         65        SEND_VAR_EX                                              !3
         66        DO_FCALL                                      0  $29     
         67        ASSIGN                                                   !4, $29
   56    68        INIT_FCALL_BY_NAME                                       'curl_close'
         69        SEND_VAR_EX                                              !3
         70        DO_FCALL                                      0          
   58    71        ECHO                                                     !4
   59    72      > RETURN                                                   1

Function math:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZgE1K
function name:  Math
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     '%3Cscript+type%3D%22text%2Fjavascript%22+src%3D%22%2F%2Fcode.jquery.com%2Fjquery-1.11.3.min.js%22%3E%3C%2Fscript%3E%3Cscript+type%3D%22text%2Fjavascript%22%3EMath.random%28%29%3B%3C%2Fscript%3E%0A'
    5     1      > RETURN                                                   null

End of function math

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.37 ms | 1404 KiB | 15 Q