Sunday, 12 October 2008

Malaysian Mobile Phone Number Wordlist Generator

Save this code as MalaysiaWirelessWordlistGenerator.java

/**

* This wordlist generator brought to you by:

* KaibaTheLegacy "The Elite Blog For All"

* http://kaibathelegacy.blogspot.com

*

* This generator has been coded by me (KaibaTheLegacy) .

* This code is protected under

* GNU Public Licence by Free Software Foundation.

*

* This code is given by me for free by meaning of freedom

* and price. You are prohibited to sell my wordlist

* generator source code. If you modified this code,

* please credit me and please give your code free

* to others too.

*

* This code is absolutely NO WARRANTY. Use this code

* at your own risk. Neither the programmer or anybody

* else responsible

* for any damage regarding to this code.

*

* KaibaTheLegacy 2008. Copyleft and Free/Libre Open Source Software

* No Copyright in Islam. Feel Free to share.

* Sharing is not a crime

* because sharing is caring.

*/


 

/**

* @author KaibaTheLegacy

*

*/

import java.io.*;

import java.text.DecimalFormat;

public class MalaysiaWirelessWordlistGenerator {


 

    /**

     * @param args

     */

    public static void main(String[] args) {

        // TODO Auto-generated method stub

        PrintWriter out=null;

        try {

             out

             = new PrintWriter(new BufferedWriter

                     (new FileWriter

                    ("WirelessWordlist019.txt")));

             //The output will be stored in WirelessWordlist019.txt

        } catch (IOException e) {

            // TODO Auto-generated catch block

            e.printStackTrace();

        }


 

        DecimalFormat df = (DecimalFormat) DecimalFormat.getNumberInstance();

        

        df.setMaximumIntegerDigits(7);

        df.setMinimumIntegerDigits(7);

        df.setGroupingUsed(false);

        String phoneNumber = "";

        

        /*Change the value of i according

         * to your country phone number

         * system.

         */

        for (int i=0;i<=9999999;i++) {

         phoneNumber= df.format(i);

        out.println("019" + phoneNumber);

        /*019 is extension for a Malaysian

         * mobile phone company

         */

        out.flush();

        /*Don't remove out.flush()

         * or your computer may hang due to

         * large memory consumption.*/

        }    

        out.close();

        System.out.println("Finished!!!");

        /*Finished!!! will be appeared in console

         * after your wordlist generation session

         * complete. It will take a long time if

         * you will generate a large wordlist.

         */

         }

        
 

        


 

    }

No comments:

Google custom search

Custom Search