$ip = fopen(‘input.txt‘, "r");
... [READ MORE]
$test_cases = trim(fgets($ip));
$c=1;
while($c!= $test_cases+1){
$case=preg_replace(‘/[^a-z]+/’, ", strtolower(trim(fgets($ip))));
$vals=array_count_values(str_split($case));
arsort($vals);
$beauty=26;
$max_b=0;
foreach($vals as $v){
$max_b +=$v*$beauty;
$beauty–;
}
print("Case #".$c.": ".$max_b);
if($c < $test_cases){
print("
");
}
$c++;
}
NimBuzz Official Website hacked by Iranian Hackers
<p>
</div>
<div style="text-align: left;">
As a proof he saved a mirror at <a href="http://zone-h.com/mirror/id/19693441" style="font-weight: bold;" >Zone-H</a>. The <b>Nimbuzz</b> website can’t be accessed right now. Google Chrome gives an error "<b>Oops! Google Chrome could not connect to nimbuzz.com</b>"
</div>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
<b>Nimbuzz </b>is one of the popular chat clients in <b>PC </b>and mobile phones. After this attack, it’s sure that users will move out of <b>Nimbuzz</b>.
</div>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
<span style="font-size: large;">Earlier in the <b>Nimbuzz </b>Blog They said that they would give <b>Cash</b> if anyone reports security issues.</span>
</div>
<div style="text-align: left;">
See the blog post <a href="http://blog.nimbuzz.com/2013/04/03/report-bugs-and-win-cash-prizes-and-more-with-nimbuzz/" >here</a>.
</div>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
They also said "<span style="background-color: white; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 18px;"><b>Each week we would announce one winner and his photo would be up here on the Global Blog and will get Nimbuzz Merchandise. After 6 weeks we would then pick one of these 6 winners and that winner would get Cash prize.</b><span style="background-color: white; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; line-height: 18px;">"</span></span></p>
<p>
<span style="color: #333333; font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="line-height: 18px;">One thing is for sure : The hacker’s photo would be on the Global Blog.</span></span></div> </div>
... [READ MORE]
What is SQL Injection and how to make your PHP site free from SQL Injection hacking
$user=$_GET[‘user’];
$sql=mysql_query("SELECT * FROM users WHERE user='".$user."‘");
http://example.com/user.php?user=subin
... [READ MORE]