Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@root:~/Desktop# ./cli.exp help
- expect version 5.44.1.14
- argv[0] = /usr/bin/expect argv[1] = -df argv[2] = ./cli.exp argv[3] = help
- set argc 1
- set argv0 "./cli.exp"
- set argv "help"
- executing commands from command file ./cli.exp
- telnet to this host: 192.168.1.1
- spawn telnet 192.168.1.1
- parent: waiting for sync byte
- parent: telling child to go ahead
- parent: now unsynchronized from child
- spawn: returns {3196}
- Gate keeper glob pattern for 'Bad username|Login incorrect' is ''. Not usable, disabling the performance booster.
- Gate keeper glob pattern for 'Unable to connect to remote host|Connection closed by foreign host' is ''. Not usable, disabling the performance booster.
- Gate keeper glob pattern for 'ogin|sername' is ''. Not usable, disabling the performance booster.
- expect: does "" (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "ogin|sername"? (No Gate, RE only) gate=yes re=no
- "assword"? no
- Trying 192.168.1.1...
- 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
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "ogin|sername"? (No Gate, RE only) gate=yes re=no
- "assword"? no
- 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
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "ogin|sername"? (No Gate, RE only) gate=yes re=no
- "assword"? no
- Connected to 192.168.1.1.
- Escape character is '^]'.
- 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
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "ogin|sername"? (No Gate, RE only) gate=yes re=no
- "assword"? no
- BusyBox on localhost login:
- 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
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "ogin|sername"? (No Gate, RE only) gate=yes re=yes
- expect: set expect_out(0,string) "ogin"
- expect: set expect_out(spawn_id) "exp6"
- 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"
- send: sending "root\r" to { exp6 }
- expect: continuing expect
- expect: does ": " (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "ogin|sername"? (No Gate, RE only) gate=yes re=no
- "assword"? no
- root
- expect: does ": root\r\n" (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "ogin|sername"? (No Gate, RE only) gate=yes re=no
- "assword"? no
- Password:
- expect: does ": root\r\nPassword: " (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "ogin|sername"? (No Gate, RE only) gate=yes re=no
- "assword"? yes
- expect: set expect_out(0,string) "assword"
- expect: set expect_out(spawn_id) "exp6"
- expect: set expect_out(buffer) ": root\r\nPassword"
- send: sending "admin\r" to { exp6 }
- expect: does ": " (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "cli>"? no
- expect: does ": \r\n" (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "cli>"? no
- DSL Modem CLI
- Copyright (c) 2004 Texas Instruments, Inc.
- cli>
- 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
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "cli>"? yes
- expect: set expect_out(0,string) "cli>"
- expect: set expect_out(spawn_id) "exp6"
- expect: set expect_out(buffer) ": \r\nDSL Modem CLI\r\nCopyright (c) 2004 Texas Instruments, Inc.\r\ncli>"
- send: sending "shell\n" to { exp6 }
- Gate keeper glob pattern for '#' is '#'. Activating booster.
- expect: does " " (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "#"? Gate "#"? gate=no
- s
- expect: does " s" (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "#"? Gate "#"? gate=no
- hell
- Starting /bin/sh
- Type exit to return to the CLI
- 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
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "#"? Gate "#"? gate=no
- BusyBox v0.61.pre (2007.07.19-01:54+0000) Built-in shell (ash)
- 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
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "#"? Gate "#"? gate=no
- Enter 'help' for a list of built-in commands.
- #
- 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
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "#"? Gate "#"? gate=yes re=yes
- expect: set expect_out(0,string) "#"
- expect: set expect_out(spawn_id) "exp6"
- 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#"
- send: sending "help\r" to { exp6 }
- end processing host: 192.168.1.1
- root@root:~/Desktop# clear
- root@root:~/Desktop# ./cli.exp help
- expect version 5.44.1.14
- argv[0] = /usr/bin/expect argv[1] = -df argv[2] = ./cli.exp argv[3] = help
- set argc 1
- set argv0 "./cli.exp"
- set argv "help"
- executing commands from command file ./cli.exp
- telnet to this host: 192.168.1.1
- spawn telnet 192.168.1.1
- parent: waiting for sync byte
- parent: telling child to go ahead
- parent: now unsynchronized from child
- spawn: returns {3213}
- Gate keeper glob pattern for 'Bad username|Login incorrect' is ''. Not usable, disabling the performance booster.
- Gate keeper glob pattern for 'Unable to connect to remote host|Connection closed by foreign host' is ''. Not usable, disabling the performance booster.
- Gate keeper glob pattern for 'ogin|sername' is ''. Not usable, disabling the performance booster.
- expect: does "" (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "ogin|sername"? (No Gate, RE only) gate=yes re=no
- "assword"? no
- Trying 192.168.1.1...
- 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
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "ogin|sername"? (No Gate, RE only) gate=yes re=no
- "assword"? no
- 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
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "ogin|sername"? (No Gate, RE only) gate=yes re=no
- "assword"? no
- Connected to 192.168.1.1.
- 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
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "ogin|sername"? (No Gate, RE only) gate=yes re=no
- "assword"? no
- 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
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "ogin|sername"? (No Gate, RE only) gate=yes re=no
- "assword"? no
- Escape character is '^]'.
- 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
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "ogin|sername"? (No Gate, RE only) gate=yes re=no
- "assword"? no
- 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
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "ogin|sername"? (No Gate, RE only) gate=yes re=no
- "assword"? no
- BusyBox on localhost login:
- 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
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "ogin|sername"? (No Gate, RE only) gate=yes re=yes
- expect: set expect_out(0,string) "ogin"
- expect: set expect_out(spawn_id) "exp6"
- 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"
- send: sending "root\r" to { exp6 }
- expect: continuing expect
- expect: does ": " (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "ogin|sername"? (No Gate, RE only) gate=yes re=no
- "assword"? no
- root
- expect: does ": root\r\n" (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "ogin|sername"? (No Gate, RE only) gate=yes re=no
- "assword"? no
- Password:
- expect: does ": root\r\nPassword: " (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "ogin|sername"? (No Gate, RE only) gate=yes re=no
- "assword"? yes
- expect: set expect_out(0,string) "assword"
- expect: set expect_out(spawn_id) "exp6"
- expect: set expect_out(buffer) ": root\r\nPassword"
- send: sending "admin\r" to { exp6 }
- expect: does ": " (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "cli>"? no
- expect: does ": \r\n" (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "cli>"? no
- DSL Modem CLI
- Copyright (c) 2004 Texas Instruments, Inc.
- cli>
- 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
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "cli>"? yes
- expect: set expect_out(0,string) "cli>"
- expect: set expect_out(spawn_id) "exp6"
- expect: set expect_out(buffer) ": \r\nDSL Modem CLI\r\nCopyright (c) 2004 Texas Instruments, Inc.\r\ncli>"
- send: sending "shell\n" to { exp6 }
- Gate keeper glob pattern for '#' is '#'. Activating booster.
- expect: does " " (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "#"? Gate "#"? gate=no
- shell
- expect: does " shell\r\n" (spawn_id exp6) match regular expression "Bad username|Login incorrect"? (No Gate, RE only) gate=yes re=no
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "#"? Gate "#"? gate=no
- Starting /bin/sh
- Type exit to return to the CLI
- BusyBox v0.61.pre (2007.07.19-01:54+0000) Built-in shell (ash)
- Enter 'help' for a list of built-in commands.
- #
- 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
- "Unable to connect to remote host|Connection closed by foreign host"? (No Gate, RE only) gate=yes re=no
- "#"? Gate "#"? gate=yes re=yes
- expect: set expect_out(0,string) "#"
- expect: set expect_out(spawn_id) "exp6"
- 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#"
- send: sending "help\r" to { exp6 }
- end processing host: 192.168.1.1
- root@root:~/Desktop# ./cli.exp help
Add Comment
Please, Sign In to add comment