Wednesday, 15 May 2013

Remotely shutdown a computer with a cellphone.


Use your mobile phone to remotely turn off your computer.



What you must have?


1.A mobile phone with EDGE network activated to send an email from your mobile browser(or any browser/application).

2. A personal computer or laptop( That you wanted to shut down) at home which receives an email sent by your mobile phone.


Procedure:

What you have to do is accept an email at your computer(Using Microsoft outlook) which checks for headers strings of emails, and if that string matches the rules, you are gonna run an application which commands to forcefully shut down your computer.

YouTube Video showing the procedure step by step:






WATCH THIS VIDEO IN FULL SCREEN (720p)





Image of sending email from mobile phone:












It took approx. 2 minutes from sending this mail from mobile phone to shutting down of the computer.

                                                






Monday, 13 May 2013

Facebook hack. Photo Albums of non friends. ( EPIC HACK)

If you want to be creepy on Facebook. I have found the ultimate hack.



Now with my hack. You can access the photo albums of your non-facebook-friends.


Here is the trick.


1. Login to your facebook account. Open regular image of your's like this.

NOTICE: Regular, an in full image(Not the thumbnail). 
As an example i am showing you my profile.

















2. Open image in new URL. It should look like this.












3. Notice the Code in URL:   69626_10200508175211438_138039230_n


4. Now "Copy image URL" of the victim whose image you want to see.


Eg. VICTIMS page.






NOTICE: You wont be able to open the victims full image, as the image is not public. Just right click on the small image, i.e, the thumbnail itself and click "Copy Image URL" 




5. Victim URL should look like this:



Notice the code in VICTIMS url: 370303_100001264754872_414560566_n



5. Final Step:

Replace working full image URL code With Victims URL code.

E.g

Replace this URL:
https://m.ak.fbcdn.net/sphotos-f.ak/hphotos-ak-ash3/69626_10200508175211438_138039230_n.jpg

With

https://m.ak.fbcdn.net/sphotos-f.ak/hphotos-ak-ash3/370303_100001264754872_414560566_n.jpg

NOTICE: My code has been replace with victims Code.

6. Open the final URL. You are done. Full Image of non-facebook-friend.

Final IMG:


















Happy hacking.

Securing MySQL server in 5 minutes


Listen Only Where You Want to Hear

Just like memcache, the default mysql install is listening patiently on all your server’s ethernet devices for someone to connect. So, just like memcache, we need to tell mysql to only listen on the ethernet device we care about. For your average single-server web host, you only need to listen to your local host.
Find your my.conf file. On servers I manage, this is either at
/etc/my.conf
or
/etc/mysql/my.conf

Secure Your Root Password

When you first start mysql on a new install, it prints out a message that says something like “Don’t forget to set a root password!”, and gives you a couple of command-line examples. But guess what? A lot of people never get around to setting these (and I have been as guilty of that as anyone). Here are those commands again:
mysqladmin -u root password “newpassword”
mysqladmin -u root -h localhost password “newpassword”

Use an Application-Specific User

If you’re reading this blog, you probably have a Java, PHP, or Ruby application that isconnecting to your mysql server and accessing data in a database. We want to create a user specifically for our application, and give them just the abilities they need for our database.
dbock@my.example ~]$mysql -u root -p
you’ll be prompted to enter your shiny new root password. After you connect, we’ll type:
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> GRANT ALL ON schpoo.* to 'my_app_user'@'localhost' IDENTIFIED BY '';
Query OK, 0 rows affected (0.11 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.06 sec)

Grant ALL? Seriously?

Well, I’m speaking with my Ruby on Rails hat on – and I’m generally going to use that user to read and write to the database as well as run migrations, so ‘ALL’ makes sense. If you want an extra dose of paranoia, you can grant different sets of privileges to different users – but doing that properly would become advice more tuned to configuring, say Hibernate, than mysql.

A Note About Passwords

We all know its bad to reuse passwords… so how do manage passwords for a dozen clients across a dozen applications, and not reuse passwords?
There is a great little command-line linux tool used for generating universally unique identification strings, called uuidgen. Here’s some sample output:
[dbock@my.example ~]$ uuidgen
b70b8753-bbc0-4881-9b81-5e00baacd39a
[dbock@my.example ~]$ uuidgen
8f79aadd-29a0-41b7-bf66-6ad23ea49f04
[dbock@my.example ~]$ uuidgen
ea56ef7f-556e-44d5-a808-8baebc74c3d1

Hiding address bar in pop up window using Javascript.

Hello guys


I was working on my project, and found out that all the latest browser's does not allow the hiding of Address bar( The URL display).
Here's my code:


<html>
<head></head>
<body>
<a href="http://localhost:8080/webSMA/WebManagement.html" onclick="window.open(this.href,'child','width=796,height=610,status=no,directories=no,menubar=no,toolbar=no,scrollbars=no,location=no,resizable=no,titlebar=no'); return false"><button type="button">WebManager EndPoint Editor</button></a>
</body>
</html>

PROBLEM

The above code will work properly in all browsers except Firefox. Because hiding the locationbar is disabled by default in Firefox3(and later versions) due to security reasons.
It works Fine in Internet explorer.
The problem with firefox, i figured out is the security issue. It ignores all the Javascript related to the
"Location= no and Resize=no" part.

SOLUTION

If you want to hide the address bar then,

We can hide/show the addressbar in Firefox by setting the below preference,
      Dom.disable_window_open_feature.location

Below are the possible values for this preference and their effects,
True:
Ignore "location=no" in the window features argument of window.open() and prevent popups from hiding the Location Bar. (Default in Firefox 3 and later versions)

False:
Allow popups to hide the Location Bar. (Default in Mozilla Suite/SeaMonkey and prior to Firefox 3)

You can modify this preference in two ways, about:config or user.js file. The below method shows how to change this preference using about:config option,

1) Type ‘about:config’ into the address bar and press enter
2) Filter for ‘dom’
3) Set ‘Dom.disable_window_open_feature.location‘ to false

There are also a bunch of other DOM options such as stopping new windows from opening with out the menubar (Dom.disable_window_open_feature.menubar), scrollbars (Dom.disable_window_open_feature.scrollbars) and such. You can find them here.