http://digitalpbk.blogspot.com/2007/06/perl-script-to-html-formatter_17.html
Perl Script to HTML formatter
IntroThis script converts a Perl Script to HTML so that it looks good with colour code formatting for keywords and variables. This isn't yet completed and may contain bugs but I guess its worth posting. Anyone is free to
modify and redistribute the code as long as the first line remains intact.Usageperl format.pl ScriptFile.plOutput will be saved as ScriptFile.pl.htmlScriptstyle="color:#0ff">$cnt =~ s/&/&/g;$cnt =~ s ...
Published 4 years, 7 months ago
http://digitalpbk.blogspot.com/2006/12/aboutconfig-on-firefox.html
about:config on firefox
This one is for those using Mozilla Firefox, if you are using take a new page or new tab and on the address bar type in about:config. You can do all the tweaking of Firefox from this page. about:configYou can edit the values by double clicking and changing the value on the dialog box or Right Click to Add/
Modify etc.Warning!You can mess up firefox if you do editing. So always backup the values before tweaking.Take File > Save Page.Some examples ...
Published 5 years, 1 month ago
http://digitalpbk.com/windows/linux-style-command-line-quick-edit-right-click-paste
Modify the shortcut that launched this window. (If you executed from a shortcut, usually Cygwin)
TADA, now you can use mouse to select text and right click to paste just like a Linux BASH command line shell.
Windows
Software ...
Published 1 year, 11 months ago
http://digitalpbk.blogspot.com/2007/01/increasing-karma-ratings-on-orkut.html
Increasing the karma ratings on Orkut
Trace BackFollowed from : Making more fans on OrkutContinued ... "http://www.orkut.com/setKarma?cat=0&val;=1&gid;=FR[friends id here]/[your id here]"Eg: "http://www.orkut.com/setKarma? cat=0&val;=1&gid;=FRUS00000000000/US00123456789"The above illustrates the page you have to make your friend to access to make he/she your fan.The same can be
modified to increase (can decrease also) your cool, sexy and trusty karma ratings ...
Published 5 years ago
http://digitalpbk.blogspot.com/2007/01/xss-on-grazeitcom.html
.com if you are using Microsoft Internet Explorer!So how did it work?Grazeit.com allows Fixed (No longer works) Fixed (No longer works)is all we have to post to get redirected.Level 2So the grazeit admins have
modified the filter to take care of the above 2 methods. But still the filter isn't good enough for : #105;pt:alert('XSS')> />FixedfixedGET Cross site ...
Published 5 years ago
http://digitalpbk.blogspot.com/2007/07/captcha-what.html
. The text is then set as a
cookie.Eg:header("Cache-Control: no-cache, must-revalidate"); //
HTTP/1.1header("Expires: Mon, 25 Nov 1987 12:00:00 GMT"); // Date in the past// Set the content-typeheader("Content-type: image/png");error_reporting(0);// Create the image$im = imagecreatetruecolor(200, 40);// Create some colors$colors = array(imagecolorallocate($im, 0, 0, 0),imagecolorallocate($im, 128, 0, 0),imagecolorallocate($im, 0, 128, 0),imagecolorallocate($im, 0, 0, 128 ...
Published 4 years, 6 months ago
http://digitalpbk.blogspot.com/2009/01/code-libjpeg-converting-jpeg-to-bmp.html
; int i = 0; if ( !infile ) { printf("Error opening jpeg file %s\n!", filename ); return -1; } /* here we set up the standard libjpeg error handler */ cinfo.err = jpeg_std_error( &jerr; ); /* setup decompression process and source, then read JPEG
header */ jpeg_create_decompress( &cinfo; ); /* this makes the library read from infile */ jpeg_stdio_src( &cinfo;, infile ); /* reading the image
header which contains image information */ jpeg_read_
header( &cinfo;, TRUE ...
Published 3 years ago
http://digitalpbk.blogspot.com/2008/06/perl-download-manager.html
; $enbit = $length - 1 if($enbit > $length); my $err =0; my $i = int($stbit / $pcksize); my $req = HTTP::Request->new('GET',$url); if($stbit >= $length) { print "$localfile Part Complete! $length $stbit\n"; $stats[$inx] = 1; return; } while($stbit { my $stbit2 = $stbit + $blockstart; my $enbit2 = $enbit + $blockstart; my $range = "bytes=$stbit2-$enbit2";
$req->header('Range' => $range); $i++; print "\n $inx ... $i ...
Published 3 years, 7 months ago
http://digitalpbk.blogspot.com/2009/06/hacking-sql-injection-tutorial.html
injection hole, all an user has to do is add a ' (single quote) to the username and/or password fields, sayuser=digitalpbkpass=password'Now the SQL query would be constructed as SELECT * FROM users WHERE user='digitalpbk' AND pass='password''This will throw up an invalid SQL and if the errors are not supressed you will get a screen as shown below:So if we
modify the user input field pass such thatuser=digitalpbkpass=password' OR '1'='1,the constructed SQL ...
Published 2 years, 7 months ago
http://digitalpbk.com/apachesolr/apache-solr-mysql-sample-data-config
-config.xml
Create a new file called data-config.xml in the same directory and configure the database connection and table schema to reflect your database structure.
Sample data-config.xml
The dataSource configuration attributes , query in entity tag and database fields must be
modified to match your database structure. The Query given in the example is a simple Join of the drupal node and node revisions tables.
Now restart or start Apache ...
Published 1 year, 11 months ago