

##<NAME>

import os
import webbrowser


def create_html():

    #p = subprocess.Popen('cat '+CurrPath+' | grep -B 1 -A 1 '+email, stdout=subprocess.PIPE, shell=True)
    #(output, err) = p.communicate()
    html_top="""
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Breach Miner</title>
    <script type="text/javascript">
var collapseDivs, collapseLinks;

function createDocumentStructure (tagName) {
  if (document.getElementsByTagName) {
    var elements = document.getElementsByTagName(tagName);
    collapseDivs = new Array(elements.length);
    collapseLinks = new Array(elements.length);
    for (var i = 0; i < elements.length; i++) {
      var element = elements[i];
      var siblingContainer;
      if (document.createElement && 
          (siblingContainer = document.createElement('div')) &&
          siblingContainer.style) 
      {
        var nextSibling = element.nextSibling;
        element.parentNode.insertBefore(siblingContainer, nextSibling);
        var nextElement = elements[i + 1];
        while (nextSibling != nextElement && nextSibling != null) {
          var toMove = nextSibling;
          nextSibling = nextSibling.nextSibling;
          siblingContainer.appendChild(toMove);
        }
        siblingContainer.style.display = 'none';
        
        collapseDivs[i] = siblingContainer;
        
        createCollapseLink(element, siblingContainer, i);
      }
      else {
        // no dynamic creation of elements possible
        return;
      }
    }
    createCollapseExpandAll(elements[0]);
  }
}

function createCollapseLink (element, siblingContainer, index) {
  var span;
  if (document.createElement && (span = document.createElement('span'))) {
    span.appendChild(document.createTextNode(String.fromCharCode(160)));
    var link = document.createElement('a');
    link.collapseDiv = siblingContainer;
    link.href = '#';
    link.appendChild(document.createTextNode('expand'));
    link.onclick = collapseExpandLink;
    collapseLinks[index] = link;
    span.appendChild(link);
    element.appendChild(span);
  }
}

function collapseExpandLink (evt) {
  if (this.collapseDiv.style.display == '') {
    this.parentNode.parentNode.nextSibling.style.display = 'none';
    this.firstChild.nodeValue = 'expand';
  }
  else {
    this.parentNode.parentNode.nextSibling.style.display = '';
    this.firstChild.nodeValue = 'collapse';
  }

  if (evt && evt.preventDefault) {
    evt.preventDefault();
  }
  return false;
}

function createCollapseExpandAll (firstElement) {
  var div;
  if (document.createElement && (div = document.createElement('div'))) {
    var link = document.createElement('a');
    link.href = '#';
    link.appendChild(document.createTextNode('expand all'));
    link.onclick = expandAll;
    div.appendChild(link);
    div.appendChild(document.createTextNode(' '));
    link = document.createElement('a');
    link.href = '#';
    link.appendChild(document.createTextNode('collapse all'));
    link.onclick = collapseAll;
    div.appendChild(link);
    firstElement.parentNode.insertBefore(div, firstElement);
  }
}

function expandAll (evt) {
  for (var i = 0; i < collapseDivs.length; i++) {
    collapseDivs[i].style.display = '';
    collapseLinks[i].firstChild.nodeValue = 'collapse';
  }
  
  if (evt && evt.preventDefault) {
    evt.preventDefault();
  }
  return false;
}

function collapseAll (evt) {
  for (var i = 0; i < collapseDivs.length; i++) {
    collapseDivs[i].style.display = 'none';
    collapseLinks[i].firstChild.nodeValue = 'expand';
  }
  
  if (evt && evt.preventDefault) {
    evt.preventDefault();
  }
  return false;
}
</script>
<script type="text/javascript">
window.onload = function (evt) {
  createDocumentStructure('h4');
}
</script>

    <link rel="stylesheet" type="text/css" href="Resources/style.css" />
    </head>
    <body style="background-color:#000000">
    <div style="color:#ff0000; height: 161px"><pre>
    $$$$$$$\                                          $$\       $$\      $$\ $$\                               
    $$  __$$\                                         $$ |      $$$\    $$$ |\__|                              
    $$ |  $$ | $$$$$$\   $$$$$$\   $$$$$$\   $$$$$$$\ $$$$$$$\  $$$$\  $$$$ |$$\ $$$$$$$\   $$$$$$\   $$$$$$\  
    $$$$$$$\ |$$  __$$\ $$  __$$\  \____$$\ $$  _____|$$  __$$\ $$\$$\$$ $$ |$$ |$$  __$$\ $$  __$$\ $$  __$$\ 
    $$  __$$\ $$ |  \__|$$$$$$$$ | $$$$$$$ |$$ /      $$ |  $$ |$$ \$$$  $$ |$$ |$$ |  $$ |$$$$$$$$ |$$ |  \__|
    $$ |  $$ |$$ |      $$   ____|$$  __$$ |$$ |      $$ |  $$ |$$ |\$  /$$ |$$ |$$ |  $$ |$$   ____|$$ |      
    $$$$$$$  |$$ |      \$$$$$$$\ \$$$$$$$ |\$$$$$$$\ $$ |  $$ |$$ | \_/ $$ |$$ |$$ |  $$ |\$$$$$$$\ $$ |      
    \_______/ \__|       \_______| \_______| \_______|\__|  \__|\__|     \__|\__|\__|  \__| \_______|\__|  
    </pre>
    
    </div> <div style="color:#ff0000; text-align:left;"><pre>Author   : @dH4wk</pre></div>
    <div style="color:#ff0000; text-align:left;"><pre>Twitter  : https://twitter.com/dH4wk</pre></div>
        
    <br><div class="b"><i><b>Anlalysis Completed !!! See below for the details  </i></b> :)</div><br>
    """
    return html_top
    
def invokeBrowser():
    path = os.getcwd()+'/Files/Results.html'
    webbrowser.open(path, 2)      





    



##<NAME>

import os
import webbrowser


def create_html():

    #p = subprocess.Popen('cat '+CurrPath+' | grep -B 1 -A 1 '+email, stdout=subprocess.PIPE, shell=True)
    #(output, err) = p.communicate()
    html_top="""
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Breach Miner</title>
    <script type="text/javascript">
var collapseDivs, collapseLinks;

function createDocumentStructure (tagName) {
  if (document.getElementsByTagName) {
    var elements = document.getElementsByTagName(tagName);
    collapseDivs = new Array(elements.length);
    collapseLinks = new Array(elements.length);
    for (var i = 0; i < elements.length; i++) {
      var element = elements[i];
      var siblingContainer;
      if (document.createElement && 
          (siblingContainer = document.createElement('div')) &&
          siblingContainer.style) 
      {
        var nextSibling = element.nextSibling;
        element.parentNode.insertBefore(siblingContainer, nextSibling);
        var nextElement = elements[i + 1];
        while (nextSibling != nextElement && nextSibling != null) {
          var toMove = nextSibling;
          nextSibling = nextSibling.nextSibling;
          siblingContainer.appendChild(toMove);
        }
        siblingContainer.style.display = 'none';
        
        collapseDivs[i] = siblingContainer;
        
        createCollapseLink(element, siblingContainer, i);
      }
      else {
        // no dynamic creation of elements possible
        return;
      }
    }
    createCollapseExpandAll(elements[0]);
  }
}

function createCollapseLink (element, siblingContainer, index) {
  var span;
  if (document.createElement && (span = document.createElement('span'))) {
    span.appendChild(document.createTextNode(String.fromCharCode(160)));
    var link = document.createElement('a');
    link.collapseDiv = siblingContainer;
    link.href = '#';
    link.appendChild(document.createTextNode('expand'));
    link.onclick = collapseExpandLink;
    collapseLinks[index] = link;
    span.appendChild(link);
    element.appendChild(span);
  }
}

function collapseExpandLink (evt) {
  if (this.collapseDiv.style.display == '') {
    this.parentNode.parentNode.nextSibling.style.display = 'none';
    this.firstChild.nodeValue = 'expand';
  }
  else {
    this.parentNode.parentNode.nextSibling.style.display = '';
    this.firstChild.nodeValue = 'collapse';
  }

  if (evt && evt.preventDefault) {
    evt.preventDefault();
  }
  return false;
}

function createCollapseExpandAll (firstElement) {
  var div;
  if (document.createElement && (div = document.createElement('div'))) {
    var link = document.createElement('a');
    link.href = '#';
    link.appendChild(document.createTextNode('expand all'));
    link.onclick = expandAll;
    div.appendChild(link);
    div.appendChild(document.createTextNode(' '));
    link = document.createElement('a');
    link.href = '#';
    link.appendChild(document.createTextNode('collapse all'));
    link.onclick = collapseAll;
    div.appendChild(link);
    firstElement.parentNode.insertBefore(div, firstElement);
  }
}

function expandAll (evt) {
  for (var i = 0; i < collapseDivs.length; i++) {
    collapseDivs[i].style.display = '';
    collapseLinks[i].firstChild.nodeValue = 'collapse';
  }
  
  if (evt && evt.preventDefault) {
    evt.preventDefault();
  }
  return false;
}

function collapseAll (evt) {
  for (var i = 0; i < collapseDivs.length; i++) {
    collapseDivs[i].style.display = 'none';
    collapseLinks[i].firstChild.nodeValue = 'expand';
  }
  
  if (evt && evt.preventDefault) {
    evt.preventDefault();
  }
  return false;
}
</script>
<script type="text/javascript">
window.onload = function (evt) {
  createDocumentStructure('h4');
}
</script>

    <link rel="stylesheet" type="text/css" href="Resources/style.css" />
    </head>
    <body style="background-color:#000000">
    <div style="color:#ff0000; height: 161px"><pre>
    $$$$$$$\                                          $$\       $$\      $$\ $$\                               
    $$  __$$\                                         $$ |      $$$\    $$$ |\__|                              
    $$ |  $$ | $$$$$$\   $$$$$$\   $$$$$$\   $$$$$$$\ $$$$$$$\  $$$$\  $$$$ |$$\ $$$$$$$\   $$$$$$\   $$$$$$\  
    $$$$$$$\ |$$  __$$\ $$  __$$\  \____$$\ $$  _____|$$  __$$\ $$\$$\$$ $$ |$$ |$$  __$$\ $$  __$$\ $$  __$$\ 
    $$  __$$\ $$ |  \__|$$$$$$$$ | $$$$$$$ |$$ /      $$ |  $$ |$$ \$$$  $$ |$$ |$$ |  $$ |$$$$$$$$ |$$ |  \__|
    $$ |  $$ |$$ |      $$   ____|$$  __$$ |$$ |      $$ |  $$ |$$ |\$  /$$ |$$ |$$ |  $$ |$$   ____|$$ |      
    $$$$$$$  |$$ |      \$$$$$$$\ \$$$$$$$ |\$$$$$$$\ $$ |  $$ |$$ | \_/ $$ |$$ |$$ |  $$ |\$$$$$$$\ $$ |      
    \_______/ \__|       \_______| \_______| \_______|\__|  \__|\__|     \__|\__|\__|  \__| \_______|\__|  
    </pre>
    
    </div> <div style="color:#ff0000; text-align:left;"><pre>Author   : @dH4wk</pre></div>
    <div style="color:#ff0000; text-align:left;"><pre>Twitter  : https://twitter.com/dH4wk</pre></div>
        
    <br><div class="b"><i><b>Anlalysis Completed !!! See below for the details  </i></b> :)</div><br>
    """
    return html_top
    
def invokeBrowser():
    path = os.getcwd()+'/Files/Results.html'
    webbrowser.open(path, 2)      





    

##<NAME> #p = subprocess.Popen('cat '+CurrPath+' | grep -B 1 -A 1 '+email, stdout=subprocess.PIPE, shell=True) #(output, err) = p.communicate() <!DOCTYPE html>     <html>     <head>     <meta charset="UTF-8">     <title>Breach Miner</title>     <script type="text/javascript"> var collapseDivs, collapseLinks;  function createDocumentStructure (tagName) {   if (document.getElementsByTagName) {     var elements = document.getElementsByTagName(tagName);     collapseDivs = new Array(elements.length);     collapseLinks = new Array(elements.length);     for (var i = 0; i < elements.length; i++) {       var element = elements[i];       var siblingContainer;       if (document.createElement &&            (siblingContainer = document.createElement('div')) &&           siblingContainer.style)        {         var nextSibling = element.nextSibling;         element.parentNode.insertBefore(siblingContainer, nextSibling);         var nextElement = elements[i + 1];         while (nextSibling != nextElement && nextSibling != null) {           var toMove = nextSibling;           nextSibling = nextSibling.nextSibling;           siblingContainer.appendChild(toMove);         }         siblingContainer.style.display = 'none';                  collapseDivs[i] = siblingContainer;                  createCollapseLink(element, siblingContainer, i);       }       else {         // no dynamic creation of elements possible         return;       }     }     createCollapseExpandAll(elements[0]);   } }  function createCollapseLink (element, siblingContainer, index) {   var span;   if (document.createElement && (span = document.createElement('span'))) {     span.appendChild(document.createTextNode(String.fromCharCode(160)));     var link = document.createElement('a');     link.collapseDiv = siblingContainer;     link.href = '#';     link.appendChild(document.createTextNode('expand'));     link.onclick = collapseExpandLink;     collapseLinks[index] = link;     span.appendChild(link);     element.appendChild(span);   } }  function collapseExpandLink (evt) {   if (this.collapseDiv.style.display == '') {     this.parentNode.parentNode.nextSibling.style.display = 'none';     this.firstChild.nodeValue = 'expand';   }   else {     this.parentNode.parentNode.nextSibling.style.display = '';     this.firstChild.nodeValue = 'collapse';   }    if (evt && evt.preventDefault) {     evt.preventDefault();   }   return false; }  function createCollapseExpandAll (firstElement) {   var div;   if (document.createElement && (div = document.createElement('div'))) {     var link = document.createElement('a');     link.href = '#';     link.appendChild(document.createTextNode('expand all'));     link.onclick = expandAll;     div.appendChild(link);     div.appendChild(document.createTextNode(' '));     link = document.createElement('a');     link.href = '#';     link.appendChild(document.createTextNode('collapse all'));     link.onclick = collapseAll;     div.appendChild(link);     firstElement.parentNode.insertBefore(div, firstElement);   } }  function expandAll (evt) {   for (var i = 0; i < collapseDivs.length; i++) {     collapseDivs[i].style.display = '';     collapseLinks[i].firstChild.nodeValue = 'collapse';   }      if (evt && evt.preventDefault) {     evt.preventDefault();   }   return false; }  function collapseAll (evt) {   for (var i = 0; i < collapseDivs.length; i++) {     collapseDivs[i].style.display = 'none';     collapseLinks[i].firstChild.nodeValue = 'expand';   }      if (evt && evt.preventDefault) {     evt.preventDefault();   }   return false; } </script> <script type="text/javascript"> window.onload = function (evt) {   createDocumentStructure('h4'); } </script>      <link rel="stylesheet" type="text/css" href="Resources/style.css" />     </head>     <body style="background-color:#000000">     <div style="color:#ff0000; height: 161px"><pre>     $$$$$$$\                                          $$\       $$\      $$\ $$\                                    $$  __$$\                                         $$ |      $$$\    $$$ |\__|                                   $$ |  $$ | $$$$$$\   $$$$$$\   $$$$$$\   $$$$$$$\ $$$$$$$\  $$$$\  $$$$ |$$\ $$$$$$$\   $$$$$$\   $$$$$$\       $$$$$$$\ |$$  __$$\ $$  __$$\  \____$$\ $$  _____|$$  __$$\ $$\$$\$$ $$ |$$ |$$  __$$\ $$  __$$\ $$  __$$\      $$  __$$\ $$ |  \__|$$$$$$$$ | $$$$$$$ |$$ /      $$ |  $$ |$$ \$$$  $$ |$$ |$$ |  $$ |$$$$$$$$ |$$ |  \__|     $$ |  $$ |$$ |      $$   ____|$$  __$$ |$$ |      $$ |  $$ |$$ |\$  /$$ |$$ |$$ |  $$ |$$   ____|$$ |           $$$$$$$  |$$ |      \$$$$$$$\ \$$$$$$$ |\$$$$$$$\ $$ |  $$ |$$ | \_/ $$ |$$ |$$ |  $$ |\$$$$$$$\ $$ |           \_______/ \__|       \_______| \_______| \_______|\__|  \__|\__|     \__|\__|\__|  \__| \_______|\__|       </pre>          </div> <div style="color:#ff0000; text-align:left;"><pre>Author   : @dH4wk</pre></div>     <div style="color:#ff0000; text-align:left;"><pre>Twitter  : https://twitter.com/dH4wk</pre></div>              <br><div class="b"><i><b>Anlalysis Completed !!! See below for the details  </i></b> :)</div><br>