SkillAgentSearch skills...

Pineproxy

A ruby self contained, low resource consuming HTTP transparent proxy designed for the WiFi Pineapple MKV.

Install / Use

/learn @evilsocket/Pineproxy
About this skill

Quality Score

0/100

Category

Design

Supported Platforms

Universal

README

PineProxy

Copyleft of Simone 'evilsocket' Margaritelli.
http://www.evilsocket.net/


PineProxy is a ruby self contained, low resource consuming HTTP transparent proxy designed for the WiFi Pineapple MKV board.
It's based on the dnsspoof infusion by Whistle Master.

MODULES

You can easily implement a module to inject data into pages or just inspect the requests/responses creating a ruby file inside the modules folder, the following is a sample module that injects some contents into the title tag of each html page.

class HackTitle < PineProxy::Module
    def initialize
        # do your initialization stuff here
    end

    # self explainatory
    def is_enabled?
        return true
    end

    def on_request request, response
        # is an html page?
        if response.content_type == "text/html"
            PineProxy::Logger.warn "Hacking #{http://#{request.host}#{request.url}} title tag"

            # make sure to use sub! or gsub! to update the instance
            response.body.sub!( "<title>", "<title> !!! HACKED !!! " )
        end
    end
end

REQUIREMENTS

In order to install ruby and make it work on your WiFi Pineapple, execute the following commands:

opkg update
opkg install ruby --dest usb
opkg install ruby-gems --dest usb
opkg install ruby-core --dest usb
opkg install ruby-enc --dest usb

# fix the ruby gem import error
ln -s /sd/usr/lib/ruby /usr/lib/ruby

MOTIVATIONS

Since the great mitmproxy does not run on the pineapple due to missing python dependencies, I thought about making a simple version of it without weird dependecies.

NOTES

This software is still under heavy development, use at your own risk.

Related Skills

View on GitHub
GitHub Stars17
CategoryDesign
Updated1y ago
Forks9

Languages

Ruby

Security Score

75/100

Audited on Aug 12, 2024

No findings