Thursday 31 January 2013

favicon working in all browsers

code goes here for favicon :

<link rel="icon" href="http://www.example.com/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="http://www.example.com/favicon.ico"
 type="image/x-icon" />

why doesn't the favicon for my site appear in IE7?
When
 I was at Microsoft, I was the developer tasked with fixing the Favicon 
story for IE7. The original IE6 behavior was to download the favicon 
once--when a user made a site a Favorite. I do not want to go too deep 
into the details of how this craziness works, but the key piece of 
information to understanding why it seemed so broken is this: a mapping 
between the url of the site the url for the site's Favicon would be 
stored in IE's History database and the actually bits of the icon would 
be stored in the temporary Internet files folder. Thus, if you cleared 
your history or your cache, or the item expired out of either one, the 
icon would be gone forever.

Fast-forward to IE7. It has been over
 two (three?) years since IE6 shipped. We want to implement tabbed 
browsing, and we want the tabs to display the correct Favicons. So I 
updated the Favicon code to always download the icon on a first visit. 
The code also remembers if there is no Favicon (404) or it was invalid 
in some way (ExtractIcon() failed). 

Here is a Mini-Faq (with one bonus question at the end) that I wrote 
while I was at Microsoft:

Q: How do I make a favicon appear for my site in IE7?
A:
 There are two ways. The first is to put a file in the root of your 
domain called favicon.ico. The second is to use a <link> tag with 
the rel="shortcut icon" value and the href value set to the URL for the 
Icon you wish to display.

Q: How often does IE download the favicon?
A:
 IE will download the icon when a user first visits the site. The icon 
is stored in the Temporary Internet Files folder on the client machine. 
Additional metadata about the favicon is stored in the user's Url 
History database. If either store is cleared, or items relating to the 
favicon have naturally expired, then the icon will be downloaded again 
on the next visit. If more than one page (or site) shares the same 
favicon, it is only downloaded once. IE takes great pains to download 
the icon as few times as possible to reduce load on the server.

Q: I see the wrong favicon for some sites I visit. How do I fix this?
A:
 If the history database has become corrupted in some way, this can 
happen. The simplest solution is just to use Delete Browsing History (on
 the Tools menu) to clear the cache and the history store. 

Q: I put a favicon.ico on my site as you described, but it still doesn't appear.
A:
 It must actually be a .ico (an Icon) file. Bitmaps, pngs, gifs, etc, 
will not work. IE7 will download your favicon to the Temporary Internet 
Files folder and call ExtractIcon() on the file. If this fails, we will 
show the default icon instead of your favicon.

Q: I verified that my favicon really is an icon, but it still doesn't appear.
A:
 Since IE loads your icon out of the Temporary Internet Files folder, it
 must be able to actually store it there. If you are setting the 
no-cache directive for the icon file, then IE will not be able to 
display your icon and will display the default icon instead. You can use
 Fiddler to verify.

Q: How do I create a different favicon for every page on my site?
A: Put a different tag on each page, pointing to a different icon.

Q: I changed my site's favicon to a different icon, but the old one still shows
 in IE. How do I force IE to update?
A:
 If you just put the favicon.ico file in the root of your domain, IE 
doesn't have any way of knowing if it changed. To force an update, you 
need to use a tag and point to a different filename than you previously 
used. The current filename is compared against the known filename stored
 in the Url History database. When IE sees the filename has changed, it 
will download your new icon. Alternatively, you can ask your users to 
clear their history and cache (Tools->Internet Options->Delete 
Browsing History), which will also force IE to download the new file.

Q: What is still broken?
A:
 Two things: (1) If you specify an alternate location via <link> 
tag, the href member must be fully-qualified and does not respect the 
<base> tag. (2) The <link> tag must have "shortcut icon" as 
the rel value, but this is in violation of the W3C spec that says 
whitespace in the rel tag denotes a list of values. IE treats "shortcut 
icon" as a single value. Luckily this still works for other browsers who
 see "shortcut" and ignore it and only pay attention to the "icon" 
string.

That should cover most of the questions I've received about favicons in IE7. 
If you have more questions, feel free to ask.



Thursday 17 January 2013

JavaScript - Browser detect

JavaScript - Browser detect
Code goes here :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JavaScript - Browser detect</title>
<script>
var BrowserDetect = {
init: function () {
this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
this.version = this.searchVersion(navigator.userAgent)
|| this.searchVersion(navigator.appVersion)
|| "an unknown version";
this.OS = this.searchString(this.dataOS) || "an unknown OS";
},
searchString: function (data) {
for (var i=0;i<data.length;i++) {
var dataString = data[i].string;
var dataProp = data[i].prop;
this.versionSearchString = data[i].versionSearch || data[i].identity;
if (dataString) {
if (dataString.indexOf(data[i].subString) != -1)
return data[i].identity;
}
else if (dataProp)
return data[i].identity;
}
},
searchVersion: function (dataString) {
var index = dataString.indexOf(this.versionSearchString);
if (index == -1) return;
return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
},
dataBrowser: [
{
string: navigator.userAgent,
subString: "Chrome",
identity: "Chrome"
},
{ string: navigator.userAgent,
subString: "OmniWeb",
versionSearch: "OmniWeb/",
identity: "OmniWeb"
},
{
string: navigator.vendor,
subString: "Apple",
identity: "Safari",
versionSearch: "Version"
},
{
prop: window.opera,
identity: "Opera",
versionSearch: "Version"
},
{
string: navigator.vendor,
subString: "iCab",
identity: "iCab"
},
{
string: navigator.vendor,
subString: "KDE",
identity: "Konqueror"
},
{
string: navigator.userAgent,
subString: "Firefox",
identity: "Firefox"
},
{
string: navigator.vendor,
subString: "Camino",
identity: "Camino"
},
{ // for newer Netscapes (6+)
string: navigator.userAgent,
subString: "Netscape",
identity: "Netscape"
},
{
string: navigator.userAgent,
subString: "MSIE",
identity: "Explorer",
versionSearch: "MSIE"
},
{
string: navigator.userAgent,
subString: "Gecko",
identity: "Mozilla",
versionSearch: "rv"
},
{ // for older Netscapes (4-)
string: navigator.userAgent,
subString: "Mozilla",
identity: "Netscape",
versionSearch: "Mozilla"
}
],
dataOS : [
{
string: navigator.platform,
subString: "Win",
identity: "Windows"
},
{
string: navigator.platform,
subString: "Mac",
identity: "Mac"
},
{
  string: navigator.userAgent,
  subString: "iPhone",
  identity: "iPhone/iPod"
   },
{
string: navigator.platform,
subString: "Linux",
identity: "Linux"
}
]

};
BrowserDetect.init();
</script>
</head>

<body>
<script>
document.write('You\'re using ' + BrowserDetect.browser + ' ' + BrowserDetect.version + ' on ' + BrowserDetect.OS + '!');
</script>
</body>
</html>

Saturday 12 January 2013

Windows XP Shortcuts

Keyboard shortcuts to work on the Windows XP Desktop
win+d Minimizes all open Windows and return to a clean desktop. Pressing it again restores the previous state.
------------------------------------------------------------------------------------------------
arrow keys The arrow keys navigate between objects on the desktop.
------------------------------------------------------------------------------------------------
home and end Activates the first object (top left corner) or the last object (bottom right corner) on the desktop.
------------------------------------------------------------------------------------------------
enter Launches the active object.
------------------------------------------------------------------------------------------------
+f10 Activates context menu of active object. Basically replaces the right mouse button. Once in the context menu, the arrow keys will navigate you to the desired menu item (or press any letter which shows as underlined); pressing enter activates whatever you want to in the context menu.
------------------------------------------------------------------------------------------------
F2 Changes the filename of a desktop icon. Press the arrow keys to go left or right if parts of the old filename should be kept.
------------------------------------------------------------------------------------------------
Hold key, navigate with arrow keys and hit space On the desktop, pressing and holding the key enables to highlight multiple items. Once pressed, move around with the arrow keys and press space for every item which should be highlighted. Hitting space a second time de-selects the item. Once everything is marked as desired, release the -key.
------------------------------------------------------------------------------------------------
+c, +x, +v, +c for copy, +x for cut and +v for paste should be an essential for everyone. If you so happen forget one or the other shortcut on this site, please stick with this most essential keyboard shortcut.
------------------------------------------------------------------------------------------------
alt+tab, alt++tab alt+tab Holding the alt key and continuously press tab to move forward between open applications or folders. Then release the key when the desired object is active to launch it. The same works backwards by adding to the shortcut combination: Hold alt and and then keep pressing tab moves backwards between open applications. The direction can be changed in at any time by pressing and releasing
------------------------------------------------------------------------------------------------
win+tab, win++tab then press enter Pressing +tab will navigate between object of the desktop: the desktop itself, the quick-launch bar (if activate) and the notification bar. This will not work when an Application Window is open, simply press win+d before pressing +tab. Again, the order can be reversed by adding to the combination: ++tab moves backwards. This is a good opportunity to access the notification bar without the mouse for example: Press win+d to get to the desktop, then ++tab to go directly to the Notification Bar, arrow left to go to the clock and press enter to open the Windows calendar without touching the mouse.
------------------------------------------------------------------------------------------------
a, b, c, ... Still on the desktop, pressing the initial letter of the name of any objects will highlight the respective application or folder. It is important to make sure that the focus is actually ON the desktop and not on the start button or taskbar. Simply press win+d twice if nothing is happening when pressing the initial letter and try it again.
------------------------------------------------------------------------------------------------
win+pause Access System Properties which holds system properties, computer name, device manager and so on.
------------------------------------------------------------------------------------------------
win+tab win++tab then press enter alt+tab is not the only way to navigate between open applications and windows. The win+tab keyboard shortcut is actually a more powerful way to switch between application than the good old" alt+tab. The difference is that win+tab is not opening a dedicated window for choosing the desired object: moving forward and backwards between applications is happening directly on the taskbar. To launch an application you press enter to activate the respective element. Combine it with and you reverse the order."
------------------------------------------------------------------------------------------------

To disable the access to USB port, in windows OS

To disable the access to USB port, in windows XP and 2000, follow the steps below
1. Click Start, and then click Run.
2. In the Open box, type regedit, and then click OK.
3. Locate, and then click the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor
4. In the right pane, double-click Start.
5. In the Value data box, type 4, click Hexadecimal (if it is not already selected), and then click OK.
6. Quit Registry Editor.

no control key to copy/paste

your code goes here :
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>no control key to copy/paste</title>
<script language="javascript">
function whichButton(event)
{
if (event.button==2)//RIGHT CLICK
  {
  window.event.returnValue = false;
  }

}
function noCTRL(e)
{
var code = (document.all) ? event.keyCode:e.which;

var msg = "Sorry, this functionality is disabled.";
if (parseInt(code)==17) //CTRL
{
alert(msg);
window.event.returnValue = false;
}
</script>
</head>
<body>
<form method="">
<strong>Not Allow Paste </strong><BR>
<input type="text" value="" onMouseDown="whichButton(event)"  onKeyDown="return noCTRL(event)"/>
</form>
</body>
</html>
no control key to copy/paste
Not Allow Paste

Friday 4 January 2013

Samsung Wave Bada OS Secret hack Codes

Hi friends, yesterday my friends purchased Samsung Wave Mobile Phone. Its a cool cellphone but BADA OS has little bit limitations like less number of applications and features. Its basically a phone for Gaming freaks :P like me, so i have taken my friends for a day and start exploring it and found some cool Secret Hidden hack codes which unlocks the several hidden factory services. I was just testing that my android hack codes are working on Samsung Wave or not. After a lot of searching on web and reverse engineering BADA OS, i got few secret hack codes. You all will going to enjoy these..
secret hack codes, Samsung wave codes,Bada OS hacks
Samsung Wave Secret Hack Codes by HackingLoops
So friends here are SAMSUNG WAVE hack codes:

1. Factory Format
*2767*3855#
Think at least 10 times before using this code as it will format your phone. It'll remove all files and settings including the internal memory storage. It'll also reinstall the phone firmware.
Note: Once you give this code, there is no way to cancel the operation unless you remove the battery from the phone. 
2. Codes for Getting Detailed Information about the Phone
  *#0228#
This code will reveal the detailed information about your Samsung Wave Mobile Phone. 
3. Service Mode
*#197328640# 
This code can be used to enter inside the Mobile Phone Service mode where You can run various tests and change settings of Mobile Phone.
4. Sim Lock or Network Lock Status
*#7465625#
 This secret code is used to check the status of SIM Lock and Network lock of your Wave Mobile.

5. Firmware Version Codes
*#4986*2650468#
This code will help you to explore the below mentioned things:
SW Version, HW Version, MP, RF Cal Date, CSC Version, CSC Model Spec, FFS Version, RC2 Version

6. Some more Firmware Codes
*#1234# - SW Version and CSC Version

*#1111# - FTA SW Version

*#2222# - FTA HW Version
 
7. Wi-Fi and Bluetooth Test Codes
These will help you to run WIFI and Bluetooth tests on your mobile.
*#526# - Wi-Fi Manual MFG Test Mode

*#232337# - BT RF Test Mode

8. Codes to launch various Factory Tests
*#0*# - LCD test

*#0673# OR *#0289# - Melody test

*#0842# - Vibration test

*#2663# OR *#2664# - TM Command

I hope you all have enjoyed the secret hack codes. If you have more then feel free to share with us.. 
Note: Most of these codes i have collected by searching over internet. If you have find anything new please share with us to help your friends.
Because sharing is caring.

How to make a Phisher or Fake Pages

Phishers are fake pages which are intentionally made by hackers to steal the critical information like identity details, usernames, passwords, IP address and other such stuff. As i mentioned intentional, which clearly means its illegal and its a cyber crime. Phishing is basically a social engineering technique to hack username and passwords by deceiving the legitimate users. Phishers are sent normally using spam or forged mails.

Note: This article is for educational purposes only, any misuse is not covered by Hacking loops or CME.

What is Phishing?
Phishing is basically derived from the word called Fishing which is done by making a trap to catch the fishes. Similarly in case of hacking, hackers make Phish pages (traps) to deceive the normal or unaware user to hack his account details. Phishing technique is advancing day by day, its really tough to believe that on what extent this technique is reached but this is always remains far away from normal internet users and most of hackers.
Most of hackers and computer geeks still believe that Phishing attempt can be easily detected by seeing the URL in address bar. Below are some myths that hacking industry still have about Phishing. I will mention only few because then article will become sensitive and major security agencies will flag my website for posting sensitive data. So i will only explain the facts, if you need the same you need to fill the form and give us assurance that you will not misuse it.

Myth's about Phishing among Computer Geeks and Hackers
1. Almost each and every Hacker or computer Geek, thinks that Phishing attempt can be detected by just having a look on the URL. Let me tell you friends it was old days when you recognize Phishers by seeing URL's. But nowadays recent development in Cross site scripting(XSS) and Cross site Script forgery has made it possible that we can embed our scripts in the URL of famous websites, and you must know scripting has no limitations. Below are some examples that you can do from scripting:
a. Embed a Ajax Keylogger into the main URL and user clicks on the URL, keylogger script will get executed and all the keystrokes of the user will get record.
b. Spoof the fake URL: If you are little bit good in scripting and web browser exploits recognition then this can be easily done. What you need to do you need to write a script which will tell web browser to open fake page URL whenever user opens some website like Facebook. Just you need to manipulate the host file and manipulate the IP address of that website from Host file(found in windows folder).
c. Simply retrieving the information saved in the web browser like saved passwords, and bookmarks etc. Just need to write a script which will explore the locations in Windows user profile (where actually the stored information of web browsers saved). 
2. One biggest myth, when you enter the data into the fake page, it will show either some warning message or show login information is incorrect. Rofl, new phishers are bit smart, now they don't show warning messages, when you login through fake page. They will actually login you into your account, and simultaneously at the back end they will steal your information using batch scripts.

So  friends i think this is enough back ground about new phishing technologies. Let's learn how to make a basic Phisher of any website in less than one or two minutes.

Steps to make your own Phisher:
1. Open the website Login or Sign in page whose phisher you want to make. Suppose you pick Gmail.
2. Right click to view the source and simultaneously open notepad.
3. Copy all the contents of the source into the notepad file.
4. Now you need to search for word action in the copied source code. You will find something like below:
how to make phishers or fake pages
Manipulate action and method

Now in this line you need to edit two things, first method and then action. Method Post is used for security purposes which encrypts the plain text, so we need to change it to GET.
Action field contains the link to next page, where it should go when you click on login or press enter. You need to change it to something.php (say lokesh.php).
5. Now save the above page.
6. Now open the Notepad again and paste the below code in that:
sample batch scripts for hacking account or password
Batch script for Phisher
7. Location contains the next page URL, where you wish to send to user and passwords.html will contains the passwords.
8. Now save this file as lokesh.php as told in step number 4.
9. Now create an empty file and name it as passwords.html, where the password get stored.
10. Upload all the three file to any web server and test it.
Note: In case of facebook, it will show error after user login, for that you need to use tabnabbing trick.
Note: Always keep the extension correct, otherwise it will not work. So always use save as trick rather than save otherwise it will save files as lokesh.php.txt. 
That's all from my side today, I hope you all enjoyed this article..
If you have any issues ask me in form of comments..

single div with multiple classes

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>single div with multiple classes</title>
<style>
.box { width: 50px; height:30px; float: left; margin: 0 10px 10px 0; }
.red { color: red; background: pink; }
.blue { color: blue; background: blue; }
.green { color: green; background: green; }
.border { border: 5px solid black; }
</style>
</head>

<body>
<div class="red border box"></div>
<div class="blue border box"></div>
<div class="green border box"></div>
<div class="red box"></div>
<div class="blue box"></div>
<div class="green box"></div>
<div class="border box"></div>
</body>
</html>

single div with multiple classes

32 hacks and secrets of nokia cell phones


32 hacks and secrets of nokia cell phones

These Nokia codes will work on most Nokia Mobile Phones:

(1) *3370# Activate Enhanced Full Rate Codec (EFR) - Your phone uses the best
sound quality but talk time is reduced usually approx. 5%

(2) #3370# Deactivate Enhanced Full Rate Codec (EFR) OR *3370# ( F avourite )

(3) *#4720# Activate Half Rate Codec - Your phone uses a lower quality sound but you
should gain approx 30% more Talk Time.

(4) *#4720# Deactivate Half Rate Codec.

(5) *#0000# Displays your phones software version, 1st Line : Software Version, 2nd
Line : Software Release Date, 3rd Line : Compression Type. ( Favourite )

(6) *#9999# Phones software version if *#0000# does not work.

(7) *#06# For checking the International Mobile Equipment Identity (IMEI Number).
( Favourite )

(8) #pw+1234567890+1# Provider Lock Status. (use the "*" button to obtain the "p,w"
and "+" symbols).

(9) #pw+1234567890+2# Network Lock Status. (use the "*" button to obtain the "p,w"
and "+" symbols).

(10) #pw+1234567890+3# Country Lock Status. (use the "*" button to obtain the "p,w"
and "+" symbols).

(11) #pw+1234567890+4# SIM Card Lock Status. (use the "*" button to obtain the "p,w"
and "+" symbols).

(12) *#147# (vodafone) this lets you know who called you last.

(13) *#1471# Last call (Only vodofone).

(14) *#21# Allows you to check the number that "All Calls" are diverted to

(15) *#2640# Displays security code in use.

(16) *#30# Lets you see the private number.

(17) *#43# Allows you to check the "Call Waiting" status of your phone.

(18) *#61# Allows you to check the number that "On No Reply" calls are diverted to.

(19) *#62# Allows you to check the number that "Divert If Unreachable
(no service)" calls are diverted to.

20) *#67# Allows you to check the number that "On Busy Calls" are diverted to.

(21) *#67705646# Removes operator logo on 3310 & 3330.

(22) *#73# Reset phone timers and game scores.

(23) *#746025625# Displays the SIM Clock status, if your phone supports this power
saving feature "SIM Clock Stop Allowed", it means you will get the best standby
time possible.

(24) *#7760# Manufactures code.

(25) *#7780# Restore factory settings.

(26) *#8110# Software version for the nokia 8110.

(27) *#92702689# Displays - 1.Serial Number, 2.Date Made, 3.Purchase Date, 4.Date of
last repair (0000 for no repairs), 5.Transfer User Data. To exit this mode you
need to switch your phone off then on again. ( Favourite )

(28) *#94870345123456789# Deactivate the PWM-Mem.

(29) **21*number# Turn on "All Calls" diverting to the phone number entered.

(30) **61*number# Turn on "No Reply" diverting to the phone number entered.

(31) **67*number# Turn on "On Busy" diverting to the phone number entered.

(32) 12345 This is the default security code.

Read more: http://hackrightnow.blogspot.com/#ixzz2GzHEhhBA

Wednesday 2 January 2013

loading image before iframe loads



Your code goes here :

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
       function hideLoading() {
            document.getElementById('divLoading').style.display = "none";
            document.getElementById('divFrameHolder').style.display = "block";
        }
    </script>
</head>
<body>
   
    <div id="divLoading">
        <img alt="" src="http://www.wakehealth.edu/images/modal-loader.gif" />
    </div>
<div id="divFrameHolder" style="display: none;">
        <iframe frameborder="0" height="300" onload="hideLoading()" src="http://1289solutions.blogspot.in/" width="400">      
        </iframe>
    </div>
</body>
</html>

banner slideshow by 1289WebBanner