{"id":17928624,"url":"https://github.com/evilsocket/pineproxy","last_synced_at":"2025-09-17T22:33:37.483Z","repository":{"id":26238219,"uuid":"29685083","full_name":"evilsocket/pineproxy","owner":"evilsocket","description":"A ruby self contained, low resource consuming HTTP transparent proxy designed for the WiFi Pineapple MKV.","archived":false,"fork":false,"pushed_at":"2015-06-29T13:18:29.000Z","size":162,"stargazers_count":17,"open_issues_count":0,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-30T20:51:27.269Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evilsocket.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-22T15:24:51.000Z","updated_at":"2024-08-12T19:16:01.000Z","dependencies_parsed_at":"2022-08-26T06:12:50.467Z","dependency_job_id":null,"html_url":"https://github.com/evilsocket/pineproxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilsocket%2Fpineproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilsocket%2Fpineproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilsocket%2Fpineproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilsocket%2Fpineproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evilsocket","download_url":"https://codeload.github.com/evilsocket/pineproxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233429749,"owners_count":18674992,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-28T21:04:22.566Z","updated_at":"2025-09-17T22:33:32.213Z","avatar_url":"https://github.com/evilsocket.png","language":"Ruby","readme":"PineProxy\n==\n\nCopyleft of **Simone 'evilsocket' Margaritelli**.  \nhttp://www.evilsocket.net/\n\n---\n\n**PineProxy** is a ruby self contained, low resource consuming HTTP transparent proxy\ndesigned for the [WiFi Pineapple MKV](https://www.wifipineapple.com) board.  \nIt's based on the **dnsspoof** infusion by Whistle Master.\n\n\nMODULES\n===\n\nYou can easily implement a module to inject data into pages or just inspect the\nrequests/responses creating a ruby file inside the **modules** folder, the following\nis a sample module that injects some contents into the title tag of each html page.\n\n```ruby\nclass HackTitle \u003c PineProxy::Module\n    def initialize\n        # do your initialization stuff here\n    end\n\n    # self explainatory\n    def is_enabled?\n        return true\n    end\n\n    def on_request request, response\n        # is an html page?\n        if response.content_type == \"text/html\"\n            PineProxy::Logger.warn \"Hacking #{http://#{request.host}#{request.url}} title tag\"\n\n            # make sure to use sub! or gsub! to update the instance\n            response.body.sub!( \"\u003ctitle\u003e\", \"\u003ctitle\u003e !!! HACKED !!! \" )\n        end\n    end\nend\n```\n\nREQUIREMENTS\n===\n\nIn order to install ruby and make it work on your WiFi Pineapple, execute the\nfollowing commands:\n\n    opkg update\n    opkg install ruby --dest usb\n    opkg install ruby-gems --dest usb\n    opkg install ruby-core --dest usb\n    opkg install ruby-enc --dest usb\n\n    # fix the ruby gem import error\n    ln -s /sd/usr/lib/ruby /usr/lib/ruby\n\nMOTIVATIONS\n===\n\nSince 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\nwithout *weird* dependecies.\n\nNOTES\n===\n\nThis software is still under heavy development, use at your own risk.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilsocket%2Fpineproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevilsocket%2Fpineproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilsocket%2Fpineproxy/lists"}