An open API service indexing awesome lists of open source software.

https://github.com/evilsocket/pineproxy

A ruby self contained, low resource consuming HTTP transparent proxy designed for the WiFi Pineapple MKV.
https://github.com/evilsocket/pineproxy

Last synced: 5 months ago
JSON representation

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

Awesome Lists containing this project

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](https://www.wifipineapple.com) 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.

```ruby
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!( "", " !!! 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](https://mitmproxy.org) 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.