Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang = en>
- <head>
- <meta charset="UTF-8">
- <title>Packet generator</title>
- <style>
- table {
- width:100%;
- font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
- text-align: center;
- border-collapse: separate;
- border-spacing: 5px;
- background: #444444;
- color: #FFFFFF;
- border: 16px solid #444444;
- border-radius: 20px;
- box-shadow: 0 10px 10px rgba(0,0,0,0.5);
- }
- th {
- font-size: 18px;
- padding: 10px;
- }
- tr, td {
- background: #41acb7;
- padding: 10px;
- text-align:center;
- }
- h1{
- color:#FFFFFF;
- text-align: center;
- font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
- font-style: italic;
- }
- input[type=text]{
- height: 15px;
- width: 70px;
- }
- input[type=text]:focus{
- border: 2px solid #555;
- }
- button[type=submit] {
- width:300px;
- height:70px;
- font-size:24px;
- }
- select{
- border-radius: 4px;
- }
- #srcId, #dstId, #optionId, #dstMacId, #srcMacId{
- -webkit-transition: width 0.4s ease-in-out;
- transition: width 0.4s ease-in-out
- }
- #srcId:focus, #dstId:focus, #optionId:focus {
- width:110px;
- }
- #srcMacId, #dstMacId {
- width: 120px;
- }
- #dstMacId:focus, #srcMacId:focus {
- width: 130px;
- }
- #buttonId {
- background-color:#C8BBAB;
- border: 2px solid green;
- color: green;
- }
- #optionId {
- width: 105px;
- }
- #flagsId {
- }
- .mainForm{
- font-family: Roboto;
- }
- table{
- border: 1px solid grey
- border-collapse:collapse;
- }
- caption {
- font-size: 24px;
- }
- input{
- height: 31px;
- font-family: inherit;
- background: #c1c1c100;
- color: #ffffff;
- }
- select{
- height: 31px;
- font-family: inherit;
- background: #c1c1c100;
- color: #000000;
- }
- </style>
- </head>
- <body bgcolor = "#C8BBAB">
- <h1>Packet generator</h1>
- <form action = "/savedata" class = "mainForm" method = "POST" >
- <table>
- <caption> Ethernet layer </caption>
- <tr><td>
- <label for = "srcMacId">SRC MAC: </label>
- <input type = "text" id = "srcMacId" name = "srcMac" placeholder = "FF:FF:FF:FF:FF:FF"></input>
- </td><td>
- <label for = "dstMacId">DST MAC: </label>
- <input type = "text" id = "dstMacId" name = "dstMac" placeholder = "FF:FF:FF:FF:FF:FF"> </input>
- </td>
- <td>
- <strong> - for auto generation leave empty.</strong>
- </td>
- </tr>
- <tr align = "center">
- <td>
- <label for = "etherTypeId">EthernetType: </label>
- <select id = "etherTypeId" name = "etherType" >
- {{range .EtherType}}
- <option value = "{{.String}}"> {{.String}} </option>
- {{end}}
- </select>
- </td>
- <td>
- <label for = "etherLengthId"> Length: </label>
- <input type = "text" name = "etherLength" id = "etherLengthId" placeholder = "0-65536"></input>
- </td>
- <td> <label for = "selectId">Network device:</label>
- <select id = "selectId"name = "networkDeviceInput">
- {{range .Interfaces}}
- <option value = "{{.Name}}">{{.Name}}</option>
- {{end}}
- </select></td>
- </tr>
- </table>
- <br>
- <table>
- <caption > IP layer</caption>
- <trbody>
- <tr><td>
- <label for = "versionId">Version: </label>
- <input type = "text" name = "versionInput" id = "versionId" placeholder = "0 - 256"></input>
- </td>
- <td>
- <label for = "ihlId">IHL: </label>
- <input type = "text" name = "ihlInput" id = "ihlId" placeholder = "0-256"></input>
- </td>
- <td>
- <label for = "tosId">Type of service: </label>
- <input type = "text" name = "tosInput" id = "tosId" placeholder = "0-256"></input>
- </td>
- <td>
- <label for = "totallengthId">Total length: </label>
- <input type = "text" name = "lengthInput" id = "totallengthId" placeholder = "0 - 65536"></input>
- </td>
- </tr>
- <tr>
- <td>
- <label for = "identificationId">Identification: </label>
- <input type = "text" name = "idInput" id = "identificationId" placeholder = "0 - 65536"></input>
- </td>
- <td>
- <label for = "flagId">Flag: </label>
- <select id = "flagId" name = "flagInput">
- <option value = "IPv4EvilBit">IPv4EvilBit</option>
- <option value = "IPv4DontFragment">IPv4DontFragment</option>
- <option value = "IPv4MoreFragments">IPv4MoreFragments</option>
- </select>
- </td><td>
- <label for = "fragOffsetId">Fragment offset: </label>
- <input type = "text" name = "fragOffInput" id = "fragOffsetId" placeholder = "0 - 65536"></input>
- </td><td>
- <label for = "ttlId">TTL: </label>
- <input type = "text" name = "ttlInput" id = "ttlId" placeholder = "0 - 256"></input>
- </td></tr>
- <tr>
- <td>
- <label for = "protocolId">Protocol: </label>
- <select id = "protocolId" name = "protocolInput">
- {{range .Protocol}}
- <option value = "{{.String}}">{{.String}}</option>
- {{end}}
- </select>
- </td><td>
- <label for = "checksumId">Checksum: </label>
- <input type = "text" name = "checksumInput" id = "checksumId" placeholder = "0 - 65536"></input>
- </td>
- <td>
- <label for = "srcId">SRC IP: </label>
- <input type = "text" name = "srcInput" id = "srcId" placeholder = "127.0.0.1"></input>
- </td><td>
- <label for = "dstId">DST IP: </label>
- <input type = "text" name = "dstInput" id = "dstId" placeholder = "127.0.0.1"></input>
- </td>
- </tr>
- <tr align = "center">
- <td colspan = 4>
- <label>Option: </label>
- <input type = "text" id = "optionId" name = "optionType" placeholder = "Option Type"></input>
- <input type = "text" id = "optionId" name = "optionLength" placeholder = "Option Length"></input>
- <input type = "text" id = "optionId" name = "optionData" placeholder = "Option Data"></input>
- </td>
- <!-- <label for = "paddingId">Padding: </label>
- <input type = "text" name = "paddingInput" id = "paddingId" placeholder = "Padding"></input>
- <hr>
- -->
- </tr>
- </trbody>
- </table>
- <br>
- <table>
- <caption>TCP layer</caption>
- <trbody> <tr>
- </tr>
- <tr>
- <td>
- <label for = "tcpsrcPortId" >SRC Port: </label>
- <input type = "text" id = "tcpsrcPortId" name = "tcpsrcPort" placeholder = "0-65536"> </input>
- </td><td>
- <label for = "tcpdstPortId"> DST Port: </label>
- <input type = "text" id = "tcpdstPortId" name = "tcpdstPort" placeholder = "0-65536"> </input>
- </td><td>
- <label for = "seqId"> SEQ: </label>
- <input style = "width:100px"type = "text" name = "tcpseq" id = "ackId" placeholder = "0-4294967296"> </input>
- </td><td>
- <label for = "ackId"> ACK: </label>
- <input style = "width:100px"type = "text" name = "tcpack" id = "ackId" placeholder = "0-4294967296"> </input>
- </td>
- </tr><tr>
- <td colspan = 2>
- <label > Flags: </label>
- <input type = "radio" id = "flagsId" name = "finflag">FIN</input>
- <input type = "radio" id = "flagsId2" name = "synflag"> SYN</input>
- <input type = "radio" id = "flagsId3" name = "rstflag"> RST</input>
- <input type = "radio" id = "flagsId4" name = "pshflag"> PSH</input>
- <input type = "radio" id = "flagsId5" name = "ackflag"> ACK</input>
- <input type = "radio" id = "flagsId6" name = "urgflag"> URG</input>
- <input type = "radio" id = "flagsId7" name = "eceflag"> ECE</input>
- <input type = "radio" id = "flagsId8" name = "cwrflag"> CWR</input>
- <input type = "radio" id = "flagsId9" name = "nsflag"> NS</input>
- </td>
- <td>
- <label for = "windowId"> Window: </label>
- <input type = "text" name = "window" id = "windowId" placeholder = "0-65536"> </input>
- </td>
- <td>
- <label for = "checksumtcpId"> Checksum: </label>
- <input type = "text" name = "checksumtcp" id = "checksumtcpId" placeholder = "0-65536"> </input>
- </td>
- </tr><tr><td>
- <label for = "urgentId"> Urgent: </label>
- <input type = "text" name = "urgent" id = "urgentId" placeholder = "0-65536"> </input>
- </td>
- <td>
- <label for = "tcpoffsetId">Offset: </label>
- <input type = "text" id = "tcpoffsetId" name = "tcpoffset" placeholder = "0-255"></input>
- </td>
- <td colspan = 2>
- <label>Option: </label>
- <input type = "text" id = "optionId" name = "tcpoptionType" placeholder = "Option Type"></input>
- <input type = "text" id = "optionId" name = "tcpoptionLength" placeholder = "Option Length"></input>
- <input type = "text" id = "optionId" name = "tcpoptionData" placeholder = "Option Data"></input>
- </td>
- </tr>
- </trbody></table>
- <br>
- <table>
- <caption>UDP layer</caption>
- <trbody> <tr>
- <td>
- <label for = "udpsrcPortId" >SRC Port: </label>
- <input type = "text" id = "udpsrcPortId" name = "udpsrcPort" placeholder = "0-65536"> </input>
- </td><td>
- <label for = "udpdstPortId"> DST Port: </label>
- <input type = "text" id = "udpdstPortId" name = "udpdstPort" placeholder = "0-65536"> </input>
- </td><td>
- <label for = "udplengthId"> Length: </label>
- <input type = "text" name = "udplength" id = "udplengthId" placeholder = "0-65536"> </input>
- </td><td>
- <label for = "udpchecksumId">Checksum: </label>
- <input type = "text" name = "udpchecksum" id = "udpchecksumId" placeholder = "0-65536"> </input>
- </td>
- </tr>
- </trbody></table>
- <br>
- <table>
- <caption>ICMP layer</caption>
- <trbody>
- <tr>
- <td>
- <label for = "typecodeId" >Typecode: </label>
- <input type = "text" id = "typecodeId" name = "typecode" placeholder = "0-65536"> </input>
- </td><td>
- <label for = "icmpchecksumId">Checksum: </label>
- <input type = "text" id = "icmpchecksumId" name = "icmpchecksum" placeholder = "0-65536"> </input>
- </td><td>
- <label for = "icmpidId"> ID: </label>
- <input type = "text" name = "icmpid" id = "icmpidId" placeholder = "0-65536"> </input>
- </td><td>
- <label for = "icmpseqId"> SEQ: </label>
- <input type = "text" name = "icmpseq" id = "icmpseqId" placeholder = "0-65536"> </input>
- </td>
- </tr>
- </trbody>
- </table>
- <br>
- <div style = "text-align:center;"><button type = "submit" >Generate packet</button></div>
- </form>
- <br>
- </body>
- </html>
Add Comment
Please, Sign In to add comment