Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Automated Out-of-band Application Security Testing</title>
- <style>
- .center {
- border:solid black;
- border-radius:10px;
- margin: 0;
- position: absolute;
- top: 50%;
- left: 50%;
- -ms-transform: translate(-50%, -50%);
- transform: translate(-50%, -50%);
- box-shadow:0px 2px 5px 5px lightblue;
- }
- #submit{
- height:50px;
- width:100px;
- border:solid gray;
- border-radius:3px;
- cursor:pointer;
- background-color:gray;
- font-size:17px;
- }
- #domainInput{
- border:solid gray;
- border-radius:5px;
- }
- h1{
- color:red;
- }
- </style>
- </head>
- <body>
- <div class="center">
- <h1 align="center">Automated Out-of-band Application Security Testing</h1>
- <form method='POST' onsubmit="mitted();" align="center" name="DomainForm">
- <input type="text" name="domainInput" placeholder="Enter domain" style="width:300px;height:50px;font-size:20px;" id="domainInput"><br/><br/><br/>
- <input type='submit' name='scanSubmit' value='New scan' id="submit">
- </form>
- </div>
- <script>
- function mitted(){
- // alert("Scan pending..");
- var val = document.DomainForm.domainInput.value;
- if (/^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9](?:\.[a-zA-Z]{2,})+$/.test(val)) {
- alert("Valid Domain Name, pending scan..");
- } else {
- alert("Enter Valid Domain Name");
- val.domainInput.focus();
- }
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement