cyber-security-resources/programming_and_scripting_for_cybersecurity/perl.md
2021-08-17 18:54:56 -04:00

27 KiB
Raw Blame History

Perl Resources

The following are a few resources for individuals trying to learn Perl.

Tutorials:

Libraries for developing CLI applications

  • App::Cmd - Write command line apps with less suffering.
  • Getopt::Long - Extended processing of command line options.

Cloud

Cryptography

Commercial WebServices

Container

Libraries for Singleton Pattern implementation.

Data Format

Libraries for serializing, formatting and parsing

Database

Libraries for dealing with relational databases

Database Drivers

Libraries for using specific database products

Relational Databases

NoSQL Databases

Date & Time

Libraries for working with dates and times

Devices

Libraries to talk to physical devices

DevOps Tools

Libraries that help when you want to deploy software across networks on several hosts/are working across computer networks

  • Rex - Remote Execution

Email

Libraries that implement email creation and sending

Event Loops

Libraries for various event loops. Asynchronous programming if you like

  • AE - Simpler, faster, newer AnyEvent API
  • AnyEvent - the DBI of event loop programming
  • EV - Uses libev, very fast and popular. Default for AnyEvent if present
  • Event - Works well, but older
  • IO::Async - Asynchronous event-driven programming
  • POE - Common interface for several event loops
  • Promise::XS - Promises in Perl

Exception Handling

Libraries that assist with and/or provide alternatives to eval{ die() }

  • autodie - Replace functions with ones that succeed or die with lexical scope
  • Exception::Class - A module that allows you to declare real exception classes in Perl
  • Syntax::Keyword::Try - a try/catch/finally syntax for perl
  • Throwable - a role for classes that can be thrown
  • Try::Tiny - minimal try/catch with proper preservation of $@
  • TryCatch - first class try catch semantics for Perl, without source filters

DOM Manipulation

  • HTML5::DOM - Super fast html5 DOM library with css selectors (based on Modest/MyHTML).

File Manipulation

  • File::Util - Easy, versatile, portable file handling.
  • Path::Tiny - Simple object-oriented file manipulation.

Form Frameworks

Libraries that take the boredom & repetition out of (web and UI) forms

Images

Libraries for manipulating images

List Manipulation

Libraries for manipulation lists (arrays)

Logging

Libraries for generating and working with log files

Module Development

Libraries that simplify and improve Perl module development

Network

Libraries that help when you are dealing with computer networks

Libraries that help when you are working across computer networks

ORM

Libraries that implement Object-Relational Mapping or datamapping techniques

Package Management

Libraries for package and dependency management

Processes and Threads

Libraries for managing processes and threads

Profiling

Libraries for examining run-time activity of your program

Protocol

Protocol clients and libraries

Queueing

Message Queue, Job Queue System..

Science/Numerics

Hand-picked modules for research, science, numerics and hyper-computing

Stream Manipulation

Libraries for manipulating event streams

REST Frameworks

Libraries for developing REST applications

Template Engines

Libraries and tools for templating

Testing

Libraries for testing codebases and generating test data.

Testing Frameworks

Test Double

Coverage

Tools

Some useful tools

  • App::Ack - ack is a tool like grep, optimized for programmers.
  • App::Nopaste - Post to various pastebins from the CLI
  • Daiku - Make for Perl.
  • Data::Printer - Colored pretty-print of Perl data structures and objects.
  • Reply - Read-eval-print-loop(REPL) command-line tool.
  • Riji - Static site generator using markdown and git mainly for blogging.
  • Smart::Comments - Comments that do more than just sit there.

Libraries for developping command line applications

Libraries for handling configuration files

  • Config::Tiny - Read/Write .ini style files with as little code as possible

Type checking

Video

Web Frameworks

Libraries for developing Web applications

Middlewares

Libraries for creating HTTP middlewares

  • Gazelle - Preforked Plack Handler for performance freaks
  • Plack - PSGI server implementation and utilities for Web applications.
  • Server::Starter - Process manager with the "graceful restart" feature.
  • Starlet - High-performance PSGI Server
  • Starman - High-performance preforking PSGI/Plack web server
  • Twiggy - Event-driven PSGI application server

Web Frameworks-Like

Somewhere between templates and full on frameworks

  • Embperl - Building dynamic Websites with Perl (sort of like Perl crossed with PHP)
  • Mason - Powerful, high-performance templating for the web and beyond

Web Scraping

Libraries for extracting some information from websites

Network Security

Some great libraries for starting the world of Network security with Perl

Metadata Forensics

General Metadata files parser, usefull during forensics investigations

Reverse Engineering

Libraries used for disassembly assembly operations, ELF files and bytecode

  • Disassembly - Decompiles binary bytecode to readable and recompilable bytecode assembler
  • Python::Bytecode - Parse Python bytecode
  • B::Bytecode - Compiles a Perl script into a bytecode format that could be loaded later
  • Perf::ARM - Use ARM instructions in Perl
  • Asm::Z80::Table - assemble / disassemble all Z80 CPU assembly instructions with Perl
  • X86::Disasm - Disassemble Intel x86 instructions with Perl
  • Disassemble::X86 - Another library for disassembe X86 instructions
  • X86::Udis86 - Interface for the C Udis disassembler
  • Asm::X86 - List of instructions and registers of x86-compatible processors, validating and converting instructions and memory references
  • ELF::Writer - write and read executable ELF files