Giter Site home page Giter Site logo

perl-sql-injector's Introduction

perl-sql-injector

Perl script SQL Injector

It exploits SQLi vulnerability via UNION-BASED INT attack.

Usage

perl sqli.pl <tagerhost> 80

Target host must not include http://|https://|www

Usage for SQLi_errorbase.pl

sqli_errorbase.pl -u <target_url> -getdb \tFetch databases
sqli_errorbase.pl -u <target_url> -gettables -dbname <db_name> \t\t #Fetch tables of DB
sqli_errorbase.pl -u <target_url> -getcolumns -dbname <db_name> -tablename <table_name> \t\t #Fetch columns of Table
sqli_errorbase.pl -u <target_url> -dumpcolum -tablename <table_name> -columns col1,col2 -limit 10 \t\t #Dump column values

-limit\tLimit's the result to 'int' e.g -limit 10 limit's the result to 10 records. Default 10
-help\tShows this crappy usage.

Note: in dumping column values. There's a text length limit so it is better to dump 1 column at a time or 2.

How this script works

It works by sending a request with sql malicious script and fetching the page using LWP::UserAgent module.
And then parsing it with perl powerful regex and output the parsed result into the terminal.

The Future and the past

This perl script is easy to read and if you are perl coder and a pentester? You can freely modify this code.
Perl SQL Injector lacks the ability to exploit ERROR-BASED SQLi, UNION-BASED string SQLi, Blind-SQLi and Time-Based SQLi.
This perl script was based on the Book: 'Penetration Testing with Perl' By Douglas Berdeaux https://www.packtpub.com/product/penetration-testing-with-perl/9781783283453

perl-sql-injector's People

Contributors

jcynthtingson avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.