Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. <form name='frmLogin' action='Login' method='post'>
  2. <table class='login'>
  3. <tr><td class='label'><div class='alignRight'>Username: <span class='mandatory'>*</span></div></td><td class='field'><input type='text' name='txtUsername' size='10' maxlength='10' value='' onBlur="validatePassword(this, true)" onKeyPress="checkText(this, event)" ></td></tr>
  4. <tr><td class='label'><div class='alignRight'>Password: <span class='mandatory'>*</span></div></td><td class='field'><input type='password' name='txtPassword' size='10' maxlength='10' value='' onBlur="validatePassword(this, true)" onKeyPress="checkText(this, event)" ></td></tr>
  5. </table>
  6. <div class='toolbar'>
  7. <input type='button' class='button' name='btnSubmit' value='Login' onClick="javascript:formSubmit()" />
  8. <input type='reset' class='button' name='btnReset' value='Clear' />
  9. <input type='button' class='button' name='btnExit' value='Exit' onClick="javascript:navigateTo('index.jsp')" />
  10. </div>
  11. </form>
  12.  
  13. wget --no-check-certificate --auth-no-challenge --keep-session-cookies --save-cookies cookie104.txt --header="Cookie: $cookie" --post-data="txtUsername=$name&txtPassword=$pass&btnSubmit=Login" ${site}login.jsp
  14.  
  15. wget --load-cookie cookie104.txt --no-check-certificate ${site}home.jsp
  16.  
  17. cat cookie104.txt
  18. # HTTP cookie file.
  19. # Generated by Wget on 2017-01-19 13:54:37.
  20. # Edit at your own risk.
  21.  
  22. xyz02.com FALSE /dpl FALSE 0 JSESSIONID AA86E0BCE03A3D419953A928E590F184
  23.  
  24. HTTP request sent, awaiting response... 302 Found
  25. Location: login.jsp?msg=Your current session has expired. Please log in again. [following]
  26. --2017-01-19 13:54:38-- https://xyz02.com/dpl/login.jsp?msg=Your%20current%20session%20has%20expired.%20Please%20log%20in%20again.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement