Software engineering facts, information, and skills categorized as Perl

Cross-Site Request Forgery (CSRF) in simple words

Priya Philip 9 months, 1 week ago

Cross-Site Request Forgery (CSRF) is an attack that forces an end user to execute unwanted actions on a web application in which they're currently authenticated. CSRF attacks specifically target state-changing requests, not theft of data, since the attacker has no way to see the response to the forged request. With a little help of social engineering (such as sending a link via email or chat), an attacker may trick the users of a web application into executing actions of the attacker's choosing. If the victim is a normal user, a successful CSRF attack can force the user to perform state changing requests like transferring funds, changing their email address, and so forth. If the victim is an administrative account, CSRF can compromise the entire web application.

Basics of object orientation and inheritance in perl

Varghese Chacko 2 years, 6 months ago

Perl is an object oriented language. Perl has packages(class) that could be instanciated and used. At first, we need to decide the file namefor the package ans the perl class name carries the file name. For example, a package Student should be in the file Student.pm. If it shouldbe called Bright::Student, it should be saved asBright/Student.pm, ie Student.pm in a directory named Bright. There is no formal relationship between directory name and modules. That is just grouping for convenience.

Obtaining statistics for Net::FTP transfers

Varghese Chacko 2 years, 6 months ago

With Net:FTP for uplink and downlink file transfers, we may have problems with obtaining the same statistics that are provided by ftp when you perform a manual transfer, i.e file size, transfer duration and transfer speed in KBs. The easiest solution is to print the $ftp->message;  It contain some message. For example,

The New (computer) Testament

Varghese Chacko 2 years, 6 months ago

In 2007, I have translated apoetry about computers and posted on perl monks for fun. Just copy pasting it here, just for fun. 

Let us talk!

We take the vision which comes from dreams and apply the magic of science and mathematics, adding the heritage of our profession and our knowledge to create a design.