<commit_before>{% include "banners/newheader.html" %}
{% block content %}
<body> 

<div class="wrapper">
    <div class="sidebar" data-color="azure">    

        <div class="sidebar-wrapper">
            <div class="logo">
                <a href="/" class="simple-text">
                    threat_note
                </a>
            </div>
                       
            <ul class="nav">
                <li>
                    <a href="/">
                        <i class="pe-7s-graph2"></i> 
                        <p>Dashboard</p>
                    </a>            
                </li>
                <li>
                    <a href="/networks">
                        <i class="pe-7s-global"></i> 
                        <p>Network Indicators</p>
                    </a>
                </li> 
                <li>
                    <a href="/threatactors">
                        <i class="pe-7s-users"></i> 
                        <p>Threat Actors</p>
                    </a>        
                </li>
                    <li>
                    <a href="/campaigns">
                        <i class="pe-7s-shield"></i> 
                        <p>Campaigns</p>
                    </a>        
                </li>
                <li>
                    <a href="/settings">
                        <i class="pe-7s-config"></i> 
                        <p>Settings</p>
                    </a>        
                </li>
                <li>
                    <a href="/about">
                        <i class="pe-7s-info"></i> 
                        <p>About</p>
                    </a>        
                </li>
            </ul> 
        </div>
    </div>
    
    <div class="main-panel">
        <nav class="navbar navbar-default navbar-fixed">
            <div class="container-fluid">    
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navigation-example-2">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#">New Indicator</a>
                </div>
            </div>
        </nav>
                     
                     
       <div class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-6 col-md-offset-3">
                        <div class="card">
                            <div class="header">
                                <h4 class="title">New Indicator</h4>
                            </div>
                            <div class="content">
                                <form action="/insert/object/" enctype="application/x-www-form-urlencoded" method="POST">
                                    <div class="row">
                                        <div class="col-md-12">
                                        
                                        <fieldset>
                                            <div class="form-group">
                                                <label>Object</label>
                                                <input type="text" class="form-control" name="inputobject" placeholder="8.8.8.8 or www.google.com or Zero Cool" value="{{ inputobject }}">
                                            </div>        
                                        </div>
                                    </div>

                                      <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label>Object Type</label>
                                                <select class="form-control" name="inputtype">
                                                  {% if inputtype == "IPv4" %}
                                                    <option value="IPv4" selected="true">IPv4</option>
                                                    <option value="IPv6">IPv6</option>
                                                    <option value="Domain">Domain</option>
                                                     <option value="Threat Actor">Threat Actor</option>
                                                     <option value="Network">Network</option>
                                                  {% elif inputtype == "IPv6" %}
                                                    <option value="IPv4">IPv4</option>
                                                    <option value="IPv6" selected="true">IPv6</option>
                                                    <option value="Domain">Domain</option>
                                                     <option value="Threat Actor">Threat Actor</option>
                                                     <option value="Network">Network</option>
                                                  {% elif inputtype == "Domain" %}
                                                    <option value="IPv4">IPv4</option>
                                                    <option value="IPv6">IPv6</option>
                                                     <option value="Domain" selected="true">Domain</option>
                                                     <option value="Threat Actor">Threat Actor</option>
                                                     <option value="Network">Network</option>
                                                  {% elif inputtype == "Threat Actor" %}
                                                      <option value="IPv4">IPv4</option>
                                                    <option value="IPv6">IPv6</option>
                                                     <option value="Domain">Domain</option>
                                                     <option value="Threat Actor" selected="true">Threat Actor</option>
                                                     <option value="Network">Network</option>
                                                  {% elif inputtype == "Network" %}
                                                       <option value="IPv4">IPv4</option>
                                                    <option value="IPv6">IPv6</option>
                                                     <option value="Domain">Domain</option>
                                                     <option value="Threat Actor">Threat Actor</option>
                                                     <option value="Network"  selected="true">Network</option>
                                                   {% else %}
                                                      <option value="IPv4"  selected="true">IPv4</option>
                                                    <option value="IPv6">IPv6</option>
                                                     <option value="Domain">Domain</option>
                                                     <option value="Threat Actor">Threat Actor</option>
                                                     <option value="Network" >Network</option>
                                                    {% endif %}
                                                </select>
                                            </div>        
                                        </div>
                                    </div>
                                    
                                       <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label>First Seen</label>
                                                <input type="text" class="form-control" name="inputfirstseen" placeholder="09-01-2015" value="{{ inputfirstseen }}">
                                            </div>        
                                        </div>
                                    </div>

                                     <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label>Last Seen</label>
                                                <input type="text" class="form-control" name="inputlastseen" placeholder="09-20-2015" value="{{ inputlastseen }}">
                                            </div>        
                                        </div>
                                    </div>

                                      <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label>Diamond Model</label>
                                                 <select class="form-control" name="diamondmodel">
                                                  {% if diamondmodel == "Adversary" %}
                                                    <option value="Adversary" selected="true">Adversary</option>
                                                    <option value="Infrastructure">Infrastructure</option>
                                                    <option value="Victim">Victim</option>
                                                  {% elif diamondmodel == "Infrastructure" %}<commit_msg>changing date format in newobject page<commit_after>{% include "banners/newheader.html" %}
{% block content %}
<body> 

<div class="wrapper">
    <div class="sidebar" data-color="azure">    

        <div class="sidebar-wrapper">
            <div class="logo">
                <a href="/" class="simple-text">
                    threat_note
                </a>
            </div>
                       
            <ul class="nav">
                <li>
                    <a href="/">
                        <i class="pe-7s-graph2"></i> 
                        <p>Dashboard</p>
                    </a>            
                </li>
                <li>
                    <a href="/networks">
                        <i class="pe-7s-global"></i> 
                        <p>Network Indicators</p>
                    </a>
                </li> 
                <li>
                    <a href="/threatactors">
                        <i class="pe-7s-users"></i> 
                        <p>Threat Actors</p>
                    </a>        
                </li>
                    <li>
                    <a href="/campaigns">
                        <i class="pe-7s-shield"></i> 
                        <p>Campaigns</p>
                    </a>        
                </li>
                <li>
                    <a href="/settings">
                        <i class="pe-7s-config"></i> 
                        <p>Settings</p>
                    </a>        
                </li>
                <li>
                    <a href="/about">
                        <i class="pe-7s-info"></i> 
                        <p>About</p>
                    </a>        
                </li>
            </ul> 
        </div>
    </div>
    
    <div class="main-panel">
        <nav class="navbar navbar-default navbar-fixed">
            <div class="container-fluid">    
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navigation-example-2">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#">New Indicator</a>
                </div>
            </div>
        </nav>
                     
                     
       <div class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-6 col-md-offset-3">
                        <div class="card">
                            <div class="header">
                                <h4 class="title">New Indicator</h4>
                            </div>
                            <div class="content">
                                <form action="/insert/object/" enctype="application/x-www-form-urlencoded" method="POST">
                                    <div class="row">
                                        <div class="col-md-12">
                                        
                                        <fieldset>
                                            <div class="form-group">
                                                <label>Object</label>
                                                <input type="text" class="form-control" name="inputobject" placeholder="8.8.8.8 or www.google.com or Zero Cool" value="{{ inputobject }}">
                                            </div>        
                                        </div>
                                    </div>

                                      <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label>Object Type</label>
                                                <select class="form-control" name="inputtype">
                                                  {% if inputtype == "IPv4" %}
                                                    <option value="IPv4" selected="true">IPv4</option>
                                                    <option value="IPv6">IPv6</option>
                                                    <option value="Domain">Domain</option>
                                                     <option value="Threat Actor">Threat Actor</option>
                                                     <option value="Network">Network</option>
                                                  {% elif inputtype == "IPv6" %}
                                                    <option value="IPv4">IPv4</option>
                                                    <option value="IPv6" selected="true">IPv6</option>
                                                    <option value="Domain">Domain</option>
                                                     <option value="Threat Actor">Threat Actor</option>
                                                     <option value="Network">Network</option>
                                                  {% elif inputtype == "Domain" %}
                                                    <option value="IPv4">IPv4</option>
                                                    <option value="IPv6">IPv6</option>
                                                     <option value="Domain" selected="true">Domain</option>
                                                     <option value="Threat Actor">Threat Actor</option>
                                                     <option value="Network">Network</option>
                                                  {% elif inputtype == "Threat Actor" %}
                                                      <option value="IPv4">IPv4</option>
                                                    <option value="IPv6">IPv6</option>
                                                     <option value="Domain">Domain</option>
                                                     <option value="Threat Actor" selected="true">Threat Actor</option>
                                                     <option value="Network">Network</option>
                                                  {% elif inputtype == "Network" %}
                                                       <option value="IPv4">IPv4</option>
                                                    <option value="IPv6">IPv6</option>
                                                     <option value="Domain">Domain</option>
                                                     <option value="Threat Actor">Threat Actor</option>
                                                     <option value="Network"  selected="true">Network</option>
                                                   {% else %}
                                                      <option value="IPv4"  selected="true">IPv4</option>
                                                    <option value="IPv6">IPv6</option>
                                                     <option value="Domain">Domain</option>
                                                     <option value="Threat Actor">Threat Actor</option>
                                                     <option value="Network" >Network</option>
                                                    {% endif %}
                                                </select>
                                            </div>        
                                        </div>
                                    </div>
                                    
                                       <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label>First Seen</label>
                                                <input type="text" class="form-control" name="inputfirstseen" placeholder="YYYY-MM-DD" value="{{ inputfirstseen }}">
                                            </div>        
                                        </div>
                                    </div>

                                     <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label>Last Seen</label>
                                                <input type="text" class="form-control" name="inputlastseen" placeholder="YYYY-MM-DD" value="{{ inputlastseen }}">
                                            </div>        
                                        </div>
                                    </div>

                                      <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label>Diamond Model</label>
                                                 <select class="form-control" name="diamondmodel">
                                                  {% if diamondmodel == "Adversary" %}
                                                    <option value="Adversary" selected="true">Adversary</option>
                                                    <option value="Infrastructure">Infrastructure</option>
                                                    <option value="Victim">Victim</option>
                                                  {% elif diamondmodel == "Infrastructure" %}
{'fraction_non_alphanumeric': 0.10469591993841416, 'fraction_numerical': 0.006158583525789068, 'mean_word_length': 0.6407881441562816, 'pattern_counts': {'":': 0, '<': 403, '<?xml version=': 0, '>': 403, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 312, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7626231', 'n_tokens_mistral': 3657, 'n_tokens_neox': 3377, 'n_words': 657}