WorkTools.git

WorkTools

~
git clone https://github.com/debuman/WorkTools.git

templates/index.html (2835B)

      1 <!DOCTYPE html>
      2 <html lang="en">
      3   <head>
      4     <meta charset="utf-8" />
      5     <meta name="viewport" content="width=device-width, initial-scale=1" />
      6     <title>IP to Country</title>
      7     <!-- Bootstrap CSS -->
      8     <link
      9       href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
     10       rel="stylesheet"
     11     />
     12   </head>
     13   <body>
     14     <nav class="navbar navbar-expand-lg navbar-light bg-light">
     15       <a class="navbar-brand" href="#">Navigation</a>
     16       <button
     17         class="navbar-toggler"
     18         type="button"
     19         data-toggle="collapse"
     20         data-target="#navbarNav"
     21         aria-controls="navbarNav"
     22         aria-expanded="false"
     23         aria-label="Toggle navigation"
     24       >
     25         <span class="navbar-toggler-icon"></span>
     26       </button>
     27       <div class="collapse navbar-collapse" id="navbarNav">
     28         <ul class="navbar-nav">
     29           <li class="nav-item active">
     30             <a class="nav-link" href="/">IP & Domain Country Finder</a>
     31           </li>
     32           <li class="nav-item">
     33             <a class="nav-link" href="/ascii_to_char">ASCII Code Converter</a>
     34           </li>
     35           <li class="nav-item">
     36             <a class="nav-link" href="/utf8_decoder">UTF-8 Decoder</a>
     37           </li>
     38           <li class="nav-item">
     39             <a class="nav-link" href="/news">News</a>
     40           </li>
     41           <li class="nav-item">
     42             <a class="nav-link" href="/shodan">Shodan</a>
     43           </li>
     44           <li class="nav-item">
     45             <a class="nav-link" href="/krcert">Krcert</a>
     46           </li>
     47         </ul>
     48       </div>
     49     </nav>
     50     <div class="container">
     51       <h1 class="my-3">IP to Country</h1>
     52       <form method="post">
     53         <div class="mb-3">
     54           <label for="ip_list" class="form-label">IP List:</label>
     55           <textarea
     56             class="form-control"
     57             name="ip_list"
     58             id="ip_list"
     59             rows="10"
     60           ></textarea>
     61         </div>
     62         <input type="submit" class="btn btn-primary" value="Submit" />
     63       </form>
     64       {% if ip_data %}
     65       <table class="table table-striped table-hover my-3">
     66         <thead>
     67           <tr>
     68             <th scope="col">IP Address</th>
     69             <th scope="col">Country</th>
     70           </tr>
     71         </thead>
     72         <tbody>
     73           {% for data in ip_data %}
     74           <tr>
     75             <td>{{ data.ip }}</td>
     76             <td>{{ data.country }}</td>
     77           </tr>
     78           {% endfor %}
     79         </tbody>
     80       </table>
     81       {% endif %}
     82     </div>
     83     <!-- Optional JavaScript; choose one of the two! -->
     84     <!-- Option 1: jQuery and Bootstrap Bundle (includes Popper) -->
     85     <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
     86     <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.bundle.min.js"></script>
     87   </body>
     88 </html>