24 Mar, 2010

Perl here document

Articles related to perl here document

Perl script to remove a directory and contents recursively

http://digitalpbk.com/perl/perl-script-remove-directory-and-contents-recursively Perl script to remove a directory and contents recursively This is the script for sandeep when he asked me how to delete a directory in perl. rmdir function only removes empty directories. So we need to remove the contents of the directory before removing the directory. So if the directory contains more directories / folders we would have to recursively delete all the directories under the directory. Well so here is the code just to do that. #!/usr/bin/perl deldir("test"); ...
Published 2 years, 2 months ago

Gumblar Virus Javascript removal using PERL

http://digitalpbk.com/virus/gumblar-web-virus-manual-removal-free-tool Gumblar Virus Javascript removal using PERL Gumblar virus infects all .html and .php files and injects a piece of javascript in the source code. The code is usually found just below the <body> tag. The Javascript code Gumblar injects varies widely and usually attaches a script or inline frame inside your page to execute itself on page load. Read on to get rid of this virus. Gumblar Source Code Samples when delimited by new lines Sample 1 var D; if(D!='' ...
Published 1 year, 10 months ago

Perl Script to check Google pagerank

http://digitalpbk.com/perl/perl-script-check-google-pagerank Perl Script to check Google pagerank In order to find out a Google Pagerank of a webpage, we can use the WWW::Google::PageRank module in Perl. Click WWW::Google::PageRank to download the Google Pagerank module. Here is a simple script that takes the Website URL as a command line argument and prints the Google PageRank. OR Alternatively you can install the module using cpan cpan -i WWW::Google::PageRank #!/usr/bin/perl $webpage = $ARGV[0]; use WWW::Google::PageRank; my $pagerank ...
Published 1 year, 9 months ago

FTPCHK3 : Virus that adds malicious scripts to your website.

http://digitalpbk.blogspot.com/2009/10/ftpchk3-virus-php-pl-hacked-website.html = join('',@filecon); $fc =~ s|document.write('');||sig; $fc =~ s|||sig; rename($file,$file.".infected"); open VI,">$file"; print VI $fc; close VI; print $file." Fixed !!"; } print "\n";}close(FP);How to execute?Copy paste the code to a file called anti.plFrom the terminal run perl anti.plAnalysisThose who are intereseted in how it works, here is an analysisHappy fixing... PS: Fix it asap ...
Published 2 years, 3 months ago

Adding HTML elements dynamically to a page

http://digitalpbk.com/javascript/adding-html-elements-dynamically-page Adding HTML elements dynamically to a page So when I was sitting idle, moosa asked me how to add dynamic textboxes into a form without loosing values of the form values on the previous textboxes. So I thought of documenting the method here just in case anyone of you might want this. So we have a form with a text box as shown below : Value 1 : The goal is to add a form as shown below, Clicking the Add More link will add more input boxes to the html form dynamically. var c = 2 ...
Published 2 years, 2 months ago

PERL Code to change Google talk status

http://digitalpbk.blogspot.com/2009/02/perl-change-google-talk-status.html PERL Code to change Google talk status Code : stat.plThe following code changes the status of gmail/gtalk user status.Requires NET::XMPP module, and with SSL modules installed.#!/usr/bin/perl #usage : perl stat.pl use strict;use Net::XMPP;## Pls fill in these here :)my $username = "";my $password = "";my $hostname = 'talk.google.com';my $port = 5222;my $componentname = 'gmail.com';my $connectiontype = 'tcpip';my $tls = 1;my $Con = new ...
Published 3 years ago

Making subdomains on localhost

http://digitalpbk.blogspot.com/2007/01/making-subdomains-on-localhost.html Making subdomains on localhost IntroDeveloping websites on localhost may sometimes need making of sub domains. Installing and running another server for this purpose is useless, consumes more resources etc. So here is the technique to make sub domains on localhost. You can also use this to host more than one site on localhost. i.e, you can host multiple sites situated on different folders. PS: This is for Apache-Windows configuration. (If you have info about other Server-OS configs please let ...
Published 5 years, 1 month ago

Wordpress nextGEN gallery XSS (Cross site scripting) Cookie Stealing Vulnerability

http://digitalpbk.blogspot.com/2009/07/wordpress-nextgen-gallery-xss.html Wordpress nextGEN gallery XSS (Cross site scripting) Cookie Stealing Vulnerability IntroNow I need not tell what actually an XSS is, for that refer to here. To see what I mean check out the links given below. If you are using NextGen wordpress plugin, you are probably infected.the VulnerabilityThe vulnerability on this wordpress plugin is seen in the pid, album, gallery GET variables. http://www.example.com/wordpress/next-gen-gallery/?album=1&pid=3&gallery=2The GET variables on most ...
Published 2 years, 6 months ago

HTTP 1.1 Response Status Codes

http://digitalpbk.blogspot.com/2007/04/http-11-response-status-codes.html HTTP 1.1 Response Status Codes IntroFor each request a client sends to the server, the web server returns a 3 digit HTTP status code indicating the server's response. Eg:HTTP/1.1 404 Not FoundHere is the list of codes that the server sends and a brief description of the code.The status response codes are grouped as : 100 - 199 : Informational Status CodesProvides information to the Client that the server is starting to fulfill the request.100 Continue : Server says "Ready to receive ...
Published 4 years, 10 months ago

XSS - Part 2 (Cookie stealing and Defacement)

http://digitalpbk.blogspot.com/2006/12/xss-part-2-cookie-stealing-and.html guestbooks, feedbacks). Now if there is an XSS hole in such a page, you can embed the script to deface. - OR -document.body.innerHTML="XSS Defacingyour HTML code here";Either you can deface or craft a login page, which results in phishing.Since it is dangerous to mention any examples, find out yourselves ...Further reading and new XSS holes on » ha.ckers.orgEureka? Let the world know ... post a comment. ...
Published 5 years, 1 month ago

Related help topics for perl here document More keywords like perl here document
More pages for perl here document


Email Newsletter
Email:
Popular Posts
Recent Posts
Tags
Random photo
Butterfly at Barefoot @ Havelock Butterfly at Barefoot @ Havelock in Havelock Island Andaman
On Facebook
Recent Comments


digitalpbk