Advertisement
infected_

Untitled

Aug 2nd, 2017
703
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.61 KB | None | 0 0
  1. infected_@infected-labs ~ $ ssh 52.174.187.246
  2. The authenticity of host '52.174.187.246 (52.174.187.246)' can't be established.
  3. ECDSA key fingerprint is SHA256:6tnVccB+/IiRZaILewX97Z7igB+pmIpmMamR2ts8B+A.
  4. Are you sure you want to continue connecting (yes/no)? y
  5. Please type 'yes' or 'no': yes
  6. Warning: Permanently added '52.174.187.246' (ECDSA) to the list of known hosts.
  7. infected_@52.174.187.246's password:
  8. Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-87-generic x86_64)
  9.  
  10. * Documentation: https://help.ubuntu.com
  11. * Management: https://landscape.canonical.com
  12. * Support: https://ubuntu.com/advantage
  13.  
  14. Get cloud support with Ubuntu Advantage Cloud Guest:
  15. http://www.ubuntu.com/business/services/cloud
  16.  
  17. 0 packages can be updated.
  18. 0 updates are security updates.
  19.  
  20.  
  21.  
  22. The programs included with the Ubuntu system are free software;
  23. the exact distribution terms for each program are described in the
  24. individual files in /usr/share/doc/*/copyright.
  25.  
  26. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
  27. applicable law.
  28.  
  29. To run a command as administrator (user "root"), use "sudo <command>".
  30. See "man sudo_root" for details.
  31.  
  32. -bash: warning: setlocale: LC_CTYPE: cannot change locale (pt_PT.UTF-8): No such file or directory
  33. _____________________________________________________________________
  34. WARNING! Your environment specifies an invalid locale.
  35. The unknown environment variables are:
  36. LC_CTYPE=pt_PT.UTF-8 LC_ALL=
  37. This can affect your user experience significantly, including the
  38. ability to manage packages. You may install the locales by running:
  39.  
  40. sudo apt-get install language-pack-pt
  41. or
  42. sudo locale-gen pt_PT.UTF-8
  43.  
  44. To see all available language packs, run:
  45. apt-cache search "^language-pack-[a-z][a-z]$"
  46. To disable this message for all users, run:
  47. sudo touch /var/lib/cloud/instance/locale-check.skip
  48. _____________________________________________________________________
  49.  
  50. infected_@infectedlabs-vps:~$ ls
  51. infected_@infectedlabs-vps:~$ cd /m
  52. media/ mnt/
  53. infected_@infectedlabs-vps:~$ cd /mnt/
  54. infected_@infectedlabs-vps:/mnt$ ls
  55. DATALOSS_WARNING_README.txt lost+found
  56. infected_@infectedlabs-vps:/mnt$ df
  57. Filesystem 1K-blocks Used Available Use% Mounted on
  58. udev 8187560 0 8187560 0% /dev
  59. tmpfs 1641520 8800 1632720 1% /run
  60. /dev/sda1 30428648 1413672 28998592 5% /
  61. tmpfs 8207580 0 8207580 0% /dev/shm
  62. tmpfs 5120 0 5120 0% /run/lock
  63. tmpfs 8207580 0 8207580 0% /sys/fs/cgroup
  64. /dev/sdb1 32895792 49084 31152660 1% /mnt
  65. tmpfs 1641520 0 1641520 0% /run/user/1000
  66. infected_@infectedlabs-vps:/mnt$ mkdir lineageos
  67. mkdir: cannot create directory 'lineageos': Permission denied
  68. infected_@infectedlabs-vps:/mnt$ ls
  69. DATALOSS_WARNING_README.txt lost+found
  70. infected_@infectedlabs-vps:/mnt$ lsdisks
  71. lsdisks: command not found
  72. infected_@infectedlabs-vps:/mnt$ exit
  73. logout
  74. Connection to 52.174.187.246 closed.
  75. infected_@infected-labs ~ $ ssh 52.174.187.246
  76. infected_@52.174.187.246's password:
  77. Permission denied, please try again.
  78. infected_@52.174.187.246's password:
  79. Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-87-generic x86_64)
  80.  
  81. * Documentation: https://help.ubuntu.com
  82. * Management: https://landscape.canonical.com
  83. * Support: https://ubuntu.com/advantage
  84.  
  85. Get cloud support with Ubuntu Advantage Cloud Guest:
  86. http://www.ubuntu.com/business/services/cloud
  87.  
  88. 0 packages can be updated.
  89. 0 updates are security updates.
  90.  
  91.  
  92. Last login: Wed Aug 2 05:20:05 2017 from 94.63.118.131
  93. To run a command as administrator (user "root"), use "sudo <command>".
  94. See "man sudo_root" for details.
  95.  
  96. -bash: warning: setlocale: LC_CTYPE: cannot change locale (pt_PT.UTF-8): No such file or directory
  97. infected_@infectedlabs-vps:~$ lsblk
  98. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
  99. fd0 2:0 1 4K 0 disk
  100. sda 8:0 0 30G 0 disk
  101. `-sda1 8:1 0 30G 0 part /
  102. sdb 8:16 0 32G 0 disk
  103. `-sdb1 8:17 0 32G 0 part /mnt
  104. sdc 8:32 0 1023G 0 disk
  105. sr0 11:0 1 1.1M 0 rom
  106. infected_@infectedlabs-vps:~$ sudo mkdir /mnt/Storage
  107. infected_@infectedlabs-vps:~$ sudo mount /dev/sdc /mnt/Storage
  108. mount: wrong fs type, bad option, bad superblock on /dev/sdc,
  109. missing codepage or helper program, or other error
  110.  
  111. In some cases useful info is found in syslog - try
  112. dmesg | tail or so.
  113. infected_@infectedlabs-vps:~$ sudo fdisk /dev/sdc
  114.  
  115. Welcome to fdisk (util-linux 2.27.1).
  116. Changes will remain in memory only, until you decide to write them.
  117. Be careful before using the write command.
  118.  
  119. Device does not contain a recognized partition table.
  120. Created a new DOS disklabel with disk identifier 0x44b4c469.
  121.  
  122. Command (m for help): d
  123. No partition is defined yet!
  124. Could not delete partition 1
  125.  
  126. Command (m for help): p
  127.  
  128. Disk /dev/sdc: 1023 GiB, 1098437885952 bytes, 2145386496 sectors
  129. Units: sectors of 1 * 512 = 512 bytes
  130. Sector size (logical/physical): 512 bytes / 4096 bytes
  131. I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  132. Disklabel type: dos
  133. Disk identifier: 0x44b4c469
  134.  
  135. Command (m for help): 1
  136. 1: unknown command
  137.  
  138. Command (m for help): m
  139.  
  140. Help:
  141.  
  142. DOS (MBR)
  143. a toggle a bootable flag
  144. b edit nested BSD disklabel
  145. c toggle the dos compatibility flag
  146.  
  147. Generic
  148. d delete a partition
  149. F list free unpartitioned space
  150. l list known partition types
  151. n add a new partition
  152. p print the partition table
  153. t change a partition type
  154. v verify the partition table
  155. i print information about a partition
  156.  
  157. Misc
  158. m print this menu
  159. u change display/entry units
  160. x extra functionality (experts only)
  161.  
  162. Script
  163. I load disk layout from sfdisk script file
  164. O dump disk layout to sfdisk script file
  165.  
  166. Save & Exit
  167. w write table to disk and exit
  168. q quit without saving changes
  169.  
  170. Create a new label
  171. g create a new empty GPT partition table
  172. G create a new empty SGI (IRIX) partition table
  173. o create a new empty DOS partition table
  174. s create a new empty Sun partition table
  175.  
  176.  
  177. Command (m for help): d
  178. No partition is defined yet!
  179. Could not delete partition 1
  180.  
  181. Command (m for help): n
  182. Partition type
  183. p primary (0 primary, 0 extended, 4 free)
  184. e extended (container for logical partitions)
  185. Select (default p): p
  186. Partition number (1-4, default 1):
  187. First sector (2048-2145386495, default 2048):
  188. Last sector, +sectors or +size{K,M,G,T,P} (2048-2145386495, default 2145386495):
  189.  
  190. Created a new partition 1 of type 'Linux' and of size 1023 GiB.
  191.  
  192. Command (m for help): w
  193. The partition table has been altered.
  194. Calling ioctl() to re-read partition table.
  195. Syncing disks.
  196.  
  197. infected_@infectedlabs-vps:~$ sudo mount /dev/sdc /mnt/Storage
  198. mount: wrong fs type, bad option, bad superblock on /dev/sdc,
  199. missing codepage or helper program, or other error
  200.  
  201. In some cases useful info is found in syslog - try
  202. dmesg | tail or so.
  203. infected_@infectedlabs-vps:~$ lsblk
  204. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
  205. fd0 2:0 1 4K 0 disk
  206. sda 8:0 0 30G 0 disk
  207. `-sda1 8:1 0 30G 0 part /
  208. sdb 8:16 0 32G 0 disk
  209. `-sdb1 8:17 0 32G 0 part /mnt
  210. sdc 8:32 0 1023G 0 disk
  211. `-sdc1 8:33 0 1023G 0 part
  212. sr0 11:0 1 1.1M 0 rom
  213. infected_@infectedlabs-vps:~$ sudo mount /dev/sdc1 /mnt/Storage
  214. mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
  215. missing codepage or helper program, or other error
  216.  
  217. In some cases useful info is found in syslog - try
  218. dmesg | tail or so.
  219. infected_@infectedlabs-vps:~$ sudo mkfs.ext4 /dev/sdc1
  220. mke2fs 1.42.13 (17-May-2015)
  221. Discarding device blocks: done
  222. Creating filesystem with 268173056 4k blocks and 67043328 inodes
  223. Filesystem UUID: a37023c2-2638-407d-9037-365e8de9cb75
  224. Superblock backups stored on blocks:
  225. 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
  226. 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
  227. 102400000, 214990848
  228.  
  229. Allocating group tables: done
  230. Writing inode tables: done
  231. Creating journal (32768 blocks): done
  232. Writing superblocks and filesystem accounting information: done
  233.  
  234. infected_@infectedlabs-vps:~$ sudo mount /dev/sdc1 /mnt/Storage
  235. infected_@infectedlabs-vps:~$ cd /mnt/Storage/
  236. infected_@infectedlabs-vps:/mnt/Storage$ mkdir aosp
  237. mkdir: cannot create directory 'aosp': Permission denied
  238. infected_@infectedlabs-vps:/mnt/Storage$ cd ..
  239. infected_@infectedlabs-vps:/mnt$ sudo chown -hR infected_ Storage/
  240. infected_@infectedlabs-vps:/mnt$ cd /mnt/Storage/
  241. infected_@infectedlabs-vps:/mnt/Storage$ mkdir aosp
  242. infected_@infectedlabs-vps:/mnt/Storage$ cd aosp
  243. infected_@infectedlabs-vps:/mnt/Storage/aosp$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement