Posts marked with "Hacker" in tags

Facebook Hacker Cup 2013:Beautiful Strings solution in PHP

Here is the solution for FHC 2013 Beautiful Strings problem in PHP:

$ip = fopen(‘input.txt‘, "r");
$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++;
    }

... [READ MORE]

NimBuzz Official Website hacked by Iranian Hackers

Just now. Nimbuzz main site nimbuzz.com was hacked by someone identified as Sourena
The hacker defaced the main site to this
<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>&nbsp;website can&#8217;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&#8217;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>&nbsp;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&#8217;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

SQL Injection (SQLi) is a very dangerous thing that a hacker can do to your site. This happens mostly in SQL queries. Let me make you understand this in a simple way. Suppose you’re SQL query code is this:

$user=$_GET[‘user’];
$sql=mysql_query("SELECT * FROM users WHERE user='".$user."‘");

It’s a normal code. BUT it is a very easy method for hacker to easily destroy your database.
The user ID is getting from a GET request. If the file’s name (where the request is going) is user.php. The URL may be like this:

http://example.com/user.php?user=subin

... [READ MORE]

Follow/Subscribe

Telegram 

Mastodon  Twitter

GitHub GitLab

Subdomains

Demos  Lab

Past

This blog was once on WordPress. Now a static site. See source code on

GitLab