Posts Tagged ‘coding’

Iframe attack a research report

Posted on the June 27th, 2009 under Codinggg.., Share by Shailesh Patel

Reportedly, in July 2007 there is a new massive hacking attack on web sites.
This attack targeted primarily budget Webhosting providers but it was not limited
to them. For example several site from HBS were compromised too.

It looks like the attack usually has two stages.

  • Account passwords harvesting. On the first state they collect passwords
    for the accounts.  We will call this stage “account passwords harvesting”.
    Details on how they do that are fuzzy. The truth is that on a typical Linux
    server it might enough to get just one user account password to be in a
    reasonably good position to get the root via some king of little known or
    unpatched exploit. Zones and jails are better in this respect as they
    protect other users from easily compromised “suckers” who happily use
    passwords like 123456 or use infected with spyware PCs at home.
    Actually the complexity of the password should be beefed up to at least 8
    characters. But this does not help if the user computer is infected with a
    keylogger.  ISPs need to handle vastly difference classes of users and
    security is always as good as the weakest link.

Read more…

Google Maps Not Working in IE 6.0

Posted on the December 26th, 2008 under Codinggg.., Google, PHP by Shailesh Patel

I am working on a page where I have a google-powered map (just like the one you find on maps.google.com. It works just fine in FireFox (of course), safari, chrome and IE 7 but in IE 6, I am getting a nothing in map div. The page loads fine, but then just when you think you are in the clear, I get Nothing comes up in the FireFox console, and no little alert icon in IE. And, what’s more frustrating is that has no content. What’s up with that?!?

The reason why this works is it loads the google map information last (even after the body onload event). This works for all browsers.  And thats why I do some scripting as below,and problem is solve :)

Put this entire script inside of your <head> tags.

<script type=”text/javascript”>
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != ‘function’) {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
//Setup the map
addLoadEvent(function() {
load();
showAddress(“raleigh, nc”);
})
</script>