Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Latest commit

 

History

History
22 lines (19 loc) · 859 Bytes

File metadata and controls

22 lines (19 loc) · 859 Bytes

Squid3-beEF

Proof of Concept - Using squid url rewrite feature to "hijack" proxy traffic and inject BeEF payload into it.

Requirement

Installation

  1. Copy rewrite.php and payload.js to apache document root
  2. Make rewrite.php executable by using following command
    • chmod +x /rewrite.php
  3. Edit /etc/squid3/squid.conf and add following line
    • url_rewrite_program /rewrite.php
  4. Change #_BEEFURL_# inside payload.js to BeEF Hook URL
  5. Create empty folder and allow writable by all user
    • mkdir -p /payload
    • chmod 0777 /payload

Be sure to restart squid3 (sudo service squid3 restart) to refresh the changes.