Skip to content

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

License

Notifications You must be signed in to change notification settings

b4dboy/pineproxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PineProxy

Copyleft of Simone 'evilsocket' Margaritelli.
https://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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%