Find ID and Class Elements in Any Webpage

It’s been quite sometime since I posted any new posts here.. Here’s a quick video tutorial on how to find ID’s and Class(es) on a webpage, using firefox and firebug addon.

How can this help?
If you’re looking into some automation stuff (using selenium or any other web automation tools), these ID’s and Classes will surely come in handy.

Ah what the heck? :) Let me watch the video:

Stay tuned for another video on how to use the firebug console to do some cool stuff with the webpage elements!

[Dev] Forcing A Download For Files On Web Pages

Something interesting happened today. I was working on a project for a client and the requirement was a file upload and downloadable system (with login of course :) ).. I had completed most of the stuff like login, uploading docs and the right click “save as” worked like a charm. BUT with the latest browsers like chrome and IE9\10, on clicking the link to the document, the files were getting opened either using Google Document Viewer or inside the browser itself – which was a no no for my client..

After trying to pick my brain for couple of hours I figured it could be a server thing and all I had to do was to make sure that I pass the correct header for the respective files (could be .zip, .doc or .pdf or . anything else).

Then it flashed!

I figured it out… The problem was a server problem. Since I was using the WordPress framework to build the site, the header was automatically passed for content and hence the files would open-up inside the browsers. I had to add a small code – just 4 lines in order to make this happen. Here’s what I wrote in order to force the data download:

<FilesMatch “\.(?i:pdf|doc|docx|xls|xlsx|txt|zip)$”>
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>

And that was it! All those hours of brain picking finally paid off :)

I added the above code to the .htaccess file and the rest was taken care by my server :) Let me explain the above code:

 

  • FilesMatch: Simply tells the apache server for the document types. Here I only need to make .doc, .pdf, .zip etc as downloadable.
  • ForceType application/octet-stream: This told apache that the file types listed above is a generic content (MIME) type. So the browser should try to will always show the “open with” or “save as” download dialog if a server sends a file with such a MIME type.
  • Header set Content-Disposition attachment: Then I set the header of the webpage manually and woah! We’re done and that’s it!

For anyone having similar trouble.. Hope this helps!

How to Earn More Farmville Cash than Coins?

I’ve written so many farmville cheats, hacks or how to simply download the farmville bot, it just doesn’t stop there, i’ve got more. Tired of just making Farmville coins? Here is a quick way to make more Farmville cash.

* Get more ribbons: every time you achieve a ribbon, you automatically receive 1 more free cash buck.

* Level up: For every level you achieve you get free farmville cash.

* Buy more items: Although the game is free to play, the company would like people to buy farm dollars with real money to buy specialized items, so that they can use the real money to help offset the expenses of running the game servers. So you can buy farm cash with real American money (usd). you must pay zynga by credit card online, by  clicking the “+ add coins and cash” link at the top-left of the page.

* Complete free offers: The best ones are the ones saying “reach final steps.” just go through it all as fast as you can, putting in false information so you don’t  get spammed (most importantly: put in a fake email address – If you don’t want to be spammed). Once you reach the final steps page, take a screenshot (alt + printscreen/sysrq) and close the browser. You should get your farmville cash within a minute (you’ll get however many it offered). If you don’t receive it, go back onto the missing farm cash area and click on the customer support. Type in your question of “where is my farm cash etc.” and post a link to your screenshot taken earlier. Wait approximately 1-3 hours and you will have your farmville cash, along with an email of apology from the support for your troubles.

Well, these are some of the best tricks that I use on Farmville and I’ve got about 200 farm cash from doing this offer as there is no limit – so just try them all and let me know :)

Cafe World Cheats – Using Cafe World Free Gifts (Video)

Cafeworld a game on Facebook by Zyngya. If you’re hooked to cafe world on Facebook, then these cheat codes will help you win and lead all your friends :)

If you are new on my site, please do read the previous post on Cafe world hacks and cheats.

Here is a video that I found on Youtube, on ‘how to use cafe world free gifts‘.

Video credits – CafeWorldDomination

How to: Create an Orkut share button for your website

Orkut is surely catching up with Facebook and Twitter fast. I was just trying to find some share buttons online and guess what I found? An Orkut share button…. Yeah, just like the Facebook share button, there is an Orkut share button too…

Here is a step by step guide on how to add an Orkut share button to your website:

  1. Go to http://www.google.com/webelements/orkutshare/
  2. Customize your Orkut share button
  3. Grab the auto generated code and add it to your website\blog’s template… :)

Now when you click on the share button it would automatically opens the share screen for you to share the site. The title and the URL is automatically generated according to your settings on step #2.

Here is how the Orkut share screen looks like:

orkut share button
This is when you click on the share button.

orkut share on stream
And this is how it shows on the new Orkut stream!

Another interesting thing to notice is that the Orkut promote uses Oauth URL callback from http://promote.orkut.com/oauth_callback[Unique-id]..

What are your thoughts about this new feature in Orkut? Are you going to use it as much as Facebook or Twitter share buttons? Post your comments below and let me know.

Cafe World Cheat Codes – Update 1

I had previously written some café world cheat code\hacks…. But it looks like zyngya has fixed some of the loopholes and some of the cheats aren’t working properly. So this post is an update to the previous post. If you are looking for some cheats, hints and tips to win in cafe world you’ve come to the right place.

cafe world cheat codes - updated

Here are some Cafe World tips, tricks and cheats.

#1. First tip: Plan for the future, you are planning to go online and play Cafe World after 2 days, in this case you should cook food that will be done in two day period. So, when you go online, you have food ready to serve. Enjoy and repeat.

#2. Second tip: Earn points by visiting often you neighbors and eating their food.

#3. Third tip: Cook foods that take longer time to be done to earn more experience points.

#4. Fourth tip: If you want foods that take long time to be spoiled, choose the foods that take long time to cook.

#5. Fifth tip: Trap The Server Glitch – To make your café more efficient, you can exploit Café World by using the Trap The Server glitch. What you want to do is place your stoves against the back wall; then set up your serving tables, leaving one space behind them and the back wall. This will trap the server and he will be able to deliver and clean up dishes in an instant without moving.

#6. Sixth tip: Legally Stockpile Café Points Quickly And Easily – Bacon cheeseburgers and chips & guacamole are two foods in Café World that can help you gain café points very quickly and easily. A bacon cheeseburger takes 5 minutes to cook and chips & guacamole takes 7 minutes to cook giving you +7 and +4 café points respectively. If you repeatedly cook these two items, you will gain a lot of café points quickly and easily.

Above are just some few Cafe World tips. Now let us talk about Cafe World Cheats.

Before we get started here are some tools that you might need:

  • Cheat Engine 5.5 which can be downloaded from Here
  • Firefox browser (To download go to Mozilla.com)
  • Adobe flash player 9 or 10

Cheat 1: Trap The Waiter Cheat. The effect of this exploit is the food will magically be served on the tables without your waiters going near them and that means no more waiting time.

Cheat 2: Cheat Engine’s unlimited stove and counters. You would need to run the cheat engine software in order use this cheat. Watch the video tutorial below to know how it works.

Café world cheat video 1:

Café world cheat video 2:

As always, if you got more tips, please do post them below :) and subscribe to our feed to get instant updates!! You can also follow me on @thesharath on twitter :D ..

Fishville Cheat Codes \ Hacks

Zyngya is getting on my nerves :) . With my previous posts on Farmville cheat codes & Cafe world Cheats, lots of people are requesting me to write some Fishville cheats \ hacks. So here is my take on the Fishville cheat codes… Enjoy!!!

Before you start, please download the Cheat Engine 5.5 here:

Cheat Engine 5.5 Download

Some of the hacks ONLY work with the cheat engine. Once you’ve installed the cheat engine continue reading the step-by-step guide to cheat and hack FishVille.

Coins \ Money Cheat

This Fishville cheat guide will explain how to get lots of Fishville money \ coins using Cheat Engine 5.5! Hurry and try this cheat as this is still new and works, so do it while it’s not patched :D .

Here is how:

  1. Login to Facebook Fishville using Firefox browser.
  2. Open your Cheat Engine 5.5 and select Firefox as your process.
  3. Make a “First Scan” in Cheat Engine 5.5 with the value of the total coins you currently have (let’s say 100).
  4. Spend some coins in Fishville to reduce the amount of your coins, go back to Cheat Engine and perform a 2nd scan for the value of the coins you now have after spending some.
  5. Repeat this until you are down to one or a couple of addresses, when one of these addresses represents your coins in-game
  6. Change the value of the address to anything you want and freeze it. Now you will see this value is applied to your coins in Fishville!

Unlimited Gifts cheat:

Currently, Facebook FishVille limits you on how often you can send free gifts to your neighbors.   “Read More” to continue to the short guide on how to perform this Fishville trick.

This is not a Facebook Fishville hack, and you don’t need any program to do this! Here is a guide on ‘how to send multiple free gifts from Fishville’:

  1. When you’re in Fishville.
  2. Right click over the “Free Gifts” button and choose to open the link in a new browser tab.
  3. You should repeat the #2nd step and open up as many browser tabs as you’d like, depending on how many gifts you wish to send.
    Now, let’s say we opened 3 browser tabs.
  4. Simply go to each of your browser tabs (start from the first) and select which gifts you wish to send. It’s important that you don’t click the “Proceed to Send” button while choosing your gifts.
  5. After that’s done, go to the 1st browser tab and click the “Proceed to Send” button. Do the same thing on all other opened browser tabs.
  6. Go to each browser tab and select the Fishville Friends to send the gifts. (Again) It’s important that you don’t click the “Send Fishville Gift Request” button yet.
  7. Upon completing the previous step, you can now go to the 1st browser tab and click the “Send Fishville Gift Request” button. Do the same thing on all other opened browser tabs.
  8. When finished the above steps, go back to the 1st tab of your browser. You will probably see the Fishville gift request, with the option to click on “Send“. Click the “Send” button and you are done.

Now that you’ve sent as many gifts as you want, you can close all other tabs and continue playing and enjoying the game!

Got more Fishville cheats? post your comments below and share :D ….

Check if your WordPress site is infected by Malware

There are many websites which host malwares (unknowingly) but they look like pretty nice and authentic sites in order to trap the visitors. Google Safe Browsing tool is a tool developed by Google which helps you to test a website which you think may not be authentic or has malware hidden in the source codes.

malware site
In order to check if your site has an suspicious code or malware then, you just need to type the following in your browser address bar –
http://www.google.com/safebrowsing/diagnostic?site=[website url].

For example we checked our site by going to http://www.google.com/safebrowsing/diagnostic?site=thesharath.com

Blogging is fun! BUT some hackers take advantage and try to hack sites. If you are a wordpress based blogger, then there is a plugin for WordPress that I recommend. It helps find potential viruses, javascript and iframe injections. The plugin is called WordPress Exploit Scanner.

Always upgrade to the latest version of wordpress, most security loop holes are fixed in the latest version of wordpress. And make sure you choose popular plugin rather than being a daredevil to test a new plugin you found on the internet.

First things first, Here is couple of things that you need to do if you think that your website is hit by malware.

  • Identifying malware on your site
  • When looking for badware\malware on your site, especially badware due to hacking attacks, please remember to check the source code of your site as it is currently hosted on your web servers.

  • Malware spread through ads running on your site
  • Always choose a good ads publisher to earn money. We believe in Google Adsense for our revenue, it easy to setup, fast and customizable and more than it’s entirely safe and doesn’t spread malware through ads scripts.

  • Links posted in user-generated areas of your site
  • Always moderate comments and remove clickable links posted in the comments of your articles.

Two common types of injection attacks:

  • Invisible iframes
  • <Iframe> tags are one of the many kinds of HTML tag codes that can be used as part of the source code that creates a website. An iframe creates a small window on a webpage so that another page can load inside the embedded window. Iframes are not always used for nefarious purposes; one frequent use, for example, is to embed remotely hosted dynamic content such as online maps into web pages. When used by malicious attackers, an iframe can be made so small that it is invisible, and the visitor to the infected page never knows that another page is also loading in the tiny iframe window.

    If you see code for an iframe with width=“0” and height=“0” in the source code of any page on your website, you have found an invisible iframe. Iframes are most commonly inserted at the very top or the very bottom of a web page’s source code. A good first place to check for iframes is before the initial tag that starts a web page’s standard code, or after the final that ends a page’s code.

  • Obfuscated code
  • Obfuscated code or scripts are designed to be hidden within the normal code for your site, so they can be hard to detect. The code is written specifically to prevent automated tools from discovering its purpose. The most commonly obfuscated kind of code is javascript, which is used to add functionality to many websites.

    Encrypted code is harder to find, because there are no set patterns. However, encrypted code will look like a block of unintelligible text. Normal javascript uses a syntax based on actual English words. Encoded or encrypted text appears in a site’s source code as completely unintelligible blocks of letters, numbers, and symbols.

    While most hacking attacks focus on html code, it is also possible for bad software itself to be uploaded onto a poorly secured site. Bad software can include unknown executables (such as files that end in .exe, .bat, .cmd, .scr, and .pif), javascript files, or even images uploaded to your site without your knowledge. Sometimes attackers will simply use your website to host badware and link to it from other victim sites. One method for detecting whether you are hosting bad software on your site is to download all of your source code from the live website onto a virtual machine and scan it using anti-virus and anti-spyware programs.

How do you remove malware?

  • Contact your web hosting
  • Remove the bad software from your website and don’t make it available for download again unless you can be sure that it is no longer badware. You can learn more about what makes a piece of software badware in our guidelines. If you are the creator of the software in question, StopBadware may be able to offer recommendations for bringing your software into compliance with our guidelines.

  • Don’t link to malware sites
  • Remove all malware links from your website.

  • If ads are showing malware content
  • Remove all ads that link to malware. If you use an ad network, this may mean removing all the network’s ads from your site until you can be sure the network is clean. You may also want to contact your ad provider and let them know that one or more of their ads is causing badware to be linked from your site.

How does your search engine result get impacted?

Google always wants its users to feel safe when they search the web, and they’re continuously working to identify dangerous sites and increase protection for our users. A warning message appears with search results we’ve identified as sites that may install malicious software on your computer:

google safe browsing

Google will not crawl\index and information from your site (which is bad for you). Hence no content from your site will show in the Google search results gradually.

For more information, visit http://www.stopbadware.org/. Also, Google maintains an Online security blog called Google online security blog, read it for more information.

Farmville cheats and hacks (Updates 1)

There is something called as the BOT, which actually plays farmville for you :) Isn’t that cool? I’ve found one of the best farmville bot tools out there. This farmville autoplayer plants and plows VERY fast – and it works on all the different farm sizes!

farmville

The Farmville magic tool scans your farm plots automatically, so there is no need to adjust any settings regarding sizes and positions.

Continue reading for instructions on how to use this tool and a download link!!

First you need to download the Farmville magic tools 1.3 UPDATED version from here:
Download Farmville magic tools bot – link 1
Download Farmville magic tools bot – link 2

How to use the Auto player bot:

  1. Login to Farmville.
  2. Run Farmville magic tools 1.3, and then select “No” option.
  3. Drag the cow from the magic tools to the Farmville window.
  4. This will detect the game, after which the bot will have all 3 buttons available to use.
  5. Remember to zoom out to the maximum to see the most out of your farm.
  6. You can click on any of the three buttons, and see how the magic is happening :)

And you can also check my previous article on farmville cheats and hacks OR if you are more interested in Cooking in Cafe world check the cafeworld cheats.

Do you have more tricks? share it with us and stay tuned for more cheat codes..

Cafe world cheat codes \ hacks

cafe world

Update: Most of the cheats in this page don’t work anymore as reported by our readers… Visit the Updated cheat codes for cafe world page.

Cafe world, this is the Facebook application that is rocking Facebook currently. Its members count went from 0 to 8.5million in a week according to inside Facebook news. If you play cafe world at Facebook, you can try the below cafe world food\speed cheats or hacks to help you game faster. You will have many burgers. Before starting, you must have download the cheat engine.

Cafe World Unlimited Stove and Counter Hack, Cheats. After looking for Cafe World Cheats, you might be looking for a specific hack for your stoves and counters in Cafe World. You need at least Cheat Engine version 5.4 and Firefox to do this Cafe World Unlimited Stove and Counter Hack.. If are also a big fan of Farmville then, i’ve written a small list of farmville cheats here.

cafe world hacks cheates

Before we get started here are some tools that you might need:

  • A Cheat Engine 5.5 which can be downloaded from Here
  • Firefox browser (To download go to Mozilla.com)
  • Adobe flash player 9 or 10

Food hack

  1. Open cheat engine
  2. Open cafe world
  3. Get the address for quantity of food
  4. Click freeze
  5. You can obtain the address is by using scan type value example 350

So, now you have 350 burgers :) .

Speed to kill – Speed hack for cafe world!

1) On your Cafe World application.
2) Open your cheat engine for process list and choose Firefox.
3) On the right hand side of the Cheat engine simply check on Speed hack
4) Enter your desired speed. Do not increase your speed above 30 as it will encounter timeout. Preferably set to 15
5) Watch your buzz rating go up, your coin increases and the best food to go along would be salad and burgers if you just started playing Zynga Cafe World.

Infinite stove and counter

  1. Go to Customize > Functional > Stoves
  2. You should see the line “4 of 4 stoves used” (if all the stoves are in your cafe now)
    • Setting
    • Scan type ‘ 4 byte ‘
    • Drag 1 stove from the café
  3. You should now see the line “3 of 4 stoves used
  4. NEXT SCAN ’3′
  5. Repeat steps 5 and 6 till you have 1-3 addresses left.
  6. Now change the value of all the remaining addresses to ’1′ and TICK freeze

You now will have infinite stoves :) Enjoy and repeat the same for the counters too!!

Buzz Rating Hack

1) Open the game Cafe World
2) Open Cheat Engine; choose your browser in the process list. Tick HEX, 8 bytes, also scan read-only memory
3) Put 3B840FC98574498B in the hex box
4) You will find 1 address right-click then disassemble
5) Look for “test ecx,ecx”
6) Change it to “test ecx,edx”
7) Then change it back to “test ecx,ecx” after 30 sec

This hack can also be used as a money/coin cheat. As long you use the speed hack to fasten the cooking. Apply this cheat and you see the customer flow coming in fast and your money rolling.. Enjoy!

Unlimited Gift cheat

Click the Link:
http://apps.facebook.com/cafeworld/view_gift.php?ref=neighbor_page&neighbor_id= XXXXXX
Note: xxxxxxx = Friend ID/ or your own Facebook ID can send gift to yourself.

Hope this helps you play fast and easily :) Do you know more cheats\hacks to cafe world? Share it by posting comments below!