Advertisement
Guest User

Untitled

a guest
Jun 8th, 2018
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.44 KB | None | 0 0
  1. Authenticating
  2. Authenticated OK
  3. Sending flash command to modem
  4. Exception in Tkinter callback
  5. Traceback (most recent call last):
  6. File "tkinter\__init__.py", line 1699, in __call__
  7. File "autoflashgui.py", line 317, in run
  8. File "autoflashgui.py", line 127, in mainScript
  9. FileNotFoundError: [Errno 2] No such file or directory: 'AGTHP_1.0.3_CLOSED'
  10. Authenticating
  11. Authenticated OK
  12. Sending flash command to modem
  13.  
  14. <!DOCTYPE HTML>
  15. <html lang="en-us">
  16. <head>
  17. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  18. <meta charset="UTF-8">
  19. <meta name="CSRFtoken" content="7bf84e0c76eaf6ca1563df9cebb9c2c0975099ab391b14f4def692f991243585">
  20. <link href="/css/gw.css" rel="stylesheet">
  21. <link href="/css/responsive.css" rel="stylesheet">
  22. <link href="/css/TIM.css" rel="stylesheet">
  23. <!--[if IE 7]><link rel="stylesheet" href="/css/font-awesome-ie7.css"><![endif]-->
  24. <script src="/js/main-min.js" ></script>
  25. <!--[if lt IE 9]> <script src="/js/media-min.js"></script> <![endif]-->
  26. <script src="/js/srp-min.js" ></script>
  27. <title>Login</title>
  28. </head>
  29.  
  30. <body>
  31. <div class="container">
  32. <div class="logo-technicolor">
  33. <!--<a href="http:&#47;&#47;www.technicolor.com" target="_blank"><img src="/img/logo.png"></a>-->
  34. <img class="timlogo" src="/img/TIM.png">
  35. </div>
  36. <div class="row">
  37. <div class="offset4 span4">
  38. <div class="login">
  39. <form class="form-horizontal">
  40. <fieldset>
  41. <h2>Sign in</h2>
  42.  
  43. <div id="erroruserpass" class="alert alert-error hide">
  44. <strong>Invalid Username or Password</strong>
  45. </div>
  46. <div class="control-group">
  47. <label for="srp_username"><div class="label-icon">
  48. <i class="icon-user icon-large"></i>
  49. </div></label>
  50. <input class="span3" type="text" placeholder="Your username" id="srp_username" value="admin" autofocus><br><br>
  51. </div>
  52. <div class="control-group">
  53. <label for="srp_password"><div class="label-icon"><i class="icon-lock icon-large"></i></div></label>
  54. <input class="span3" type="password" placeholder="Your password" id="srp_password"><br><br>
  55. </div>
  56. <!-- HIDE WARNING - NOT NOT USED IN DEFAULT CUSTO
  57. <div id="defaultpassword" class="alert alert-info hide">
  58. If you haven't changed it, the default password can be found on the sticker under your gateway (it's called <strong>"access code"</strong>)
  59. </div>
  60. -->
  61. <div class="pull-right">
  62. <a href="/" class="btn btn-primary btn-large">Cancel</a>
  63. &nbsp;
  64. <div id="sign-me-in" class="btn btn-primary btn-large">Sign in</div>
  65. </div>
  66. </fieldset>
  67. </form>
  68. </div>
  69. </div>
  70. </div>
  71. <div class="row"><div class="copyright span12"><p>&copy; Technicolor 2015</p></div></div>
  72. </div>
  73. <script>
  74. $(document).ready(
  75. function() {
  76. var triesbeforemsg = 3;
  77. var tries = 0;
  78. var password = "";
  79.  
  80. // Set the focus on the first input field
  81. $('form:first *:input[type!=hidden]:first').focus();
  82. // Handle press of enter. Could be handled by adding a hidden input submit but
  83. // this requires a lot of css tweaking to get it right since display:none does
  84. // not work on every browser. So go for the js way
  85. $('form input').keydown(function(e) {
  86. if(e.which == 13 || e.which == 10) {
  87. e.preventDefault();
  88. $("#sign-me-in").click();
  89. }
  90. });
  91.  
  92. $("#sign-me-in").on("click", function () {
  93. $(this).text('Verifying');
  94. password = $("#srp_password")[0].value;
  95.  
  96. //If the user has option legacy_salt, do migration
  97. var legacySalts = "";
  98. var userNames = "";
  99. var inputUsername = $("#srp_username")[0].value;
  100. var index = -1;
  101. var userNameArray = userNames.split(",")
  102. var legacySaltArray = legacySalts.split(",")
  103.  
  104. for (var i = 0; i < userNameArray.length - 1; i ++)
  105. {
  106. if ( inputUsername == userNameArray[i] )
  107. {
  108. index = i;
  109. }
  110. }
  111. if (index >= 0)
  112. {
  113. //alert(legacySaltArray[index]);
  114. var hashObj = new jsSHA((legacySaltArray[index]+tch.stringToHex(password)), "HEX");
  115. password = hashObj.getHash("SHA-1", "HEX");
  116. }
  117.  
  118. var srp = new SRP();
  119. srp.success = function() {
  120. // If we showed the login page using an internal redirect (detected
  121. // by checking if the URL ends with "/login.lp") then we simply
  122. // have to reload the page to get the actual page content now that
  123. // we're logged in.
  124. // Otherwise we explicitly go back to the main page.
  125. if (window.location.pathname.search(/\/login\.lp$/) == -1){
  126. var curl = window.location.href
  127. window.location.href = curl.substring(0,curl.indexOf("#"));
  128. }else
  129. window.location = "/";
  130. }
  131. srp.error_message = function(err) {
  132. if(err == 403){
  133. $.get("login.lp", {action:"getcsrf"}, function (data){
  134. $('meta[name=CSRFtoken]').attr('content', data);
  135. srp.identify("/authenticate", $("#srp_username")[0].value, password);
  136. });
  137. }else{
  138. $("#sign-me-in").text('Sign in');
  139. $("#erroruserpass").show();
  140. $(".control-group").addClass("error");
  141. }
  142. tries++;
  143. if(triesbeforemsg > 0 && tries >= triesbeforemsg) {
  144. $("#defaultpassword").show();
  145. }
  146. }
  147. srp.identify("/authenticate", $("#srp_username")[0].value, password);
  148. });
  149. })
  150.  
  151. </script>
  152. </body>
  153. </html>
  154.  
  155. Authenticating
  156. Authenticated OK
  157. Splitting command up using semicolons
  158. Sending command: sed -i 's#root:/bin/false#root:/bin/ash#' /etc/passwd
  159. Sleeping...
  160. Sending command: uci set dropbear.lan.enable=1
  161. Sleeping...
  162. Sending command: uci set dropbear.lan.RootPasswordAuth=on
  163. Sleeping...
  164. Sending command: uci commit
  165. Sleeping...
  166. Sending command: echo -e "root\nroot"|passwd
  167. Sleeping...
  168. Sending command: /etc/init.d/dropbear restart
  169. Sleeping...
  170. Please try a ssh connection now to 192.168.1.1 with username root and password root (change password immediately with passwd!) Rebooting your modem now is recommended to stop any services that have been disabled.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement