Showing posts with label hacking. Show all posts
Showing posts with label hacking. Show all posts

Monday, January 30, 2012

How To Disable Copy and Paste from your Website

This little Javascript code prevents your visitors to copy content from your website or blog.
Just copy and paste this code into the <head> section of your website's code and see the magic. :-)





<script type="text/JavaScript">
//courtesy of BoogieJack.com
function killCopy(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=killCopy
document.onclick=reEnable
}
</script>

Hack Any Windows OS using Command Prompt via a Limited Account

This is a trick which is always successful if you're given access to a limited account on a Windows OS and can use Command Prompt( or say MS-DOS), where restrictions are imposed(usually educational institutes do that). I knew about this from some time, and now posting it here.

   1. First of all, open Command Prompt. If Command Prompt is not where it should be(probably deleted), go to Run, and type cmd.exe and click OK. it will run.




   2. Now in the command prompt, type "net user pirate /ADD".
In the place of pirate, type any user name you want, to be used as the account name. I am creating a user named "pirate" here.



   3.  Now, type "net localgroup administrator pirate /add".
Our very own "pirate" will be an admin now. :-)



   4. Log off and log in to the computer by using the user account you have just created.
You're the admin now! Congrats! Party time! ;-)

This works smoothly on all Windows OS, before and including Windows XP.


However, in Windows Vista and 7, this is more tricky because by default even if you run Command Prompt, it can't have administrative priveleges to create a user account.This security hole has been fixed probably in these versions, and its great. :)


NOTE:


This is only for Educational purpose. Don't use it for any illegal use or where it can harm anyone...!!
I wont be responsible for anything.

Hide a File inside an Image

This is the trick to hide a secret message inside an image file


Follow these steps :

1. Gather the file you wish to bind, and the image file, and place them in a folder.
I will be using
C:\New Folder

-The image will hereby be referred to in all examples as xyz.jpg
-The file will hereby be referred to in all examples as New Text Document.txt

2. Add the file/files you will be injecting into the image into a WinRar .rar or .zip.
From here on, this will be referred to as (secret.rar)

3. Open command prompt by going to Start > Run > cmd.exe

4. In Command Prompt, navigate to the folder where your two files are by typing
cd location [ex: cd C:\New Folder]

5. Type [copy /b xyz.jpg + secret.rar xyz.jpg] (remove the brackets)

Congrats, as far as anyone viewing is concerned, this file looks like a JPEG,
 acts like a JPEG, and is a JPEG, yet it now contains your file.

In order to view/extract your file, there are two options that you can take

a) Change the file extension from xyz.jpg to xyz.rar, then open and your file is there
b) Leave the file extension as is, right click, open with WinRar and your file is there.