Advertisement
Guest User

Untitled

a guest
May 2nd, 2016
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.73 KB | None | 0 0
  1. ubuntu@ip-172-30-1-155:~/git/ebox-factory$ rex -d shellinabox
  2. [2016-05-02 11:18:37] DEBUG - This is Rex version: 1.4.0
  3. [2016-05-02 11:18:37] DEBUG - Command Line Parameters
  4. [2016-05-02 11:18:37] DEBUG - d = 1
  5. [2016-05-02 11:18:37] DEBUG - Creating lock-file (Rexfile.lock)
  6. [2016-05-02 11:18:37] DEBUG - Loading Rexfile
  7. [2016-05-02 11:18:37] DEBUG - Enabling task_chaining_cmdline_args feature
  8. [2016-05-02 11:18:37] DEBUG - Activating new template engine.
  9. [2016-05-02 11:18:37] DEBUG - Disabling usage of a tty
  10. [2016-05-02 11:18:37] DEBUG - Activating autodie.
  11. [2016-05-02 11:18:37] DEBUG - Using Net::OpenSSH if present.
  12. [2016-05-02 11:18:37] DEBUG - Add service check.
  13. [2016-05-02 11:18:37] DEBUG - Setting set() to not append data.
  14. [2016-05-02 11:18:37] DEBUG - Registering CMDB as template variables.
  15. [2016-05-02 11:18:37] DEBUG - activating featureset >= 0.51
  16. [2016-05-02 11:18:37] DEBUG - activating featureset >= 0.40
  17. [2016-05-02 11:18:37] DEBUG - activating featureset >= 0.35
  18. [2016-05-02 11:18:37] DEBUG - activating featureset >= 0.31
  19. [2016-05-02 11:18:37] DEBUG - Creating new distribution class of type: Base
  20. [2016-05-02 11:18:37] DEBUG - new distribution class of type Rex::TaskList::Base created.
  21. [2016-05-02 11:18:37] DEBUG - Returning existing distribution class of type: Rex::TaskList::Base
  22. [2016-05-02 11:18:37] DEBUG - Creating task: prepare
  23. [2016-05-02 11:18:37] DEBUG - Found Net::OpenSSH and Net::SFTP::Foreign - using it as default
  24. [2016-05-02 11:18:37] DEBUG - Registering task: prepare
  25. [2016-05-02 11:18:37] DEBUG - Returning existing distribution class of type: Rex::TaskList::Base
  26. [2016-05-02 11:18:37] DEBUG - Creating task: shellinabox
  27. [2016-05-02 11:18:37] DEBUG - Registering task: shellinabox
  28. [2016-05-02 11:18:37] DEBUG - Returning existing distribution class of type: Rex::TaskList::Base
  29. [2016-05-02 11:18:37] DEBUG - Creating task: get_installed
  30. [2016-05-02 11:18:37] DEBUG - Registering task: get_installed
  31. [2016-05-02 11:18:37] DEBUG - Returning existing distribution class of type: Rex::TaskList::Base
  32. [2016-05-02 11:18:37] DEBUG - Initializing Logger from parameters found in Rexfile
  33. [2016-05-02 11:18:37] DEBUG - Returning existing distribution class of type: Rex::TaskList::Base
  34. [2016-05-02 11:18:37] DEBUG - Returning existing distribution class of type: Rex::TaskList::Base
  35. [2016-05-02 11:18:37] INFO - Running task shellinabox on localhost
  36. [2016-05-02 11:18:37] DEBUG - Rex::Group::Entry::Server (private_key): returning /home/ubuntu/git/ebox-factory/keypairs/illy.pem
  37. [2016-05-02 11:18:37] DEBUG - Rex::Group::Entry::Server (public_key): returning /home/ubuntu/git/ebox-factory/keypairs/illy.pub
  38. [2016-05-02 11:18:37] DEBUG - $VAR1 = '';
  39.  
  40. [2016-05-02 11:18:37] DEBUG - Auth-Information inside Task:
  41. [2016-05-02 11:18:37] DEBUG - auth_type => [[key]]
  42. [2016-05-02 11:18:37] DEBUG - password => [[%s]]
  43. [2016-05-02 11:18:37] DEBUG - user => [[ubuntu]]
  44. [2016-05-02 11:18:37] DEBUG - sudo_password => [[]]
  45. [2016-05-02 11:18:37] DEBUG - sudo => [[]]
  46. [2016-05-02 11:18:37] DEBUG - private_key => [[/home/ubuntu/git/ebox-factory/keypairs/illy.pem]]
  47. [2016-05-02 11:18:37] DEBUG - public_key => [[/home/ubuntu/git/ebox-factory/keypairs/illy.pub]]
  48. [2016-05-02 11:18:37] DEBUG - port => [[]]
  49. [2016-05-02 11:18:37] DEBUG - Using Net::OpenSSH for connection
  50. [2016-05-02 11:18:37] DEBUG - Using user: ubuntu
  51. [2016-05-02 11:18:37] DEBUG - Using password: **********
  52. [2016-05-02 11:18:37] DEBUG - Connecting to localhost:22 (ubuntu)
  53. [2016-05-02 11:18:37] DEBUG - get_openssh_opt()
  54. [2016-05-02 11:18:37] DEBUG - $VAR1 = {};
  55.  
  56. [2016-05-02 11:18:37] DEBUG - OpenSSH: key_auth or not defined: localhost:22 - ubuntu
  57. [2016-05-02 11:18:37] DEBUG - OpenSSH options:
  58. [2016-05-02 11:18:37] DEBUG - $VAR1 = [
  59. 'localhost',
  60. 'user',
  61. 'ubuntu',
  62. 'port',
  63. 22,
  64. 'master_opts',
  65. [
  66. '-o',
  67. 'ConnectTimeout=2',
  68. '-o',
  69. 'LogLevel=QUIET'
  70. ],
  71. 'default_ssh_opts',
  72. $VAR1->[6]
  73. ];
  74.  
  75. [2016-05-02 11:18:37] DEBUG - OpenSSH constructor options:
  76. [2016-05-02 11:18:37] DEBUG - $VAR1 = {};
  77.  
  78. [2016-05-02 11:18:37] DEBUG - Trying following auth types:
  79. [2016-05-02 11:18:37] DEBUG - $VAR1 = [
  80. 'key',
  81. 'pass'
  82. ];
  83.  
  84. [2016-05-02 11:18:37] DEBUG - Current Error-Code: 0
  85. [2016-05-02 11:18:37] DEBUG - Connected and authenticated to localhost.
  86. [2016-05-02 11:18:37] DEBUG - Successfully authenticated on localhost.
  87. [2016-05-02 11:18:37] DEBUG - Executing: perl -MFile::Spec -le 'print File::Spec->tmpdir'
  88. [2016-05-02 11:18:37] DEBUG - Detecting shell...
  89. [2016-05-02 11:18:37] DEBUG - Searching for shell: sh
  90. [2016-05-02 11:18:37] DEBUG - Searching for shell: zsh
  91. [2016-05-02 11:18:37] DEBUG - Searching for shell: tcsh
  92. [2016-05-02 11:18:37] DEBUG - Searching for shell: ash
  93. [2016-05-02 11:18:37] DEBUG - Searching for shell: idrac
  94. [2016-05-02 11:18:37] DEBUG - Rex::Interface::Exec::OpenSSH/executing: version
  95. [2016-05-02 11:18:37] DEBUG - ========= ERR ============
  96. [2016-05-02 11:18:37] DEBUG - bash: version: command not found
  97.  
  98. [2016-05-02 11:18:37] DEBUG - ========= ERR ============
  99. [2016-05-02 11:18:37] DEBUG - Searching for shell: bash
  100. [2016-05-02 11:18:37] DEBUG - Found shell and using: bash
  101. [2016-05-02 11:18:37] DEBUG - Shell/Bash: Got options:
  102. [2016-05-02 11:18:37] DEBUG - $VAR1 = {};
  103.  
  104. [2016-05-02 11:18:37] DEBUG - SSH/executing: LC_ALL=C ; export LC_ALL; perl -MFile::Spec -le 'print File::Spec->tmpdir'
  105. [2016-05-02 11:18:37] DEBUG - /tmp
  106.  
  107. [2016-05-02 11:18:37] DEBUG - Executing: which perl
  108. [2016-05-02 11:18:37] DEBUG - Detecting shell...
  109. [2016-05-02 11:18:37] DEBUG - Found shell in cache: bash
  110. [2016-05-02 11:18:37] DEBUG - Shell/Bash: Got options:
  111. [2016-05-02 11:18:37] DEBUG - $VAR1 = {};
  112.  
  113. [2016-05-02 11:18:37] DEBUG - SSH/executing: LC_ALL=C ; export LC_ALL; PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/pkg/bin:/usr/pkg/sbin; export PATH; which perl
  114. [2016-05-02 11:18:37] DEBUG - /usr/bin/perl
  115.  
  116. [2016-05-02 11:18:37] DEBUG - Executing shellinabox
  117. UPTO 1
  118. [2016-05-02 11:18:37] DEBUG - Calculating checksum (MD5) of /tmp/shellinabox.deb
  119. [2016-05-02 11:18:37] DEBUG - Executing: perl -MDigest::MD5 -e 'open my $fh, "<", $ARGV[0] or die "Cannot open " . $ARGV[0]; binmode $fh; print Digest::MD5->new->addfile($fh)->hexdigest;' '/tmp/shellinabox.deb'
  120. [2016-05-02 11:18:37] DEBUG - Detecting shell...
  121. [2016-05-02 11:18:37] DEBUG - Found shell in cache: bash
  122. [2016-05-02 11:18:37] DEBUG - Shell/Bash: Got options:
  123. [2016-05-02 11:18:37] DEBUG - $VAR1 = {};
  124.  
  125. [2016-05-02 11:18:37] DEBUG - SSH/executing: LC_ALL=C ; export LC_ALL; PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/pkg/bin:/usr/pkg/sbin; export PATH; perl -MDigest::MD5 -e 'open my $fh, "<", $ARGV[0] or die "Cannot open " . $ARGV[0]; binmode $fh; print Digest::MD5->new->addfile($fh)->hexdigest;' '/tmp/shellinabox.deb'
  126. [2016-05-02 11:18:37] DEBUG - 336a28f643dd933394cf972dca40d364
  127. [2016-05-02 11:18:37] DEBUG - MD5 checksum of /tmp/shellinabox.deb: 336a28f643dd933394cf972dca40d364
  128. [2016-05-02 11:18:37] DEBUG - Calculating checksum (MD5) of deb/shellinabox_2.19_amd64.deb
  129. [2016-05-02 11:18:37] DEBUG - Executing: export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/pkg/bin:/usr/pkg/sbin ; LC_ALL=C perl -MDigest::MD5 -e 'open my $fh, "<", $ARGV[0] or die "Cannot open " . $ARGV[0]; binmode $fh; print Digest::MD5->new->addfile($fh)->hexdigest;' 'deb/shellinabox_2.19_amd64.deb'
  130. [2016-05-02 11:18:37] DEBUG - 336a28f643dd933394cf972dca40d364
  131. [2016-05-02 11:18:37] DEBUG - MD5 checksum of deb/shellinabox_2.19_amd64.deb: 336a28f643dd933394cf972dca40d364
  132. [2016-05-02 11:18:37] DEBUG - Connections in queue: 2
  133. [2016-05-02 11:18:37] DEBUG - Calculating checksum (MD5) of /tmp/shellinabox.deb
  134. [2016-05-02 11:18:37] DEBUG - Executing: perl -MDigest::MD5 -e 'open my $fh, "<", $ARGV[0] or die "Cannot open " . $ARGV[0]; binmode $fh; print Digest::MD5->new->addfile($fh)->hexdigest;' '/tmp/shellinabox.deb'
  135. [2016-05-02 11:18:37] DEBUG - Detecting shell...
  136. [2016-05-02 11:18:37] DEBUG - Found shell in cache: bash
  137. [2016-05-02 11:18:37] DEBUG - Shell/Bash: Got options:
  138. [2016-05-02 11:18:37] DEBUG - $VAR1 = {};
  139.  
  140. [2016-05-02 11:18:37] DEBUG - SSH/executing: LC_ALL=C ; export LC_ALL; PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/pkg/bin:/usr/pkg/sbin; export PATH; perl -MDigest::MD5 -e 'open my $fh, "<", $ARGV[0] or die "Cannot open " . $ARGV[0]; binmode $fh; print Digest::MD5->new->addfile($fh)->hexdigest;' '/tmp/shellinabox.deb'
  141. [2016-05-02 11:18:37] DEBUG - 336a28f643dd933394cf972dca40d364
  142. [2016-05-02 11:18:37] DEBUG - MD5 checksum of /tmp/shellinabox.deb: 336a28f643dd933394cf972dca40d364
  143. [2016-05-02 11:18:37] DEBUG - local md5 and remote md5 are the same: 336a28f643dd933394cf972dca40d364 eq 336a28f643dd933394cf972dca40d364. Not uploading.
  144. UPTO 2
  145. [2016-05-02 11:18:37] DEBUG - Rex::Group::Entry::Server (private_key): returning /home/ubuntu/git/ebox-factory/keypairs/illy.pem
  146. [2016-05-02 11:18:37] DEBUG - Rex::Group::Entry::Server (public_key): returning /home/ubuntu/git/ebox-factory/keypairs/illy.pub
  147. [2016-05-02 11:18:37] DEBUG - Sudo: Executing: dpkg -i /tmp/shellinabox.deb
  148. [2016-05-02 11:18:37] DEBUG - Shell/Bash: Got options:
  149. [2016-05-02 11:18:37] DEBUG - $VAR1 = {
  150. 'prepend_command' => 'sudo -p \'\' -S',
  151. 'command' => 'dpkg -i /tmp/shellinabox.deb',
  152. 'auto_die' => undef
  153. };
  154.  
  155. [2016-05-02 11:18:37] DEBUG - sudo: exec: sudo -p '' -S sh -c "LC_ALL=C ; export LC_ALL; PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/pkg/bin:/usr/pkg/sbin; export PATH; dpkg -i /tmp/shellinabox.deb "
  156. [2016-05-02 11:18:37] DEBUG - Rex::Interface::Exec::OpenSSH/executing: sudo -p '' -S sh -c "LC_ALL=C ; export LC_ALL; PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/pkg/bin:/usr/pkg/sbin; export PATH; dpkg -i /tmp/shellinabox.deb "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement