Advertisement
Guest User

Untitled

a guest
Mar 26th, 2016
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.73 KB | None | 0 0
  1. cat ~/bin/elink
  2. elinks -auto-submit http://192.168.1.2:9088/WISHN/Login.jsp
  3.  
  4. #!/bin/bash
  5. while [ 1 -eq 1 ]
  6. do
  7. . ~/bin/elink
  8. slleep 3
  9. pkill-9 elinks
  10. sleep 5
  11. done
  12.  
  13. timeout 1m elinks -auto-submit http://192.168.1.2:9088/WISHN/Login.jsp
  14.  
  15. curl -d "Username=someuser&Password=shhhitsasecret" -s http://192.168.1.2:9088/WISHN/loginUI.do2
  16.  
  17. curl -d "Username=someuser&Password=shhhitsasecret" -s http://192.168.1.2:9088/WISHN/Login.jsp
  18.  
  19. <?xml version="1.0" encoding="iso-8859-1"?>
  20. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  21.  
  22.  
  23.  
  24.  
  25.  
  26. <html xmlns="http://www.w3.org/1999/xhtml">
  27. <head>
  28. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  29. <meta http-equiv="Content-Style-Type" content="text/css" />
  30. <title>somewebsite</title>
  31.  
  32. <link href="templatemo_style.css" rel="stylesheet" type="text/css" />
  33. <link rel="stylesheet" type="text/css" href="stylesheet/styles.css" />
  34. <link rel="stylesheet" type="text/css" href="stylesheet/style_pop.css" />
  35. <script type="text/javascript" src="js/jquery.min.js"></script>
  36. <script type="text/javascript" src="js/custom.js"></script>
  37.  
  38. <!--
  39. <script language="javascript" type="text/javascript">
  40. function clearText(field)
  41. {
  42. if (field.defaultValue == field.value) field.value = '';
  43. else if (field.value == '') field.value = field.defaultValue;
  44. }
  45. </script>-->
  46. <script language="JavaScript">
  47. function newCookie(Username,value,days) {
  48. var days = 30; // the number at the left reflects the number of days for the cookie to last
  49. // modify it according to your needs
  50. if (days) {
  51. var date = new Date();
  52. date.setTime(date.getTime()+(days*24*60*60*1000));
  53. var expires = "; expires="+date.toGMTString(); }
  54. else var expires = "";
  55. document.cookie = Username+"="+value+expires+"; path=/"; }
  56.  
  57. function readCookie(Username) {
  58. var nameSG = Username + "=";
  59. var nuller = '';
  60. if (document.cookie.indexOf(nameSG) == -1)
  61. return nuller;
  62.  
  63. var ca = document.cookie.split(';');
  64. for(var i=0; i<ca.length; i++) {
  65. var c = ca[i];
  66. while (c.charAt(0)==' ') c = c.substring(1,c.length);
  67. if (c.indexOf(nameSG) == 0) return c.substring(nameSG.length,c.length); }
  68. return null; }
  69.  
  70. function eraseCookie(Username) {
  71. newCookie(Username,"",1); }
  72.  
  73. function toMem(a) {
  74. newCookie('theName', document.login.Username.value); // add a new cookie as shown at left for every
  75. newCookie('theEmail', document.login.Password.value); // field you wish to have the script remember
  76. }
  77.  
  78. function delMem(a) {
  79. eraseCookie('theName'); // make sure to add the eraseCookie function for every field
  80. eraseCookie('theEmail');
  81.  
  82. document.login.Username.value = ''; // add a line for every field
  83. document.login.Password.value = ''; }
  84.  
  85.  
  86. function remCookie() {
  87. document.login.Username.value = readCookie("theName");
  88. document.login.Password.value = readCookie("theEmail");
  89. }
  90.  
  91.  
  92. function addLoadEvent(func) {
  93. var oldonload = window.onload;
  94. if (typeof window.onload != 'function') {
  95. window.onload = func;
  96. } else {
  97. window.onload = function() {
  98. if (oldonload) {
  99. oldonload();
  100. }
  101. func();
  102. }
  103. }
  104. }
  105.  
  106. addLoadEvent(function() {
  107. remCookie();
  108. });
  109. function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
  110. {
  111. var arVersion = navigator.appVersion.split("MSIE")
  112. var version = parseFloat(arVersion[1])
  113. if ((version >= 5.5) && (document.body.filters))
  114. {
  115. for(var i=0; i<document.images.length; i++)
  116. {
  117. var img = document.images[i]
  118. var imgName = img.src.toUpperCase()
  119. if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
  120. {
  121. var imgID = (img.id) ? "id='" + img.id + "' " : ""
  122. var imgClass = (img.className) ? "class='" + img.className + "' " : ""
  123. var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
  124. var imgStyle = "display:inline-block;" + img.style.cssText
  125. if (img.align == "left") imgStyle = "float:left;" + imgStyle
  126. if (img.align == "right") imgStyle = "float:right;" + imgStyle
  127. if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
  128. var strNewHTML = "<span " + imgID + imgClass + imgTitle
  129. + " style="" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
  130. + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
  131. + "(src='" + img.src + "', sizingMethod='scale');"></span>"
  132. img.outerHTML = strNewHTML
  133. i = i-1
  134. }
  135. }
  136. }
  137. }
  138.  
  139. /* ------- Trim ------- */
  140.  
  141. function trim(str) {
  142. return ltrim(rtrim(str));
  143. }
  144.  
  145. function ltrim(str) {
  146. return str.replace(new RegExp("^[\s]+", "g"), "");
  147. }
  148.  
  149. function rtrim(str) {
  150. return str.replace(new RegExp("[\s]+$", "g"), "");
  151. }
  152. /* ------- End of Trim ------- */
  153. function validateForm(){
  154. var input=true;
  155. document.login.Username.value = trim(document.login.Username.value);
  156. if(document.login.Username.value.length==0){
  157. alert("User Name is required.");
  158. document.login.Username.focus();
  159. input=false;
  160. return false;
  161. }
  162. if(document.login.Password.value.length==0){
  163. alert("Password is required.");
  164. document.login.Password.focus();
  165. input=false;
  166. return false;
  167. }
  168. var uname = "?"+document.login.Username.value+"+/@";
  169. var pwd = "?"+document.login.Password.value+"+/@";
  170. document.login.LoginName.value=encodeURIComponent(uname);
  171. document.login.LoginPassword.value=encodeURIComponent(pwd);
  172. if (input==true&&document.login.checker.checked)
  173. toMem(this);
  174. }
  175. window.attachEvent("onload", correctPNG);
  176. </script>
  177. </head>
  178.  
  179.  
  180. <!--Main Container Starts here-->
  181.  
  182.  
  183.  
  184.  
  185. <form name="login" method="post" action="loginUI.do2" onSubmit="if (this.checker.checked) toMem(this)" id="login-form">
  186.  
  187.  
  188.  
  189.  
  190.  
  191. <body>
  192. <div id="templatemo_wrapper">
  193. <div id="templatemo_menu">
  194. <marquee scrollamount="3" behavior="slide" direction="left" height="20" width="100%" style="color:#00162b"><p>&nbsp; Your Default Password is <strong style="color:#FFFFFF">wnpl123</strong> for first time login only. Please change your password after first login.</p></marquee>
  195. </div> <!-- end of templatemo_menu -->
  196.  
  197. <div id="templatemo_header_bar">
  198.  
  199. <div id="header"><!--<div class="right"></div>-->
  200.  
  201. <h1><a href="#">
  202. <img src="images/templatemo_logo.png" alt="Site Title" width="254" />
  203. <span>&nbsp;</span>
  204. </a></h1>
  205. </div>
  206.  
  207. <div style=" font-size:22px; color:#000; margin-top:50px; float:right; font-family:Arial, Helvetica, sans-serif; left: 878px; top: 0px; width: 285px;">
  208. Toll Free : 1800 419 4244 </div>
  209.  
  210. </div> <!-- end of templatemo_header_bar -->
  211.  
  212. <div class="cleaner"></div>
  213.  
  214. <div id="sidebar"><div class="sidebar_top"></div><div class="sidebar_bottom"></div>
  215.  
  216. <div class="sidebar_section">
  217.  
  218. <h2>Login Form</h2>
  219. <div style="color:#FFFF00; font-size:12px; margin-top:45px; margin-bottom:10px;"><b>
  220.  
  221. </b></div>
  222.  
  223.  
  224. <label>Username</label>
  225. <input type="text" name="Username" size="20" class="input_field" />
  226. <label>Password</label>
  227. <input type="password" value="" name="Password" class="input_field" title="password" />
  228. <input type="hidden" name="LoginName" />
  229. <input type="hidden" name="LoginPassword" />
  230. <label for="checkbox"><br><input type="checkbox" name="checker" id="checker" /> Remember Me</label>
  231. <br />
  232.  
  233.  
  234. <input type="submit" value="Login" id="submit_btn" onClick="return validateForm()" />
  235.  
  236.  
  237.  
  238. </div>
  239.  
  240.  
  241.  
  242.  
  243.  
  244. </div> <!-- end of sidebar -->
  245.  
  246. <div id="templatmeo_content">
  247.  
  248. <div id="latest_product_gallery">
  249.  
  250.  
  251. <img src="images/bannerr.png" />
  252. <a href="index1.html" target="_blank"> <div class="intro-texttt" align="right"></div>
  253. </a>
  254.  
  255.  
  256. </div> <!-- end of latest_content_gallery -->
  257.  
  258.  
  259.  
  260. </div>
  261. Z<!-- end of templatmeo_content -->
  262.  
  263.  
  264. </div> <!-- end of templatemo_wrapper -->
  265.  
  266. <!--<div class="popupbox3" id="popuprel3">
  267. <div id="intabdiv3" align="left">
  268. <table border="0" align="left">
  269. <tr height="16px"><td></td></tr>
  270. <tr height="16px"><td></td></tr>
  271. <tr><td><h2> Steps to Install:-</h2> </td><tr>
  272. <tr><td><Font color="#000000"><strong>1.</strong> <a href="http://172.18.1.60/gamestore/UrbanTerror.rar" style="color:#0000CC">Download</a> UrbanTerror -> Extract UrbanTerror.rar-></font></td></tr><tr><td><Font color="#000000" > Install UrbanTerror.exe</font></td></tr><tr height="14px"><td></td></tr>
  273.  
  274. <tr><td><Font color="#000000">
  275. <strong> 2.</strong><b>Play :</b><i>Online </i>|<b>Source :</b><i>Favorites </i>| <b> Type : </b><i>On/All</i></font> </td></tr>
  276. <tr><td><Font color="#000000" >
  277. <b>Create Favourite Name : </b><i>WISH-UT </i></font></td></tr>
  278. <tr><td><Font color="#000000" >
  279. <b> IP Address :</b><i>172.18.1.60 |</i>
  280. <b> Guides: </b><i>On/All</i></font></td></tr>
  281. <tr><td><Font color="#000000">
  282. <b>OK & CONNECT</b></font></td></tr>
  283. </table>
  284. </div>
  285. </div>
  286.  
  287. -->
  288.  
  289.  
  290. <div id="templatemo_footer_wrapper">
  291.  
  292. <div id="templatemo_footer">
  293.  
  294.  
  295. Copyright &copy; 2015 <a href="#">Wish Net Private Limited</a> |
  296. Designed by <a href="http://www.templatemo.com" target="_parent">Wish Net</a>
  297.  
  298. </div> <!-- end of footer -->
  299.  
  300. </div> <!-- end of footer_wrapper -->
  301. <!--<div id="fade"></div>-->
  302. <!--</form>
  303. <script type="text/javascript"> Cufon.now(); </script>-->
  304. </body>
  305. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement