Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2016
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.81 KB | None | 0 0
  1. login as: root
  2. root@13922.s.time4vps.eu's password:
  3. Linux 13922 2.6.32-042stab108.8 #1 SMP Wed Jul 22 17:23:23 MSK 2015 x86_64
  4.  
  5. The programs included with the Debian GNU/Linux system are free software;
  6. the exact distribution terms for each program are described in the
  7. individual files in /usr/share/doc/*/copyright.
  8.  
  9. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  10. permitted by applicable law.
  11. Last login: Sat Jan 23 01:09:12 2016 from kyp0.kyla.fi
  12. root@13922:~# apt-get update
  13. Hit http://security.debian.org wheezy/updates Release.gpg
  14. Hit http://security.debian.org wheezy/updates Release
  15. Hit http://debian.mirror.serveriai.lt wheezy Release.gpg
  16. Hit http://debian.mirror.serveriai.lt wheezy Release
  17. Hit http://security.debian.org wheezy/updates/main amd64 Packages
  18. Hit http://debian.mirror.serveriai.lt wheezy/main amd64 Packages
  19. Hit http://debian.mirror.serveriai.lt wheezy/contrib amd64 Packages
  20. Hit http://debian.mirror.serveriai.lt wheezy/non-free amd64 Packages
  21. Hit http://debian.mirror.serveriai.lt wheezy/main i386 Packages
  22. Hit http://debian.mirror.serveriai.lt wheezy/contrib i386 Packages
  23. Hit http://debian.mirror.serveriai.lt wheezy/non-free i386 Packages
  24. Hit http://debian.mirror.serveriai.lt wheezy/contrib Translation-en
  25. Hit http://debian.mirror.serveriai.lt wheezy/main Translation-en
  26. Hit http://debian.mirror.serveriai.lt wheezy/non-free Translation-en
  27. Hit http://security.debian.org wheezy/updates/contrib amd64 Packages
  28. Hit http://security.debian.org wheezy/updates/non-free amd64 Packages
  29. Hit http://security.debian.org wheezy/updates/main i386 Packages
  30. Hit http://security.debian.org wheezy/updates/contrib i386 Packages
  31. Hit http://security.debian.org wheezy/updates/non-free i386 Packages
  32. Hit http://security.debian.org wheezy/updates/contrib Translation-en
  33. Hit http://security.debian.org wheezy/updates/main Translation-en
  34. Hit http://security.debian.org wheezy/updates/non-free Translation-en
  35. Reading package lists... Done
  36. root@13922:~# apache2
  37. apache2: bad user name ${APACHE_RUN_USER}
  38. root@13922:~# vim /var/log/apache2/access.log
  39. root@13922:~# ifconfig eth0 | grep inet | awk '{ print $2 }'
  40. eth0: error fetching interface information: Device not found
  41. root@13922:~# apt-get install mysql-server
  42. Reading package lists... Done
  43. Building dependency tree
  44. Reading state information... Done
  45. The following extra packages will be installed:
  46. libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18 mysql-client-5.5 mysql-common mysql-server-5.5 mysql-server-core-5.5
  47. Suggested packages:
  48. libipc-sharedcache-perl libterm-readkey-perl tinyca
  49. The following NEW packages will be installed:
  50. libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18 mysql-client-5.5 mysql-common mysql-server mysql-server-5.5 mysql-server-core-
  51. 0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
  52. Need to get 8985 kB of archives.
  53. After this operation, 96.8 MB of additional disk space will be used.
  54. Do you want to continue [Y/n]? y
  55. Get:1 http://debian.mirror.serveriai.lt/debian/ wheezy/main libaio1 amd64 0.3.109-3 [9150 B]
  56. Get:2 http://debian.mirror.serveriai.lt/debian/ wheezy/main libdbi-perl amd64 1.622-1+deb7u1 [892 kB]
  57. Get:3 http://debian.mirror.serveriai.lt/debian/ wheezy/main libdbd-mysql-perl amd64 4.021-1+b1 [126 kB]
  58. Get:4 http://debian.mirror.serveriai.lt/debian/ wheezy/main libhtml-template-perl all 2.91-1 [72.0 kB]
  59. Get:5 http://security.debian.org/ wheezy/updates/main mysql-common all 5.5.46-0+deb7u1 [84.8 kB]
  60. Get:6 http://security.debian.org/ wheezy/updates/main libmysqlclient18 amd64 5.5.46-0+deb7u1 [691 kB]
  61. Get:7 http://security.debian.org/ wheezy/updates/main mysql-client-5.5 amd64 5.5.46-0+deb7u1 [1739 kB]
  62. Get:8 http://security.debian.org/ wheezy/updates/main mysql-server-core-5.5 amd64 5.5.46-0+deb7u1 [3445 kB]
  63. Get:9 http://security.debian.org/ wheezy/updates/main mysql-server-5.5 amd64 5.5.46-0+deb7u1 [1843 kB]
  64. Get:10 http://security.debian.org/ wheezy/updates/main mysql-server all 5.5.46-0+deb7u1 [83.0 kB]
  65. Fetched 8985 kB in 0s (11.9 MB/s)
  66. Preconfiguring packages ...
  67. Package configuration
  68. qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91. lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqConfiguring mysql-server-5.5qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
  92. x While not mandatory, it is highly recommended that you set a password for the MySQL administrative "root" user.
  93. x
  94. x If this field is left blank, the password will not be changed.
  95. x
  96. x New password for the MySQL "root" user:
  97. x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
  98. x x
  99. tqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
  100. x < OK >
  101. mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127. Selecting previously unselected package libaio1:amd64.
  128. (Reading database ... 29915 files and directories currently installed.)
  129. Unpacking libaio1:amd64 (from .../libaio1_0.3.109-3_amd64.deb) ...
  130. Selecting previously unselected package mysql-common.
  131. Unpacking mysql-common (from .../mysql-common_5.5.46-0+deb7u1_all.deb) ...
  132. Selecting previously unselected package libmysqlclient18:amd64.
  133. Unpacking libmysqlclient18:amd64 (from .../libmysqlclient18_5.5.46-0+deb7u1_amd64.deb) ...
  134. Selecting previously unselected package libdbi-perl.
  135. Unpacking libdbi-perl (from .../libdbi-perl_1.622-1+deb7u1_amd64.deb) ...
  136. Selecting previously unselected package libdbd-mysql-perl.
  137. Unpacking libdbd-mysql-perl (from .../libdbd-mysql-perl_4.021-1+b1_amd64.deb) ...
  138. Selecting previously unselected package mysql-client-5.5.
  139. Unpacking mysql-client-5.5 (from .../mysql-client-5.5_5.5.46-0+deb7u1_amd64.deb) ...
  140. Selecting previously unselected package mysql-server-core-5.5.
  141. Unpacking mysql-server-core-5.5 (from .../mysql-server-core-5.5_5.5.46-0+deb7u1_amd64.deb) ...
  142. Processing triggers for man-db ...
  143. Setting up mysql-common (5.5.46-0+deb7u1) ...
  144. Selecting previously unselected package mysql-server-5.5.
  145. (Reading database ... 30265 files and directories currently installed.)
  146. Unpacking mysql-server-5.5 (from .../mysql-server-5.5_5.5.46-0+deb7u1_amd64.deb) ...
  147. Package configuration
  148. qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171. lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqConfiguring mysql-server-5.5qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
  172. x While not mandatory, it is highly recommended that you set a password for the MySQL administrative "root" user.
  173. x
  174. x If this field is left blank, the password will not be changed.
  175. x
  176. x New password for the MySQL "root" user:
  177. x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
  178. x x
  179. tqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
  180. x < OK >
  181. mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207. Selecting previously unselected package libhtml-template-perl.
  208. Unpacking libhtml-template-perl (from .../libhtml-template-perl_2.91-1_all.deb) ...
  209. Selecting previously unselected package mysql-server.
  210. Unpacking mysql-server (from .../mysql-server_5.5.46-0+deb7u1_all.deb) ...
  211. Processing triggers for man-db ...
  212. Setting up libaio1:amd64 (0.3.109-3) ...
  213. Setting up libmysqlclient18:amd64 (5.5.46-0+deb7u1) ...
  214. Setting up libdbi-perl (1.622-1+deb7u1) ...
  215. Setting up libdbd-mysql-perl (4.021-1+b1) ...
  216. Setting up mysql-client-5.5 (5.5.46-0+deb7u1) ...
  217. Setting up mysql-server-core-5.5 (5.5.46-0+deb7u1) ...
  218. Setting up mysql-server-5.5 (5.5.46-0+deb7u1) ...
  219. Package configuration
  220. qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243. lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqConfiguring mysql-server-5.5qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
  244. x While not mandatory, it is highly recommended that you set a password for the MySQL administrative "root" user.
  245. x
  246. x If this field is left blank, the password will not be changed.
  247. x
  248. x New password for the MySQL "root" user:
  249. x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
  250. x x
  251. tqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
  252. x < OK >
  253. mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279. [ ok ] Stopping MySQL database server: mysqld.
  280. [ ok ] Starting MySQL database server: mysqld ..
  281. [info] Checking for tables which need an upgrade, are corrupt or were
  282. not closed cleanly..
  283. Setting up libhtml-template-perl (2.91-1) ...
  284. Setting up mysql-server (5.5.46-0+deb7u1) ...
  285. root@13922:~# mysql_secure_installation
  286.  
  287.  
  288.  
  289.  
  290. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
  291. SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
  292.  
  293.  
  294. In order to log into MySQL to secure it, we'll need the current
  295. password for the root user. If you've just installed MySQL, and
  296. you haven't set the root password yet, the password will be blank,
  297. so you should just press enter here.
  298.  
  299. Enter current password for root (enter for none):
  300. ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
  301. Enter current password for root (enter for none):
  302. ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
  303. Enter current password for root (enter for none):
  304. OK, successfully used password, moving on...
  305.  
  306. Setting the root password ensures that nobody can log into the MySQL
  307. root user without the proper authorisation.
  308.  
  309. Set root password? [Y/n] y
  310. New password:
  311. Re-enter new password:
  312. Password updated successfully!
  313. Reloading privilege tables..
  314. ... Success!
  315.  
  316.  
  317. By default, a MySQL installation has an anonymous user, allowing anyone
  318. to log into MySQL without having to have a user account created for
  319. them. This is intended only for testing, and to make the installation
  320. go a bit smoother. You should remove them before moving into a
  321. production environment.
  322.  
  323. Remove anonymous users? [Y/n] y
  324. ... Success!
  325.  
  326. Normally, root should only be allowed to connect from 'localhost'. This
  327. ensures that someone cannot guess at the root password from the network.
  328.  
  329. Disallow root login remotely? [Y/n] y
  330. ... Success!
  331.  
  332. By default, MySQL comes with a database named 'test' that anyone can
  333. access. This is also intended only for testing, and should be removed
  334. before moving into a production environment.
  335.  
  336. Remove test database and access to it? [Y/n] y
  337. - Dropping test database...
  338. ERROR 1008 (HY000) at line 1: Can't drop database 'test'; database doesn't exist
  339. ... Failed! Not critical, keep moving...
  340. - Removing privileges on test database...
  341. ... Success!
  342.  
  343. Reloading the privilege tables will ensure that all changes made so far
  344. will take effect immediately.
  345.  
  346. Reload privilege tables now? [Y/n] y
  347. ... Success!
  348.  
  349. Cleaning up...
  350.  
  351.  
  352.  
  353. All done! If you've completed all of the above steps, your MySQL
  354. installation should now be secure.
  355.  
  356. Thanks for using MySQL!
  357.  
  358.  
  359. root@13922:~# apt-get install php5 php-pear php5-mysql
  360. Reading package lists... Done
  361. Building dependency tree
  362. Reading state information... Done
  363. The following extra packages will be installed:
  364. libapache2-mod-php5 libonig2 libqdbm14 php5-cli php5-common
  365. Suggested packages:
  366. php5-dev
  367. The following NEW packages will be installed:
  368. libapache2-mod-php5 libonig2 libqdbm14 php-pear php5 php5-cli php5-common php5-mysql
  369. 0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
  370. Need to get 6678 kB of archives.
  371. After this operation, 21.6 MB of additional disk space will be used.
  372. Do you want to continue [Y/n]? y
  373. Get:1 http://debian.mirror.serveriai.lt/debian/ wheezy/main libonig2 amd64 5.9.1-1 [145 kB]
  374. Get:2 http://debian.mirror.serveriai.lt/debian/ wheezy/main libqdbm14 amd64 1.8.78-2 [153 kB]
  375. Get:3 http://security.debian.org/ wheezy/updates/main php5-common amd64 5.4.45-0+deb7u2 [627 kB]
  376. Get:4 http://security.debian.org/ wheezy/updates/main php5-cli amd64 5.4.45-0+deb7u2 [2598 kB]
  377. Get:5 http://security.debian.org/ wheezy/updates/main libapache2-mod-php5 amd64 5.4.45-0+deb7u2 [2710 kB]
  378. Get:6 http://security.debian.org/ wheezy/updates/main php5-mysql amd64 5.4.45-0+deb7u2 [80.8 kB]
  379. Get:7 http://security.debian.org/ wheezy/updates/main php-pear all 5.4.45-0+deb7u2 [363 kB]
  380. Get:8 http://security.debian.org/ wheezy/updates/main php5 all 5.4.45-0+deb7u2 [1028 B]
  381. Fetched 6678 kB in 0s (8008 kB/s)
  382. Selecting previously unselected package php5-common.
  383. (Reading database ... 30364 files and directories currently installed.)
  384. Unpacking php5-common (from .../php5-common_5.4.45-0+deb7u2_amd64.deb) ...
  385. Selecting previously unselected package libonig2.
  386. Unpacking libonig2 (from .../libonig2_5.9.1-1_amd64.deb) ...
  387. Selecting previously unselected package libqdbm14.
  388. Unpacking libqdbm14 (from .../libqdbm14_1.8.78-2_amd64.deb) ...
  389. Selecting previously unselected package php5-cli.
  390. Unpacking php5-cli (from .../php5-cli_5.4.45-0+deb7u2_amd64.deb) ...
  391. Selecting previously unselected package libapache2-mod-php5.
  392. Unpacking libapache2-mod-php5 (from .../libapache2-mod-php5_5.4.45-0+deb7u2_amd64.deb) ...
  393. Selecting previously unselected package php5-mysql.
  394. Unpacking php5-mysql (from .../php5-mysql_5.4.45-0+deb7u2_amd64.deb) ...
  395. Selecting previously unselected package php-pear.
  396. Unpacking php-pear (from .../php-pear_5.4.45-0+deb7u2_all.deb) ...
  397. Selecting previously unselected package php5.
  398. Unpacking php5 (from .../php5_5.4.45-0+deb7u2_all.deb) ...
  399. Processing triggers for man-db ...
  400. Setting up php5-common (5.4.45-0+deb7u2) ...
  401.  
  402. Creating config file /etc/php5/mods-available/pdo.ini with new version
  403. Setting up libonig2 (5.9.1-1) ...
  404. Setting up libqdbm14 (1.8.78-2) ...
  405. Setting up php5-cli (5.4.45-0+deb7u2) ...
  406.  
  407. Creating config file /etc/php5/cli/php.ini with new version
  408. update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode
  409. Setting up libapache2-mod-php5 (5.4.45-0+deb7u2) ...
  410.  
  411. Creating config file /etc/php5/apache2/php.ini with new version
  412. [....] Restarting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 0.0.54.98 for ServerName
  413. ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 0.0.54.98 for ServerName
  414. . ok
  415. Setting up php5-mysql (5.4.45-0+deb7u2) ...
  416.  
  417. Creating config file /etc/php5/mods-available/mysql.ini with new version
  418.  
  419. Creating config file /etc/php5/mods-available/mysqli.ini with new version
  420.  
  421. Creating config file /etc/php5/mods-available/pdo_mysql.ini with new version
  422. Setting up php-pear (5.4.45-0+deb7u2) ...
  423. Setting up php5 (5.4.45-0+deb7u2) ...
  424. Processing triggers for libapache2-mod-php5 ...
  425. [....] Reloading web server config: apache2apache2: Could not reliably determine
  426. . ok
  427. root@13922:~# service apache2 restart
  428. [....] Restarting web server: apache2apache2: Could not reliably determine the s
  429. ... waiting apache2: Could not reliably determine the server's fully qualified
  430. . ok
  431. root@13922:~# vim /var/www/info.php
  432. root@13922:~# cd /var
  433. root@13922:/var# ls
  434. backups cache lib local lock log mail opt run spool tmp www
  435. root@13922:/var# cd www
  436. root@13922:/var/www# ls
  437. index.html info.php
  438. root@13922:/var/www# rm index.html
  439. root@13922:/var/www# mv info.php index.php
  440. root@13922:/var/www# ls
  441. index.php
  442. root@13922:/var/www# vim index.php
  443. root@13922:/var/www# ls
  444. index.php
  445. root@13922:/var/www# vim index.php
  446. root@13922:/var/www# vim index.php
  447. root@13922:/var/www# vim index.php
  448. root@13922:/var/www# ls
  449. index.php
  450. root@13922:/var/www# cd ..
  451. root@13922:/var# ls
  452. backups cache lib local lock log mail opt run spool tmp www
  453. root@13922:/var# cd log
  454. root@13922:/var/log# ls
  455. alternatives.log daemon.log faillog lpr.log messages syslog
  456. apache2 debug fontconfig.log mail.err mysql udev
  457. apt dmesg fsck mail.info mysql.err upstart
  458. auth.log dmesg.0 kern.log mail.log mysql.log user.log
  459. btmp dpkg.log lastlog mail.warn news wtmp
  460. root@13922:/var/log# cd apache2
  461. root@13922:/var/log/apache2# ls
  462. access.log error.log other_vhosts_access.log
  463. root@13922:/var/log/apache2# vim access.log
  464. root@13922:/var/log/apache2# cd ..
  465. root@13922:/var/log# cd ..
  466. root@13922:/var# ls
  467. backups cache lib local lock log mail opt run spool tmp www
  468. root@13922:/var# cd www
  469. root@13922:/var/www# ls
  470. index.php
  471. root@13922:/var/www# chmod --help
  472. Usage: chmod [OPTION]... MODE[,MODE]... FILE...
  473. or: chmod [OPTION]... OCTAL-MODE FILE...
  474. or: chmod [OPTION]... --reference=RFILE FILE...
  475. Change the mode of each FILE to MODE.
  476.  
  477. -c, --changes like verbose but report only when a change is made
  478. --no-preserve-root do not treat `/' specially (the default)
  479. --preserve-root fail to operate recursively on `/'
  480. -f, --silent, --quiet suppress most error messages
  481. -v, --verbose output a diagnostic for every file processed
  482. --reference=RFILE use RFILE's mode instead of MODE values
  483. -R, --recursive change files and directories recursively
  484. --help display this help and exit
  485. --version output version information and exit
  486.  
  487. Each MODE is of the form `[ugoa]*([-+=]([rwxXst]*|[ugo]))+'.
  488.  
  489. Report chmod bugs to bug-coreutils@gnu.org
  490. GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
  491. General help using GNU software: <http://www.gnu.org/gethelp/>
  492. Report chmod translation bugs to <http://translationproject.org/team/>
  493. For complete documentation, run: info coreutils 'chmod invocation'
  494. root@13922:/var/www# chmod 444
  495. chmod: missing operand after `444'
  496. Try `chmod --help' for more information.
  497. root@13922:/var/www# chmod 444 index.php
  498. root@13922:/var/www# chmod 000 index.php
  499. root@13922:/var/www# cd ..
  500. root@13922:/var# ls
  501. backups cache lib local lock log mail opt run spool tmp www
  502. root@13922:/var# minecraft
  503. -bash: minecraft: command not found
  504. root@13922:/var# ls
  505. backups cache lib local lock log mail opt run spool tmp www
  506. root@13922:/var# ls
  507. backups cache lib local lock log mail opt run spool tmp www
  508. root@13922:/var# cd www
  509. root@13922:/var/www# ls
  510. index.php
  511. root@13922:/var/www# vim .htaccess
  512. root@13922:/var/www# ls -a
  513. . .. .htaccess index.php
  514. root@13922:/var/www# vim .htaccess
  515. root@13922:/var/www# ls
  516. index.php
  517. root@13922:/var/www# chmod index.php 755
  518. chmod: invalid mode: `index.php'
  519. Try `chmod --help' for more information.
  520. root@13922:/var/www# chmod 755 index.php
  521. root@13922:/var/www# rm index.php
  522. root@13922:/var/www# ls
  523. root@13922:/var/www# ls -a
  524. . .. .htaccess
  525. root@13922:/var/www# vim .htaccess
  526. root@13922:/var/www# vim .htaccess
  527. root@13922:/var/www# vim index.php
  528. root@13922:/var/www# vim .htaccess
  529. root@13922:/var/www# ls
  530. index.php
  531. root@13922:/var/www# cd ..
  532. root@13922:/var# ls
  533. backups cache lib local lock log mail opt run spool tmp www
  534. root@13922:/var# cd backups
  535. root@13922:/var/backups# ls
  536. root@13922:/var/backups# ls -a
  537. . ..
  538. root@13922:/var/backups# cd ..
  539. root@13922:/var# cd lib
  540. root@13922:/var/lib# ls
  541. apt dhcp dpkg initramfs-tools insserv logrotate mlocate pam quota snmp ucf urandom
  542. bind dhcpv6 fetchmail initscripts libuuid misc mysql php5 sendmail sudo update-rc.d vim
  543. root@13922:/var/lib# cd ..
  544. root@13922:/var#
  545. root@13922:/var# sendmail
  546. Recipient names must be specified
  547. ^Croot@13922:/var# l
  548. -bash: l: command not found
  549. root@13922:/var# ls
  550. backups cache lib local lock log mail opt run spool tmp www
  551. root@13922:/var# cd spool
  552. root@13922:/var/spool# ls
  553. cron mail mqueue mqueue-client rsyslog
  554. root@13922:/var/spool# cd ..
  555. root@13922:/var# cd ..
  556. root@13922:/# ls
  557. aquota.group aquota.user bin boot dev etc home lib lib64 lost+found media mnt opt proc root run sbin selinux srv sys tmp usr var
  558. root@13922:/# cd ..
  559. root@13922:/# ls
  560. aquota.group aquota.user bin boot dev etc home lib lib64 lost+found media mnt opt proc root run sbin selinux srv sys tmp usr var
  561. root@13922:/# cd ..
  562. root@13922:/# cd home
  563. root@13922:/home# ls
  564. root@13922:/home# ls -a
  565. . ..
  566. root@13922:/home# vim mcrcon.c
  567. root@13922:/home# ls
  568. mcrcon.c
  569. root@13922:/home# gcc -std=gnu11 -pedantic -Wall -Wextra -O2 -s -o mcrcon mcrcon.c
  570. -bash: gcc: command not found
  571. root@13922:/home#
  572. root@13922:/home#
  573. root@13922:/home# apt-get cc
  574. E: Invalid operation cc
  575. root@13922:/home# apt-get gcc
  576. E: Invalid operation gcc
  577. root@13922:/home# apt-get
  578. apt 0.9.7.9 for amd64 compiled on Oct 17 2014 09:15:56
  579. Usage: apt-get [options] command
  580. apt-get [options] install|remove pkg1 [pkg2 ...]
  581. apt-get [options] source pkg1 [pkg2 ...]
  582.  
  583. apt-get is a simple command line interface for downloading and
  584. installing packages. The most frequently used commands are update
  585. and install.
  586.  
  587. Commands:
  588. update - Retrieve new lists of packages
  589. upgrade - Perform an upgrade
  590. install - Install new packages (pkg is libc6 not libc6.deb)
  591. remove - Remove packages
  592. autoremove - Remove automatically all unused packages
  593. purge - Remove packages and config files
  594. source - Download source archives
  595. build-dep - Configure build-dependencies for source packages
  596. dist-upgrade - Distribution upgrade, see apt-get(8)
  597. dselect-upgrade - Follow dselect selections
  598. clean - Erase downloaded archive files
  599. autoclean - Erase old downloaded archive files
  600. check - Verify that there are no broken dependencies
  601. changelog - Download and display the changelog for the given package
  602. download - Download the binary package into the current directory
  603.  
  604. Options:
  605. -h This help text.
  606. -q Loggable output - no progress indicator
  607. -qq No output except for errors
  608. -d Download only - do NOT install or unpack archives
  609. -s No-act. Perform ordering simulation
  610. -y Assume Yes to all queries and do not prompt
  611. -f Attempt to correct a system with broken dependencies in place
  612. -m Attempt to continue if archives are unlocatable
  613. -u Show a list of upgraded packages as well
  614. -b Build the source package after fetching it
  615. -V Show verbose version numbers
  616. -c=? Read this configuration file
  617. -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp
  618. See the apt-get(8), sources.list(5) and apt.conf(5) manual
  619. pages for more information and options.
  620. This APT has Super Cow Powers.
  621. root@13922:/home# apt-get install gcc
  622. Reading package lists... Done
  623. Building dependency tree
  624. Reading state information... Done
  625. The following extra packages will be installed:
  626. cpp cpp-4.7 gcc-4.7 libc-dev-bin libc6-dev libgmp10 libitm1 libmpc2 libmpfr4 libquadmath0 linux-libc-dev manpages-dev
  627. Suggested packages:
  628. cpp-doc gcc-4.7-locales gcc-multilib autoconf automake1.9 libtool flex bison gdb gcc-doc gcc-4.7-multilib libmudflap0-4.7-dev gcc-4.7-doc libgcc1-dbg
  629. libgomp1-dbg libitm1-dbg libquadmath0-dbg libmudflap0-dbg libcloog-ppl0 libppl-c2 libppl7 binutils-gold glibc-doc
  630. The following NEW packages will be installed:
  631. cpp cpp-4.7 gcc gcc-4.7 libc-dev-bin libc6-dev libgmp10 libitm1 libmpc2 libmpfr4 libquadmath0 linux-libc-dev manpages-dev
  632. 0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
  633. Need to get 20.2 MB of archives.
  634. After this operation, 49.2 MB of additional disk space will be used.
  635. Do you want to continue [Y/n]? y
  636. Get:1 http://security.debian.org/ wheezy/updates/main linux-libc-dev amd64 3.2.73-2+deb7u2 [847 kB]
  637. Get:2 http://debian.mirror.serveriai.lt/debian/ wheezy/main libgmp10 amd64 2:5.0.5+dfsg-2 [250 kB]
  638. Get:3 http://debian.mirror.serveriai.lt/debian/ wheezy/main libitm1 amd64 4.7.2-5 [36.6 kB]
  639. Get:4 http://debian.mirror.serveriai.lt/debian/ wheezy/main libmpfr4 amd64 3.1.0-5 [538 kB]
  640. Get:5 http://debian.mirror.serveriai.lt/debian/ wheezy/main libquadmath0 amd64 4.7.2-5 [125 kB]
  641. Get:6 http://debian.mirror.serveriai.lt/debian/ wheezy/main libmpc2 amd64 0.9-4 [40.1 kB]
  642. Get:7 http://debian.mirror.serveriai.lt/debian/ wheezy/main cpp-4.7 amd64 4.7.2-5 [5416 kB]
  643. Get:8 http://debian.mirror.serveriai.lt/debian/ wheezy/main cpp amd64 4:4.7.2-1 [16.6 kB]
  644. Get:9 http://debian.mirror.serveriai.lt/debian/ wheezy/main gcc-4.7 amd64 4.7.2-5 [8296 kB]
  645. Get:10 http://debian.mirror.serveriai.lt/debian/ wheezy/main gcc amd64 4:4.7.2-1 [5064 B]
  646. Get:11 http://debian.mirror.serveriai.lt/debian/ wheezy/main libc-dev-bin amd64 2.13-38+deb7u8 [226 kB]
  647. Get:12 http://debian.mirror.serveriai.lt/debian/ wheezy/main libc6-dev amd64 2.13-38+deb7u8 [2665 kB]
  648. Get:13 http://debian.mirror.serveriai.lt/debian/ wheezy/main manpages-dev all 3.44-1 [1737 kB]
  649. Fetched 20.2 MB in 1s (12.3 MB/s)
  650. Selecting previously unselected package libgmp10:amd64.
  651. (Reading database ... 30636 files and directories currently installed.)
  652. Unpacking libgmp10:amd64 (from .../libgmp10_2%3a5.0.5+dfsg-2_amd64.deb) ...
  653. Selecting previously unselected package libitm1:amd64.
  654. Unpacking libitm1:amd64 (from .../libitm1_4.7.2-5_amd64.deb) ...
  655. Selecting previously unselected package libmpfr4:amd64.
  656. Unpacking libmpfr4:amd64 (from .../libmpfr4_3.1.0-5_amd64.deb) ...
  657. Selecting previously unselected package libquadmath0:amd64.
  658. Unpacking libquadmath0:amd64 (from .../libquadmath0_4.7.2-5_amd64.deb) ...
  659. Selecting previously unselected package libmpc2:amd64.
  660. Unpacking libmpc2:amd64 (from .../libmpc2_0.9-4_amd64.deb) ...
  661. Selecting previously unselected package cpp-4.7.
  662. Unpacking cpp-4.7 (from .../cpp-4.7_4.7.2-5_amd64.deb) ...
  663. Selecting previously unselected package cpp.
  664. Unpacking cpp (from .../cpp_4%3a4.7.2-1_amd64.deb) ...
  665. Selecting previously unselected package gcc-4.7.
  666. Unpacking gcc-4.7 (from .../gcc-4.7_4.7.2-5_amd64.deb) ...
  667. Selecting previously unselected package gcc.
  668. Unpacking gcc (from .../gcc_4%3a4.7.2-1_amd64.deb) ...
  669. Selecting previously unselected package libc-dev-bin.
  670. Unpacking libc-dev-bin (from .../libc-dev-bin_2.13-38+deb7u8_amd64.deb) ...
  671. Selecting previously unselected package linux-libc-dev:amd64.
  672. Unpacking linux-libc-dev:amd64 (from .../linux-libc-dev_3.2.73-2+deb7u2_amd64.deb) ...
  673. Selecting previously unselected package libc6-dev:amd64.
  674. Unpacking libc6-dev:amd64 (from .../libc6-dev_2.13-38+deb7u8_amd64.deb) ...
  675. Selecting previously unselected package manpages-dev.
  676. Unpacking manpages-dev (from .../manpages-dev_3.44-1_all.deb) ...
  677. Processing triggers for man-db ...
  678. Setting up libgmp10:amd64 (2:5.0.5+dfsg-2) ...
  679. Setting up libitm1:amd64 (4.7.2-5) ...
  680. Setting up libmpfr4:amd64 (3.1.0-5) ...
  681. Setting up libquadmath0:amd64 (4.7.2-5) ...
  682. Setting up libmpc2:amd64 (0.9-4) ...
  683. Setting up cpp-4.7 (4.7.2-5) ...
  684. Setting up cpp (4:4.7.2-1) ...
  685. Setting up gcc-4.7 (4.7.2-5) ...
  686. Setting up gcc (4:4.7.2-1) ...
  687. Setting up libc-dev-bin (2.13-38+deb7u8) ...
  688. Setting up linux-libc-dev:amd64 (3.2.73-2+deb7u2) ...
  689. Setting up libc6-dev:amd64 (2.13-38+deb7u8) ...
  690. Setting up manpages-dev (3.44-1) ...
  691. root@13922:/home# gcc -std=gnu11 -pedantic -Wall -Wextra -O2 -s -o mcrcon mcrcon.c
  692. root@13922:/home# ls
  693. mcrcon mcrcon.c
  694. root@13922:/home# ./mcrcon
  695. Usage: mcrcon [OPTIONS]... [COMMANDS]...
  696. Sends rcon commands to minecraft server.
  697.  
  698. Option:
  699. -h Prints usage.
  700. -s Silent mode. Do not print data received from rcon.
  701. -t Terminal mode. Acts as interactive terminal.
  702. -p Rcon password. Default: "".
  703. -H Host address or ip.
  704. -P Port. Default: 25575.
  705. -c Do not print colors. Disables bukkit color printing.
  706.  
  707. Invidual commands must be separated with spaces.
  708.  
  709. Example:
  710. mcrcon -c -H 192.168.1.42 -P 9999 -p password cmd1 "cmd2 with spaces"
  711.  
  712. minecraft rcon (mcrcon) 0.0.5.
  713. Report bugs to tiiffi_at_gmail_dot_com.
  714.  
  715. root@13922:/home#
  716. root@13922:/home# ls
  717. mcrcon mcrcon.c
  718. root@13922:/home# rm mcrcon
  719. root@13922:/home# rm mcrcon.c
  720. root@13922:/home# ls
  721. root@13922:/home# ls
  722. root@13922:/home# cd ..
  723. root@13922:/# cd var
  724. root@13922:/var# cd www
  725. root@13922:/var/www# ls
  726. index.php
  727. root@13922:/var/www# cd ..
  728. root@13922:/var# ls
  729. backups cache lib local lock log mail opt run spool tmp www
  730. root@13922:/var# cd log
  731. root@13922:/var/log# ls
  732. alternatives.log auth.log debug dpkg.log fsck lpr.log mail.log mysql news upstart
  733. apache2 btmp dmesg faillog kern.log mail.err mail.warn mysql.err syslog user.log
  734. apt daemon.log dmesg.0 fontconfig.log lastlog mail.info messages mysql.log udev wtmp
  735. root@13922:/var/log# vim auth.log
  736. root@13922:/var/log# vim auth.log
  737.  
  738. Jan 23 01:03:39 13922 saslauthd[1685]: detach_tty : master pid is: 1685
  739. Jan 23 01:03:39 13922 saslauthd[1685]: ipc_init : listening on socket: /var/run/saslauthd/mux
  740. Jan 23 01:03:39 13922 gpasswd[1736]: user smmta added by root to group sasl
  741. Jan 23 01:03:39 13922 gpasswd[1741]: user smmsp added by root to group sasl
  742. Jan 23 01:03:39 13922 saslpasswd2: error deleting entry from sasldb: DB_NOTFOUND: No matching key/data pair found
  743. Jan 23 01:03:39 13922 saslpasswd2: error deleting entry from sasldb: DB_NOTFOUND: No matching key/data pair found
  744. Jan 23 01:03:39 13922 saslpasswd2: error deleting entry from sasldb: DB_NOTFOUND: No matching key/data pair found
  745. Jan 23 01:03:39 13922 saslpasswd2: error deleting entry from sasldb: DB_NOTFOUND: No matching key/data pair found
  746. Jan 23 01:04:16 13922 sshd[1608]: Received signal 15; terminating.
  747. Jan 23 01:04:16 13922 sshd[6093]: Server listening on 0.0.0.0 port 22.
  748. Jan 23 01:09:12 13922 sshd[6378]: Accepted password for root from 82.130.29.184 port 59156 ssh2
  749. Jan 23 01:09:12 13922 sshd[6378]: pam_unix(sshd:session): session opened for user root by (uid=0)
  750. Jan 23 01:09:12 13922 sshd[6380]: error: lastlog_get_entry: Error reading from /var/log/lastlog: Expecting 292, got 1
  751. Jan 23 01:09:22 13922 sshd[6378]: pam_unix(sshd:session): session closed for user root
  752. Jan 23 01:09:57 13922 sshd[6387]: Accepted password for root from 82.130.29.184 port 59158 ssh2
  753. Jan 23 01:09:57 13922 sshd[6387]: pam_unix(sshd:session): session opened for user root by (uid=0)
  754. Jan 23 01:12:50 13922 groupadd[7194]: group added to /etc/group: name=mysql, GID=110
  755. Jan 23 01:12:50 13922 groupadd[7194]: group added to /etc/gshadow: name=mysql
  756. Jan 23 01:12:50 13922 groupadd[7194]: new group: name=mysql, GID=110
  757. Jan 23 01:12:50 13922 useradd[7200]: new user: name=mysql, UID=106, GID=110, home=/nonexistent, shell=/bin/false
  758. Jan 23 01:12:50 13922 chage[7205]: changed password expiry for mysql
  759. Jan 23 01:12:50 13922 chfn[7208]: changed user 'mysql' information
  760. Jan 23 01:20:01 13922 CRON[9710]: pam_unix(cron:session): session opened for user smmsp by (uid=0)
  761. Jan 23 01:20:01 13922 CRON[9710]: pam_unix(cron:session): session closed for user smmsp
  762. Jan 23 01:26:01 13922 CRON[9732]: pam_unix(cron:session): session opened for user root by (uid=0)
  763. Jan 23 01:39:01 13922 CRON[9755]: pam_unix(cron:session): session opened for user root by (uid=0)
  764. Jan 23 01:39:01 13922 CRON[9755]: pam_unix(cron:session): session closed for user root
  765. Jan 23 01:40:01 13922 CRON[9768]: pam_unix(cron:session): session opened for user smmsp by (uid=0)
  766. Jan 23 01:40:01 13922 CRON[9768]: pam_unix(cron:session): session closed for user smmsp
  767. Jan 23 01:40:27 13922 sshd[9790]: Connection closed by 193.138.219.228 [preauth]
  768. Jan 23 01:40:31 13922 sshd[9793]: Connection closed by 193.138.219.228 [preauth]
  769. Jan 23 01:40:33 13922 sshd[9796]: Connection closed by 193.138.219.228 [preauth]
  770. Jan 23 01:41:20 13922 sshd[9800]: Connection closed by 193.138.219.228 [preauth]
  771. Jan 23 01:41:22 13922 sshd[9802]: Connection closed by 193.138.219.228 [preauth]
  772. Jan 23 01:41:24 13922 sshd[9804]: Connection closed by 193.138.219.228 [preauth]
  773. Jan 23 01:51:44 13922 sshd[13440]: Invalid user jimi_on_homo from 193.138.219.228
  774. Jan 23 01:51:44 13922 sshd[13440]: input_userauth_request: invalid user jimi_on_homo [preauth]
  775. Jan 23 01:51:46 13922 sshd[13440]: pam_unix(sshd:auth): check pass; user unknown
  776. Jan 23 01:51:46 13922 sshd[13440]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=se3x.mullvad.net
  777. Jan 23 01:51:48 13922 sshd[13440]: Failed password for invalid user jimi_on_homo from 193.138.219.228 port 38609 ssh2
  778. Jan 23 01:51:48 13922 sshd[13440]: pam_unix(sshd:auth): check pass; user unknown
  779. Jan 23 01:51:51 13922 sshd[13440]: Failed password for invalid user jimi_on_homo from 193.138.219.228 port 38609 ssh2
  780. Jan 23 01:51:52 13922 sshd[13440]: pam_unix(sshd:auth): check pass; user unknown
  781. Jan 23 01:51:54 13922 sshd[13440]: Failed password for invalid user jimi_on_homo from 193.138.219.228 port 38609 ssh2
  782. Jan 23 01:51:54 13922 sshd[13440]: Connection closed by 193.138.219.228 [preauth]
  783. Jan 23 01:51:54 13922 sshd[13440]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=se3x.mullvad.net
  784. ~
  785. ~
  786. ~
  787. ~
  788. ~
  789. ~
  790. ~
  791. ~
  792. ~
  793. ~
  794. ~
  795. ~
  796. ~
  797. ~
  798. "auth.log" 47L, 4271C 1,0-1 All
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement