Guest User

Untitled

a guest
Dec 4th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 15.00 KB | None | 0 0
  1. root@root:~/Desktop# ./cli.exp help
  2. expect version 5.44.1.14
  3. argv[0] = /usr/bin/expect  argv[1] = -df  argv[2] = ./cli.exp  argv[3] = help  
  4. set argc 1
  5. set argv0 "./cli.exp"
  6. set argv "help"
  7. executing commands from command file ./cli.exp
  8. telnet to this host: 192.168.1.1
  9. spawn telnet 192.168.1.1
  10. parent: waiting for sync byte
  11. parent: telling child to go ahead
  12. parent: now unsynchronized from child
  13. spawn: returns {3196}
  14. Gate keeper glob pattern for 'Bad username|Login incorrect' is ''. Not usable, disabling the performance booster.
  15. Gate keeper glob pattern for 'Unable to connect to remote host|Connection closed by foreign host' is ''. Not usable, disabling the performance booster.
  16. Gate keeper glob pattern for 'ogin|sername' is ''. Not usable, disabling the performance booster.
  17.  
  18. expect: does "" (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  19. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  20. "ogin|sername"? (No Gate, RE only) gate=yes re=no
  21. "assword"? no
  22. Trying 192.168.1.1...
  23. expect: does "Trying 192.168.1.1..." (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  24. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  25. "ogin|sername"? (No Gate, RE only) gate=yes re=no
  26. "assword"? no
  27.  
  28.  
  29. expect: does "Trying 192.168.1.1...\r\n" (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  30. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  31. "ogin|sername"? (No Gate, RE only) gate=yes re=no
  32. "assword"? no
  33. Connected to 192.168.1.1.
  34. Escape character is '^]'.
  35.  
  36. expect: does "Trying 192.168.1.1...\r\nConnected to 192.168.1.1.\r\nEscape character is '^]'.\r\n" (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  37. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  38. "ogin|sername"? (No Gate, RE only) gate=yes re=no
  39. "assword"? no
  40.  
  41. BusyBox on localhost login:
  42. expect: does "Trying 192.168.1.1...\r\nConnected to 192.168.1.1.\r\nEscape character is '^]'.\r\n\r\nBusyBox on localhost login: " (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  43. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  44. "ogin|sername"? (No Gate, RE only) gate=yes re=yes
  45. expect: set expect_out(0,string) "ogin"
  46. expect: set expect_out(spawn_id) "exp6"
  47. expect: set expect_out(buffer) "Trying 192.168.1.1...\r\nConnected to 192.168.1.1.\r\nEscape character is '^]'.\r\n\r\nBusyBox on localhost login"
  48. send: sending "root\r" to { exp6 }
  49. expect: continuing expect
  50.  
  51. expect: does ": " (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  52. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  53. "ogin|sername"? (No Gate, RE only) gate=yes re=no
  54. "assword"? no
  55. root
  56.  
  57. expect: does ": root\r\n" (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  58. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  59. "ogin|sername"? (No Gate, RE only) gate=yes re=no
  60. "assword"? no
  61. Password:
  62. expect: does ": root\r\nPassword: " (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  63. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  64. "ogin|sername"? (No Gate, RE only) gate=yes re=no
  65. "assword"? yes
  66. expect: set expect_out(0,string) "assword"
  67. expect: set expect_out(spawn_id) "exp6"
  68. expect: set expect_out(buffer) ": root\r\nPassword"
  69. send: sending "admin\r" to { exp6 }
  70.  
  71. expect: does ": " (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  72. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  73. "cli>"? no
  74.  
  75.  
  76. expect: does ": \r\n" (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  77. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  78. "cli>"? no
  79. DSL Modem CLI
  80. Copyright (c) 2004 Texas Instruments, Inc.
  81. cli>
  82. expect: does ": \r\nDSL Modem CLI\r\nCopyright (c) 2004 Texas Instruments, Inc.\r\ncli> " (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  83. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  84. "cli>"? yes
  85. expect: set expect_out(0,string) "cli>"
  86. expect: set expect_out(spawn_id) "exp6"
  87. expect: set expect_out(buffer) ": \r\nDSL Modem CLI\r\nCopyright (c) 2004 Texas Instruments, Inc.\r\ncli>"
  88. send: sending "shell\n" to { exp6 }
  89. Gate keeper glob pattern for '#' is '#'. Activating booster.
  90.  
  91. expect: does " " (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  92. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  93. "#"? Gate "#"? gate=no
  94. s
  95. expect: does " s" (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  96. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  97. "#"? Gate "#"? gate=no
  98. hell
  99.  
  100. Starting /bin/sh
  101. Type exit to return to the CLI
  102.  
  103. expect: does " shell\r\n\r\r\nStarting /bin/sh\r\r\nType exit to return to the CLI\r\r\n" (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  104. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  105. "#"? Gate "#"? gate=no
  106.  
  107.  
  108. BusyBox v0.61.pre (2007.07.19-01:54+0000) Built-in shell (ash)
  109.  
  110. expect: does " shell\r\n\r\r\nStarting /bin/sh\r\r\nType exit to return to the CLI\r\r\n\r\n\r\nBusyBox v0.61.pre (2007.07.19-01:54+0000) Built-in shell (ash)\r\n" (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  111. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  112. "#"? Gate "#"? gate=no
  113. Enter 'help' for a list of built-in commands.
  114.  
  115. #
  116. expect: does " shell\r\n\r\r\nStarting /bin/sh\r\r\nType exit to return to the CLI\r\r\n\r\n\r\nBusyBox v0.61.pre (2007.07.19-01:54+0000) Built-in shell (ash)\r\nEnter 'help' for a list of built-in commands.\r\n\r\n# " (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  117. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  118. "#"? Gate "#"? gate=yes re=yes
  119. expect: set expect_out(0,string) "#"
  120. expect: set expect_out(spawn_id) "exp6"
  121. expect: set expect_out(buffer) " shell\r\n\r\r\nStarting /bin/sh\r\r\nType exit to return to the CLI\r\r\n\r\n\r\nBusyBox v0.61.pre (2007.07.19-01:54+0000) Built-in shell (ash)\r\nEnter 'help' for a list of built-in commands.\r\n\r\n#"
  122. send: sending "help\r" to { exp6 }
  123. end processing host: 192.168.1.1
  124.  
  125. root@root:~/Desktop# clear
  126.  
  127. root@root:~/Desktop# ./cli.exp help
  128. expect version 5.44.1.14
  129. argv[0] = /usr/bin/expect  argv[1] = -df  argv[2] = ./cli.exp  argv[3] = help  
  130. set argc 1
  131. set argv0 "./cli.exp"
  132. set argv "help"
  133. executing commands from command file ./cli.exp
  134. telnet to this host: 192.168.1.1
  135. spawn telnet 192.168.1.1
  136. parent: waiting for sync byte
  137. parent: telling child to go ahead
  138. parent: now unsynchronized from child
  139. spawn: returns {3213}
  140. Gate keeper glob pattern for 'Bad username|Login incorrect' is ''. Not usable, disabling the performance booster.
  141. Gate keeper glob pattern for 'Unable to connect to remote host|Connection closed by foreign host' is ''. Not usable, disabling the performance booster.
  142. Gate keeper glob pattern for 'ogin|sername' is ''. Not usable, disabling the performance booster.
  143.  
  144. expect: does "" (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  145. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  146. "ogin|sername"? (No Gate, RE only) gate=yes re=no
  147. "assword"? no
  148. Trying 192.168.1.1...
  149. expect: does "Trying 192.168.1.1..." (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  150. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  151. "ogin|sername"? (No Gate, RE only) gate=yes re=no
  152. "assword"? no
  153.  
  154.  
  155. expect: does "Trying 192.168.1.1...\r\n" (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  156. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  157. "ogin|sername"? (No Gate, RE only) gate=yes re=no
  158. "assword"? no
  159. Connected to 192.168.1.1.
  160. expect: does "Trying 192.168.1.1...\r\nConnected to 192.168.1.1." (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  161. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  162. "ogin|sername"? (No Gate, RE only) gate=yes re=no
  163. "assword"? no
  164.  
  165.  
  166. expect: does "Trying 192.168.1.1...\r\nConnected to 192.168.1.1.\r\n" (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  167. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  168. "ogin|sername"? (No Gate, RE only) gate=yes re=no
  169. "assword"? no
  170. Escape character is '^]'.
  171. expect: does "Trying 192.168.1.1...\r\nConnected to 192.168.1.1.\r\nEscape character is '^]'." (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  172. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  173. "ogin|sername"? (No Gate, RE only) gate=yes re=no
  174. "assword"? no
  175.  
  176.  
  177. expect: does "Trying 192.168.1.1...\r\nConnected to 192.168.1.1.\r\nEscape character is '^]'.\r\n" (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  178. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  179. "ogin|sername"? (No Gate, RE only) gate=yes re=no
  180. "assword"? no
  181.  
  182. BusyBox on localhost login:
  183. expect: does "Trying 192.168.1.1...\r\nConnected to 192.168.1.1.\r\nEscape character is '^]'.\r\n\r\nBusyBox on localhost login: " (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  184. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  185. "ogin|sername"? (No Gate, RE only) gate=yes re=yes
  186. expect: set expect_out(0,string) "ogin"
  187. expect: set expect_out(spawn_id) "exp6"
  188. expect: set expect_out(buffer) "Trying 192.168.1.1...\r\nConnected to 192.168.1.1.\r\nEscape character is '^]'.\r\n\r\nBusyBox on localhost login"
  189. send: sending "root\r" to { exp6 }
  190. expect: continuing expect
  191.  
  192. expect: does ": " (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  193. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  194. "ogin|sername"? (No Gate, RE only) gate=yes re=no
  195. "assword"? no
  196. root
  197.  
  198. expect: does ": root\r\n" (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  199. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  200. "ogin|sername"? (No Gate, RE only) gate=yes re=no
  201. "assword"? no
  202. Password:
  203. expect: does ": root\r\nPassword: " (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  204. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  205. "ogin|sername"? (No Gate, RE only) gate=yes re=no
  206. "assword"? yes
  207. expect: set expect_out(0,string) "assword"
  208. expect: set expect_out(spawn_id) "exp6"
  209. expect: set expect_out(buffer) ": root\r\nPassword"
  210. send: sending "admin\r" to { exp6 }
  211.  
  212. expect: does ": " (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  213. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  214. "cli>"? no
  215.  
  216.  
  217. expect: does ": \r\n" (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  218. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  219. "cli>"? no
  220. DSL Modem CLI
  221. Copyright (c) 2004 Texas Instruments, Inc.
  222. cli>
  223. expect: does ": \r\nDSL Modem CLI\r\nCopyright (c) 2004 Texas Instruments, Inc.\r\ncli> " (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  224. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  225. "cli>"? yes
  226. expect: set expect_out(0,string) "cli>"
  227. expect: set expect_out(spawn_id) "exp6"
  228. expect: set expect_out(buffer) ": \r\nDSL Modem CLI\r\nCopyright (c) 2004 Texas Instruments, Inc.\r\ncli>"
  229. send: sending "shell\n" to { exp6 }
  230. Gate keeper glob pattern for '#' is '#'. Activating booster.
  231.  
  232. expect: does " " (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  233. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  234. "#"? Gate "#"? gate=no
  235. shell
  236.  
  237. expect: does " shell\r\n" (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  238. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  239. "#"? Gate "#"? gate=no
  240.  
  241. Starting /bin/sh
  242. Type exit to return to the CLI
  243.  
  244.  
  245. BusyBox v0.61.pre (2007.07.19-01:54+0000) Built-in shell (ash)
  246. Enter 'help' for a list of built-in commands.
  247.  
  248. #
  249. expect: does " shell\r\n\r\r\nStarting /bin/sh\r\r\nType exit to return to the CLI\r\r\n\r\n\r\nBusyBox v0.61.pre (2007.07.19-01:54+0000) Built-in shell (ash)\r\nEnter 'help' for a list of built-in commands.\r\n\r\n# " (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
  250. "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
  251. "#"? Gate "#"? gate=yes re=yes
  252. expect: set expect_out(0,string) "#"
  253. expect: set expect_out(spawn_id) "exp6"
  254. expect: set expect_out(buffer) " shell\r\n\r\r\nStarting /bin/sh\r\r\nType exit to return to the CLI\r\r\n\r\n\r\nBusyBox v0.61.pre (2007.07.19-01:54+0000) Built-in shell (ash)\r\nEnter 'help' for a list of built-in commands.\r\n\r\n#"
  255. send: sending "help\r" to { exp6 }
  256. end processing host: 192.168.1.1
  257.  
  258. root@root:~/Desktop# ./cli.exp help
Add Comment
Please, Sign In to add comment