Monday 6 February 2012

php number to words


This script will convert number to words. E.g. 15 will be converted to a string fifteen. 
<?php/**
*  Function:   convert_number
*
*  Description:
*  Converts a given integer (in range [0..1T-1], inclusive) into
*  alphabetical format ("one", "two", etc.)
*
*  @int
*
*  @return string
*
*/ 
function convert_number($number)
{
    if ((
$number 0) || ($number 999999999))
    {
    throw new 
Exception("Number is out of range");
    }

    
$Gn floor($number 1000000);  /* Millions (giga) */
    
$number -= $Gn 1000000;
    
$kn floor($number 1000);     /* Thousands (kilo) */
    
$number -= $kn 1000;
    
$Hn floor($number 100);      /* Hundreds (hecto) */
    
$number -= $Hn 100;
    
$Dn floor($number 10);       /* Tens (deca) */
    
$n $number 10;               /* Ones */

    
$res "";

    if (
$Gn)
    {
        
$res .= convert_number($Gn) . " Million";
    }

    if (
$kn)
    {
        
$res .= (empty($res) ? "" " ") .
            
convert_number($kn) . " Thousand";
    }

    if (
$Hn)
    {
        
$res .= (empty($res) ? "" " ") .
            
convert_number($Hn) . " Hundred";
    }

    
$ones = array("""One""Two""Three""Four""Five""Six",
        
"Seven""Eight""Nine""Ten""Eleven""Twelve""Thirteen",
        
"Fourteen""Fifteen""Sixteen""Seventeen""Eightteen",
        
"Nineteen");
    
$tens = array("""""Twenty""Thirty""Fourty""Fifty""Sixty",
        
"Seventy""Eigthy""Ninety");

    if (
$Dn || $n)
    {
        if (!empty(
$res))
        {
            
$res .= " and ";
        }

        if (
$Dn 2)
        {
            
$res .= $ones[$Dn 10 $n];
        }
        else
        {
            
$res .= $tens[$Dn];

            if (
$n)
            {
                
$res .= "-" $ones[$n];
            }
        }
    }

    if (empty(
$res))
    {
        
$res "zero";
    }

    return 
$res;

Monday 16 January 2012

What is microblog?


Microblogging is a broadcast medium in the form of blogging. A microblog differs from a traditional blog in that its content is typically smaller in both actual and aggregate file size. Microblogs "allow users to exchange small elements of content such as short sentences, individual images, or video links".
As with traditional blogging, microbloggers post about topics ranging from the simple, such as "what I'm doing right now," to the thematic, such as "sports cars." Commercial microblogs also exist, to promote websites, services and/or products, and to promote collaboration within an organization.
Some microblogging services offer features such as privacy settings, which allow users to control who can read their microblogs, or alternative ways of publishing entries besides the web-based interface. These may include text messaging, instant messaging, E-mail, or digital audio.

Sunday 23 October 2011

XSS in Youtube


XSS Vulnerability in Interactive YouTube API Demo Beta
http://pics9.com/images/67262148846124264830.png
There is a Critical Cross site XSS Vulnerability in Interactive YouTube API Demo Beta, Discovered by various sources. One of the White Hat Hacker "Vansh Sharma" Inform us about this XSS Vulnerability with proof of concept.
Proof Of Concept :
  • Open http://gdata.youtube.com/
  • Enter script <img src="<img src=search"/onerror=alert("xss")//"> in the keyword area.
  • Press ADD

Some new google apps Google Apps

This is part of a regular series of Google Apps updates that we post every couple of weeks. Look for the label “Google Apps highlights" and subscribe to the series. - Ed.

In the spirit of helping people work better together, over the last few weeks we made big improvements to Google presentations, introduced a version of Google Docs optimized for Android tablets, and enabled more dynamic content in Google Sites. We also celebrated the fact that Silicon Valley has gone Google!

Google presentations reloaded
On Tuesday we launched a completely rebuilt version of our web-based presentations application, so you can build more beautiful presentations together with colleagues and classmates. Google presentations now lets you make great-looking slides with animated builds, advanced slide transitions and better support for drawings, tables and themes. Plus, we made it easier to create presentations with others, without the hassles of attachments. Your whole team can work together in the same version of a presentation at the same time, and you can see who’s doing what, chat with others, and see a full revision history at any moment in time.



Google Docs on Android tablets
We’ve made it faster and easier to work with Google Docs on Android tablets with a new version of the Android application that takes full advantage of larger screen real estate. The three-panel view lets you browse filters and collections, see your document list and view file thumbnails and details simultaneously. You can get the Google Docs Android app for free from the Android Market.


Charts in Google Sites
Charts are often created in spreadsheets, but sometimes you want charts to appear in other places, like your team or project sites. In Google Sites, now you can select “Chart” from the “Insert” menu, and navigate to the Google Spreadsheet where your chart or data is located. You can also choose to have your site’s chart update in real-time when someone updates the underlying spreadsheet.



New look for Google Docs and Sites
We started rolling out a new look in Google Docs a couple months ago, and now this new design is available throughout all our collaboration tools. In addition to a cleaner, simpler design, we’ve made it more clear when your files are being auto-saved and added new icons to help you see at-a-glance who your docs are shared with. You can also customize the overall “density” of screen information, a great feature if you want to fit more onto a smaller display.



Who’s gone Google?
Successful small businesses tend to stay laser-focused on improving their core businesses, without getting distracted by peripheral activities that don’t make them more competitive. For example, most small businesses don’t want to spend time or money developing in-house expertise to run email and other IT systems. Case in point: 97 percent of Business Insider’s “Silicon Valley Startups to Watch” use Google Apps.

More than 5,000 businesses and thousands of other organizations start using Google Apps every single day, and more of our customers have shared their stories recently so you can hear why. A warm welcome goes out to Philz Coffee, Mid-Atlantic Door Group, Bradford & Barthel, LLP and the City of Mesquite, Nevada.

I hope these product updates and customer stories help you and your organization get even more from Google Apps. For more details and the latest news, check out the Google Apps Blog.

Friday 21 October 2011

What is OSSAMS?


As information security professionals, we conduct security assessments for companies. One of the biggest problems we have is after all the data is collected, how can we correlate the data accurately. So we decided to start a project to solve this problem, and we are calling it Open Source Security Assessment Management System (OSSAMS). OSSAMS is a framework for putting configuration files, security scan data files (like Nessus), and other data collected, during a security assessment or penetration test, into a RDBMS.


The framework is going to be designed in a fashion similar to Metasploit, SNORT, or other systems that allow the security community to create plugins for new tasks as needed. The primary goal of OSSAMS is to normalize the data, there by allowing the security professional to better assess the current state of security for an organization.
Completed:
acunetix, burp, grendel, nessus, netsparker, nexpose community, nikto, nmap, ratproxy, retina community, skipfish, sslscan, w3af, wapiti, watcher, websecurify, zap.
Roadmap:
Appscan, arachni, core impact, fierce, httprint, iss, languard, metasploit, ncircle, nexpose, n-stalker, ntospider, openvas, proxystrike, retina, saint, sandcat, webcruiser, webinspect, wsfuzzer…
Requires:
Python > 2.5;
Python-mysqldb; and
Lxml.
Download OSSAMS Alpha