SHARE
TWEET

Untitled

a guest Jul 21st, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2.     <head>
  3.         <title>Automated Out-of-band Application Security Testing</title>
  4.         <style>
  5.  
  6. .center {
  7.     border:solid black;
  8.     border-radius:10px;
  9.   margin: 0;
  10.   position: absolute;
  11.   top: 50%;
  12.   left: 50%;
  13.   -ms-transform: translate(-50%, -50%);
  14.   transform: translate(-50%, -50%);
  15.   box-shadow:0px 2px 5px 5px lightblue;
  16. }
  17. #submit{
  18.     height:50px;
  19.     width:100px;
  20.     border:solid gray;
  21.     border-radius:3px;
  22.     cursor:pointer;
  23.     background-color:gray;
  24.     font-size:17px;
  25. }
  26. #domainInput{
  27.     border:solid gray;
  28.     border-radius:5px;
  29. }
  30.  
  31. h1{
  32.     color:red;
  33. }
  34. </style>
  35.     </head>
  36.    
  37. <body>
  38.         <div class="center">
  39.                <h1 align="center">Automated Out-of-band Application Security Testing</h1>
  40. <form method='POST' onsubmit="mitted();" align="center" name="DomainForm">
  41. <input type="text" name="domainInput" placeholder="Enter domain" style="width:300px;height:50px;font-size:20px;" id="domainInput"><br/><br/><br/>
  42. <input type='submit' name='scanSubmit' value='New scan' id="submit">
  43. </form>
  44. </div>
  45. <script>
  46.     function mitted(){
  47.        // alert("Scan pending..");
  48.    
  49.  
  50.         var val = document.DomainForm.domainInput.value;
  51.         if (/^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9](?:\.[a-zA-Z]{2,})+$/.test(val)) {
  52.             alert("Valid Domain Name, pending scan..");
  53.         } else {
  54.             alert("Enter Valid Domain Name");
  55.             val.domainInput.focus();
  56.         }
  57.        
  58.     }
  59. </script>
  60. </body>
  61.  
  62. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top