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.
- Host: GitHub
- URL: https://github.com/evilsocket/pineproxy
- Owner: evilsocket
- License: gpl-3.0
- Created: 2015-01-22T15:24:51.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-29T13:18:29.000Z (over 10 years ago)
- Last Synced: 2024-12-30T20:51:27.269Z (about 1 year ago)
- Language: Ruby
- Size: 158 KB
- Stars: 17
- Watchers: 4
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.