Rooting Samsung Tab 2 (at your own risk)
Step 1: Download the .zip file of Heimdall [Official Website] and extract using an app like WinRAR or 7-zip.
Step 2: Boot Samsung Galaxy Tab into "Download Mode". To do this, power the device down, and then turn it on while holding the "Volume Down" button.
Step 3: The device will say "Download Mode Do Not Turn Off Target". Now, connect the phone to the computer with a USB cable.
Step 4: Download the following files:
• gt-p3110.pit
• boot-bjr.img
Now keep them in the same place where Heimdall was extracted in Step 1.
Step 5: Open a command prompt and locate the folder from Step 1. Then type in "adb reboot download."
Step 6: Launch heimdall-frontend, and go to the "Flash" tab. Then, load the attached pit file (gt-p3110.pit).
Step 7: In partition details, select "KERNEL", and click "Add."
Step 8: Now, choose "Browse" and select the attached boot-bjr.img. Then, click "Start."
Step 9: After the tablet reboots, type the following into the command prompt:
adb shell
./su
./gtab2-root.sh
The Galaxy Tab should now be rooted.
-----------------------------------------------
Note: i try this method on my windows 7 (64 bit) but the application crash !