Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- login as: root
- root@13922.s.time4vps.eu's password:
- Linux 13922 2.6.32-042stab108.8 #1 SMP Wed Jul 22 17:23:23 MSK 2015 x86_64
- The programs included with the Debian GNU/Linux system are free software;
- the exact distribution terms for each program are described in the
- individual files in /usr/share/doc/*/copyright.
- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
- permitted by applicable law.
- Last login: Sat Jan 23 01:09:12 2016 from kyp0.kyla.fi
- root@13922:~# apt-get update
- Hit http://security.debian.org wheezy/updates Release.gpg
- Hit http://security.debian.org wheezy/updates Release
- Hit http://debian.mirror.serveriai.lt wheezy Release.gpg
- Hit http://debian.mirror.serveriai.lt wheezy Release
- Hit http://security.debian.org wheezy/updates/main amd64 Packages
- Hit http://debian.mirror.serveriai.lt wheezy/main amd64 Packages
- Hit http://debian.mirror.serveriai.lt wheezy/contrib amd64 Packages
- Hit http://debian.mirror.serveriai.lt wheezy/non-free amd64 Packages
- Hit http://debian.mirror.serveriai.lt wheezy/main i386 Packages
- Hit http://debian.mirror.serveriai.lt wheezy/contrib i386 Packages
- Hit http://debian.mirror.serveriai.lt wheezy/non-free i386 Packages
- Hit http://debian.mirror.serveriai.lt wheezy/contrib Translation-en
- Hit http://debian.mirror.serveriai.lt wheezy/main Translation-en
- Hit http://debian.mirror.serveriai.lt wheezy/non-free Translation-en
- Hit http://security.debian.org wheezy/updates/contrib amd64 Packages
- Hit http://security.debian.org wheezy/updates/non-free amd64 Packages
- Hit http://security.debian.org wheezy/updates/main i386 Packages
- Hit http://security.debian.org wheezy/updates/contrib i386 Packages
- Hit http://security.debian.org wheezy/updates/non-free i386 Packages
- Hit http://security.debian.org wheezy/updates/contrib Translation-en
- Hit http://security.debian.org wheezy/updates/main Translation-en
- Hit http://security.debian.org wheezy/updates/non-free Translation-en
- Reading package lists... Done
- root@13922:~# apache2
- apache2: bad user name ${APACHE_RUN_USER}
- root@13922:~# vim /var/log/apache2/access.log
- root@13922:~# ifconfig eth0 | grep inet | awk '{ print $2 }'
- eth0: error fetching interface information: Device not found
- root@13922:~# apt-get install mysql-server
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following extra packages will be installed:
- 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
- Suggested packages:
- libipc-sharedcache-perl libterm-readkey-perl tinyca
- The following NEW packages will be installed:
- 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-
- 0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
- Need to get 8985 kB of archives.
- After this operation, 96.8 MB of additional disk space will be used.
- Do you want to continue [Y/n]? y
- Get:1 http://debian.mirror.serveriai.lt/debian/ wheezy/main libaio1 amd64 0.3.109-3 [9150 B]
- Get:2 http://debian.mirror.serveriai.lt/debian/ wheezy/main libdbi-perl amd64 1.622-1+deb7u1 [892 kB]
- Get:3 http://debian.mirror.serveriai.lt/debian/ wheezy/main libdbd-mysql-perl amd64 4.021-1+b1 [126 kB]
- Get:4 http://debian.mirror.serveriai.lt/debian/ wheezy/main libhtml-template-perl all 2.91-1 [72.0 kB]
- Get:5 http://security.debian.org/ wheezy/updates/main mysql-common all 5.5.46-0+deb7u1 [84.8 kB]
- Get:6 http://security.debian.org/ wheezy/updates/main libmysqlclient18 amd64 5.5.46-0+deb7u1 [691 kB]
- Get:7 http://security.debian.org/ wheezy/updates/main mysql-client-5.5 amd64 5.5.46-0+deb7u1 [1739 kB]
- Get:8 http://security.debian.org/ wheezy/updates/main mysql-server-core-5.5 amd64 5.5.46-0+deb7u1 [3445 kB]
- Get:9 http://security.debian.org/ wheezy/updates/main mysql-server-5.5 amd64 5.5.46-0+deb7u1 [1843 kB]
- Get:10 http://security.debian.org/ wheezy/updates/main mysql-server all 5.5.46-0+deb7u1 [83.0 kB]
- Fetched 8985 kB in 0s (11.9 MB/s)
- Preconfiguring packages ...
- Package configuration
- qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
- lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqConfiguring mysql-server-5.5qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
- x While not mandatory, it is highly recommended that you set a password for the MySQL administrative "root" user.
- x
- x If this field is left blank, the password will not be changed.
- x
- x New password for the MySQL "root" user:
- x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
- x x
- tqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
- x < OK >
- mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
- Selecting previously unselected package libaio1:amd64.
- (Reading database ... 29915 files and directories currently installed.)
- Unpacking libaio1:amd64 (from .../libaio1_0.3.109-3_amd64.deb) ...
- Selecting previously unselected package mysql-common.
- Unpacking mysql-common (from .../mysql-common_5.5.46-0+deb7u1_all.deb) ...
- Selecting previously unselected package libmysqlclient18:amd64.
- Unpacking libmysqlclient18:amd64 (from .../libmysqlclient18_5.5.46-0+deb7u1_amd64.deb) ...
- Selecting previously unselected package libdbi-perl.
- Unpacking libdbi-perl (from .../libdbi-perl_1.622-1+deb7u1_amd64.deb) ...
- Selecting previously unselected package libdbd-mysql-perl.
- Unpacking libdbd-mysql-perl (from .../libdbd-mysql-perl_4.021-1+b1_amd64.deb) ...
- Selecting previously unselected package mysql-client-5.5.
- Unpacking mysql-client-5.5 (from .../mysql-client-5.5_5.5.46-0+deb7u1_amd64.deb) ...
- Selecting previously unselected package mysql-server-core-5.5.
- Unpacking mysql-server-core-5.5 (from .../mysql-server-core-5.5_5.5.46-0+deb7u1_amd64.deb) ...
- Processing triggers for man-db ...
- Setting up mysql-common (5.5.46-0+deb7u1) ...
- Selecting previously unselected package mysql-server-5.5.
- (Reading database ... 30265 files and directories currently installed.)
- Unpacking mysql-server-5.5 (from .../mysql-server-5.5_5.5.46-0+deb7u1_amd64.deb) ...
- Package configuration
- qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
- lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqConfiguring mysql-server-5.5qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
- x While not mandatory, it is highly recommended that you set a password for the MySQL administrative "root" user.
- x
- x If this field is left blank, the password will not be changed.
- x
- x New password for the MySQL "root" user:
- x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
- x x
- tqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
- x < OK >
- mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
- Selecting previously unselected package libhtml-template-perl.
- Unpacking libhtml-template-perl (from .../libhtml-template-perl_2.91-1_all.deb) ...
- Selecting previously unselected package mysql-server.
- Unpacking mysql-server (from .../mysql-server_5.5.46-0+deb7u1_all.deb) ...
- Processing triggers for man-db ...
- Setting up libaio1:amd64 (0.3.109-3) ...
- Setting up libmysqlclient18:amd64 (5.5.46-0+deb7u1) ...
- Setting up libdbi-perl (1.622-1+deb7u1) ...
- Setting up libdbd-mysql-perl (4.021-1+b1) ...
- Setting up mysql-client-5.5 (5.5.46-0+deb7u1) ...
- Setting up mysql-server-core-5.5 (5.5.46-0+deb7u1) ...
- Setting up mysql-server-5.5 (5.5.46-0+deb7u1) ...
- Package configuration
- qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
- lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqConfiguring mysql-server-5.5qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
- x While not mandatory, it is highly recommended that you set a password for the MySQL administrative "root" user.
- x
- x If this field is left blank, the password will not be changed.
- x
- x New password for the MySQL "root" user:
- x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
- x x
- tqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
- x < OK >
- mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
- [ ok ] Stopping MySQL database server: mysqld.
- [ ok ] Starting MySQL database server: mysqld ..
- [info] Checking for tables which need an upgrade, are corrupt or were
- not closed cleanly..
- Setting up libhtml-template-perl (2.91-1) ...
- Setting up mysql-server (5.5.46-0+deb7u1) ...
- root@13922:~# mysql_secure_installation
- NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
- SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
- In order to log into MySQL to secure it, we'll need the current
- password for the root user. If you've just installed MySQL, and
- you haven't set the root password yet, the password will be blank,
- so you should just press enter here.
- Enter current password for root (enter for none):
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
- Enter current password for root (enter for none):
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
- Enter current password for root (enter for none):
- OK, successfully used password, moving on...
- Setting the root password ensures that nobody can log into the MySQL
- root user without the proper authorisation.
- Set root password? [Y/n] y
- New password:
- Re-enter new password:
- Password updated successfully!
- Reloading privilege tables..
- ... Success!
- By default, a MySQL installation has an anonymous user, allowing anyone
- to log into MySQL without having to have a user account created for
- them. This is intended only for testing, and to make the installation
- go a bit smoother. You should remove them before moving into a
- production environment.
- Remove anonymous users? [Y/n] y
- ... Success!
- Normally, root should only be allowed to connect from 'localhost'. This
- ensures that someone cannot guess at the root password from the network.
- Disallow root login remotely? [Y/n] y
- ... Success!
- By default, MySQL comes with a database named 'test' that anyone can
- access. This is also intended only for testing, and should be removed
- before moving into a production environment.
- Remove test database and access to it? [Y/n] y
- - Dropping test database...
- ERROR 1008 (HY000) at line 1: Can't drop database 'test'; database doesn't exist
- ... Failed! Not critical, keep moving...
- - Removing privileges on test database...
- ... Success!
- Reloading the privilege tables will ensure that all changes made so far
- will take effect immediately.
- Reload privilege tables now? [Y/n] y
- ... Success!
- Cleaning up...
- All done! If you've completed all of the above steps, your MySQL
- installation should now be secure.
- Thanks for using MySQL!
- root@13922:~# apt-get install php5 php-pear php5-mysql
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following extra packages will be installed:
- libapache2-mod-php5 libonig2 libqdbm14 php5-cli php5-common
- Suggested packages:
- php5-dev
- The following NEW packages will be installed:
- libapache2-mod-php5 libonig2 libqdbm14 php-pear php5 php5-cli php5-common php5-mysql
- 0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
- Need to get 6678 kB of archives.
- After this operation, 21.6 MB of additional disk space will be used.
- Do you want to continue [Y/n]? y
- Get:1 http://debian.mirror.serveriai.lt/debian/ wheezy/main libonig2 amd64 5.9.1-1 [145 kB]
- Get:2 http://debian.mirror.serveriai.lt/debian/ wheezy/main libqdbm14 amd64 1.8.78-2 [153 kB]
- Get:3 http://security.debian.org/ wheezy/updates/main php5-common amd64 5.4.45-0+deb7u2 [627 kB]
- Get:4 http://security.debian.org/ wheezy/updates/main php5-cli amd64 5.4.45-0+deb7u2 [2598 kB]
- Get:5 http://security.debian.org/ wheezy/updates/main libapache2-mod-php5 amd64 5.4.45-0+deb7u2 [2710 kB]
- Get:6 http://security.debian.org/ wheezy/updates/main php5-mysql amd64 5.4.45-0+deb7u2 [80.8 kB]
- Get:7 http://security.debian.org/ wheezy/updates/main php-pear all 5.4.45-0+deb7u2 [363 kB]
- Get:8 http://security.debian.org/ wheezy/updates/main php5 all 5.4.45-0+deb7u2 [1028 B]
- Fetched 6678 kB in 0s (8008 kB/s)
- Selecting previously unselected package php5-common.
- (Reading database ... 30364 files and directories currently installed.)
- Unpacking php5-common (from .../php5-common_5.4.45-0+deb7u2_amd64.deb) ...
- Selecting previously unselected package libonig2.
- Unpacking libonig2 (from .../libonig2_5.9.1-1_amd64.deb) ...
- Selecting previously unselected package libqdbm14.
- Unpacking libqdbm14 (from .../libqdbm14_1.8.78-2_amd64.deb) ...
- Selecting previously unselected package php5-cli.
- Unpacking php5-cli (from .../php5-cli_5.4.45-0+deb7u2_amd64.deb) ...
- Selecting previously unselected package libapache2-mod-php5.
- Unpacking libapache2-mod-php5 (from .../libapache2-mod-php5_5.4.45-0+deb7u2_amd64.deb) ...
- Selecting previously unselected package php5-mysql.
- Unpacking php5-mysql (from .../php5-mysql_5.4.45-0+deb7u2_amd64.deb) ...
- Selecting previously unselected package php-pear.
- Unpacking php-pear (from .../php-pear_5.4.45-0+deb7u2_all.deb) ...
- Selecting previously unselected package php5.
- Unpacking php5 (from .../php5_5.4.45-0+deb7u2_all.deb) ...
- Processing triggers for man-db ...
- Setting up php5-common (5.4.45-0+deb7u2) ...
- Creating config file /etc/php5/mods-available/pdo.ini with new version
- Setting up libonig2 (5.9.1-1) ...
- Setting up libqdbm14 (1.8.78-2) ...
- Setting up php5-cli (5.4.45-0+deb7u2) ...
- Creating config file /etc/php5/cli/php.ini with new version
- update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode
- Setting up libapache2-mod-php5 (5.4.45-0+deb7u2) ...
- Creating config file /etc/php5/apache2/php.ini with new version
- [....] Restarting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 0.0.54.98 for ServerName
- ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 0.0.54.98 for ServerName
- . ok
- Setting up php5-mysql (5.4.45-0+deb7u2) ...
- Creating config file /etc/php5/mods-available/mysql.ini with new version
- Creating config file /etc/php5/mods-available/mysqli.ini with new version
- Creating config file /etc/php5/mods-available/pdo_mysql.ini with new version
- Setting up php-pear (5.4.45-0+deb7u2) ...
- Setting up php5 (5.4.45-0+deb7u2) ...
- Processing triggers for libapache2-mod-php5 ...
- [....] Reloading web server config: apache2apache2: Could not reliably determine
- . ok
- root@13922:~# service apache2 restart
- [....] Restarting web server: apache2apache2: Could not reliably determine the s
- ... waiting apache2: Could not reliably determine the server's fully qualified
- . ok
- root@13922:~# vim /var/www/info.php
- root@13922:~# cd /var
- root@13922:/var# ls
- backups cache lib local lock log mail opt run spool tmp www
- root@13922:/var# cd www
- root@13922:/var/www# ls
- index.html info.php
- root@13922:/var/www# rm index.html
- root@13922:/var/www# mv info.php index.php
- root@13922:/var/www# ls
- index.php
- root@13922:/var/www# vim index.php
- root@13922:/var/www# ls
- index.php
- root@13922:/var/www# vim index.php
- root@13922:/var/www# vim index.php
- root@13922:/var/www# vim index.php
- root@13922:/var/www# ls
- index.php
- root@13922:/var/www# cd ..
- root@13922:/var# ls
- backups cache lib local lock log mail opt run spool tmp www
- root@13922:/var# cd log
- root@13922:/var/log# ls
- alternatives.log daemon.log faillog lpr.log messages syslog
- apache2 debug fontconfig.log mail.err mysql udev
- apt dmesg fsck mail.info mysql.err upstart
- auth.log dmesg.0 kern.log mail.log mysql.log user.log
- btmp dpkg.log lastlog mail.warn news wtmp
- root@13922:/var/log# cd apache2
- root@13922:/var/log/apache2# ls
- access.log error.log other_vhosts_access.log
- root@13922:/var/log/apache2# vim access.log
- root@13922:/var/log/apache2# cd ..
- root@13922:/var/log# cd ..
- root@13922:/var# ls
- backups cache lib local lock log mail opt run spool tmp www
- root@13922:/var# cd www
- root@13922:/var/www# ls
- index.php
- root@13922:/var/www# chmod --help
- Usage: chmod [OPTION]... MODE[,MODE]... FILE...
- or: chmod [OPTION]... OCTAL-MODE FILE...
- or: chmod [OPTION]... --reference=RFILE FILE...
- Change the mode of each FILE to MODE.
- -c, --changes like verbose but report only when a change is made
- --no-preserve-root do not treat `/' specially (the default)
- --preserve-root fail to operate recursively on `/'
- -f, --silent, --quiet suppress most error messages
- -v, --verbose output a diagnostic for every file processed
- --reference=RFILE use RFILE's mode instead of MODE values
- -R, --recursive change files and directories recursively
- --help display this help and exit
- --version output version information and exit
- Each MODE is of the form `[ugoa]*([-+=]([rwxXst]*|[ugo]))+'.
- Report chmod bugs to bug-coreutils@gnu.org
- GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
- General help using GNU software: <http://www.gnu.org/gethelp/>
- Report chmod translation bugs to <http://translationproject.org/team/>
- For complete documentation, run: info coreutils 'chmod invocation'
- root@13922:/var/www# chmod 444
- chmod: missing operand after `444'
- Try `chmod --help' for more information.
- root@13922:/var/www# chmod 444 index.php
- root@13922:/var/www# chmod 000 index.php
- root@13922:/var/www# cd ..
- root@13922:/var# ls
- backups cache lib local lock log mail opt run spool tmp www
- root@13922:/var# minecraft
- -bash: minecraft: command not found
- root@13922:/var# ls
- backups cache lib local lock log mail opt run spool tmp www
- root@13922:/var# ls
- backups cache lib local lock log mail opt run spool tmp www
- root@13922:/var# cd www
- root@13922:/var/www# ls
- index.php
- root@13922:/var/www# vim .htaccess
- root@13922:/var/www# ls -a
- . .. .htaccess index.php
- root@13922:/var/www# vim .htaccess
- root@13922:/var/www# ls
- index.php
- root@13922:/var/www# chmod index.php 755
- chmod: invalid mode: `index.php'
- Try `chmod --help' for more information.
- root@13922:/var/www# chmod 755 index.php
- root@13922:/var/www# rm index.php
- root@13922:/var/www# ls
- root@13922:/var/www# ls -a
- . .. .htaccess
- root@13922:/var/www# vim .htaccess
- root@13922:/var/www# vim .htaccess
- root@13922:/var/www# vim index.php
- root@13922:/var/www# vim .htaccess
- root@13922:/var/www# ls
- index.php
- root@13922:/var/www# cd ..
- root@13922:/var# ls
- backups cache lib local lock log mail opt run spool tmp www
- root@13922:/var# cd backups
- root@13922:/var/backups# ls
- root@13922:/var/backups# ls -a
- . ..
- root@13922:/var/backups# cd ..
- root@13922:/var# cd lib
- root@13922:/var/lib# ls
- apt dhcp dpkg initramfs-tools insserv logrotate mlocate pam quota snmp ucf urandom
- bind dhcpv6 fetchmail initscripts libuuid misc mysql php5 sendmail sudo update-rc.d vim
- root@13922:/var/lib# cd ..
- root@13922:/var#
- root@13922:/var# sendmail
- Recipient names must be specified
- ^Croot@13922:/var# l
- -bash: l: command not found
- root@13922:/var# ls
- backups cache lib local lock log mail opt run spool tmp www
- root@13922:/var# cd spool
- root@13922:/var/spool# ls
- cron mail mqueue mqueue-client rsyslog
- root@13922:/var/spool# cd ..
- root@13922:/var# cd ..
- root@13922:/# ls
- 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
- root@13922:/# cd ..
- root@13922:/# ls
- 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
- root@13922:/# cd ..
- root@13922:/# cd home
- root@13922:/home# ls
- root@13922:/home# ls -a
- . ..
- root@13922:/home# vim mcrcon.c
- root@13922:/home# ls
- mcrcon.c
- root@13922:/home# gcc -std=gnu11 -pedantic -Wall -Wextra -O2 -s -o mcrcon mcrcon.c
- -bash: gcc: command not found
- root@13922:/home#
- root@13922:/home#
- root@13922:/home# apt-get cc
- E: Invalid operation cc
- root@13922:/home# apt-get gcc
- E: Invalid operation gcc
- root@13922:/home# apt-get
- apt 0.9.7.9 for amd64 compiled on Oct 17 2014 09:15:56
- Usage: apt-get [options] command
- apt-get [options] install|remove pkg1 [pkg2 ...]
- apt-get [options] source pkg1 [pkg2 ...]
- apt-get is a simple command line interface for downloading and
- installing packages. The most frequently used commands are update
- and install.
- Commands:
- update - Retrieve new lists of packages
- upgrade - Perform an upgrade
- install - Install new packages (pkg is libc6 not libc6.deb)
- remove - Remove packages
- autoremove - Remove automatically all unused packages
- purge - Remove packages and config files
- source - Download source archives
- build-dep - Configure build-dependencies for source packages
- dist-upgrade - Distribution upgrade, see apt-get(8)
- dselect-upgrade - Follow dselect selections
- clean - Erase downloaded archive files
- autoclean - Erase old downloaded archive files
- check - Verify that there are no broken dependencies
- changelog - Download and display the changelog for the given package
- download - Download the binary package into the current directory
- Options:
- -h This help text.
- -q Loggable output - no progress indicator
- -qq No output except for errors
- -d Download only - do NOT install or unpack archives
- -s No-act. Perform ordering simulation
- -y Assume Yes to all queries and do not prompt
- -f Attempt to correct a system with broken dependencies in place
- -m Attempt to continue if archives are unlocatable
- -u Show a list of upgraded packages as well
- -b Build the source package after fetching it
- -V Show verbose version numbers
- -c=? Read this configuration file
- -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp
- See the apt-get(8), sources.list(5) and apt.conf(5) manual
- pages for more information and options.
- This APT has Super Cow Powers.
- root@13922:/home# apt-get install gcc
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following extra packages will be installed:
- cpp cpp-4.7 gcc-4.7 libc-dev-bin libc6-dev libgmp10 libitm1 libmpc2 libmpfr4 libquadmath0 linux-libc-dev manpages-dev
- Suggested packages:
- 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
- libgomp1-dbg libitm1-dbg libquadmath0-dbg libmudflap0-dbg libcloog-ppl0 libppl-c2 libppl7 binutils-gold glibc-doc
- The following NEW packages will be installed:
- cpp cpp-4.7 gcc gcc-4.7 libc-dev-bin libc6-dev libgmp10 libitm1 libmpc2 libmpfr4 libquadmath0 linux-libc-dev manpages-dev
- 0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
- Need to get 20.2 MB of archives.
- After this operation, 49.2 MB of additional disk space will be used.
- Do you want to continue [Y/n]? y
- Get:1 http://security.debian.org/ wheezy/updates/main linux-libc-dev amd64 3.2.73-2+deb7u2 [847 kB]
- Get:2 http://debian.mirror.serveriai.lt/debian/ wheezy/main libgmp10 amd64 2:5.0.5+dfsg-2 [250 kB]
- Get:3 http://debian.mirror.serveriai.lt/debian/ wheezy/main libitm1 amd64 4.7.2-5 [36.6 kB]
- Get:4 http://debian.mirror.serveriai.lt/debian/ wheezy/main libmpfr4 amd64 3.1.0-5 [538 kB]
- Get:5 http://debian.mirror.serveriai.lt/debian/ wheezy/main libquadmath0 amd64 4.7.2-5 [125 kB]
- Get:6 http://debian.mirror.serveriai.lt/debian/ wheezy/main libmpc2 amd64 0.9-4 [40.1 kB]
- Get:7 http://debian.mirror.serveriai.lt/debian/ wheezy/main cpp-4.7 amd64 4.7.2-5 [5416 kB]
- Get:8 http://debian.mirror.serveriai.lt/debian/ wheezy/main cpp amd64 4:4.7.2-1 [16.6 kB]
- Get:9 http://debian.mirror.serveriai.lt/debian/ wheezy/main gcc-4.7 amd64 4.7.2-5 [8296 kB]
- Get:10 http://debian.mirror.serveriai.lt/debian/ wheezy/main gcc amd64 4:4.7.2-1 [5064 B]
- Get:11 http://debian.mirror.serveriai.lt/debian/ wheezy/main libc-dev-bin amd64 2.13-38+deb7u8 [226 kB]
- Get:12 http://debian.mirror.serveriai.lt/debian/ wheezy/main libc6-dev amd64 2.13-38+deb7u8 [2665 kB]
- Get:13 http://debian.mirror.serveriai.lt/debian/ wheezy/main manpages-dev all 3.44-1 [1737 kB]
- Fetched 20.2 MB in 1s (12.3 MB/s)
- Selecting previously unselected package libgmp10:amd64.
- (Reading database ... 30636 files and directories currently installed.)
- Unpacking libgmp10:amd64 (from .../libgmp10_2%3a5.0.5+dfsg-2_amd64.deb) ...
- Selecting previously unselected package libitm1:amd64.
- Unpacking libitm1:amd64 (from .../libitm1_4.7.2-5_amd64.deb) ...
- Selecting previously unselected package libmpfr4:amd64.
- Unpacking libmpfr4:amd64 (from .../libmpfr4_3.1.0-5_amd64.deb) ...
- Selecting previously unselected package libquadmath0:amd64.
- Unpacking libquadmath0:amd64 (from .../libquadmath0_4.7.2-5_amd64.deb) ...
- Selecting previously unselected package libmpc2:amd64.
- Unpacking libmpc2:amd64 (from .../libmpc2_0.9-4_amd64.deb) ...
- Selecting previously unselected package cpp-4.7.
- Unpacking cpp-4.7 (from .../cpp-4.7_4.7.2-5_amd64.deb) ...
- Selecting previously unselected package cpp.
- Unpacking cpp (from .../cpp_4%3a4.7.2-1_amd64.deb) ...
- Selecting previously unselected package gcc-4.7.
- Unpacking gcc-4.7 (from .../gcc-4.7_4.7.2-5_amd64.deb) ...
- Selecting previously unselected package gcc.
- Unpacking gcc (from .../gcc_4%3a4.7.2-1_amd64.deb) ...
- Selecting previously unselected package libc-dev-bin.
- Unpacking libc-dev-bin (from .../libc-dev-bin_2.13-38+deb7u8_amd64.deb) ...
- Selecting previously unselected package linux-libc-dev:amd64.
- Unpacking linux-libc-dev:amd64 (from .../linux-libc-dev_3.2.73-2+deb7u2_amd64.deb) ...
- Selecting previously unselected package libc6-dev:amd64.
- Unpacking libc6-dev:amd64 (from .../libc6-dev_2.13-38+deb7u8_amd64.deb) ...
- Selecting previously unselected package manpages-dev.
- Unpacking manpages-dev (from .../manpages-dev_3.44-1_all.deb) ...
- Processing triggers for man-db ...
- Setting up libgmp10:amd64 (2:5.0.5+dfsg-2) ...
- Setting up libitm1:amd64 (4.7.2-5) ...
- Setting up libmpfr4:amd64 (3.1.0-5) ...
- Setting up libquadmath0:amd64 (4.7.2-5) ...
- Setting up libmpc2:amd64 (0.9-4) ...
- Setting up cpp-4.7 (4.7.2-5) ...
- Setting up cpp (4:4.7.2-1) ...
- Setting up gcc-4.7 (4.7.2-5) ...
- Setting up gcc (4:4.7.2-1) ...
- Setting up libc-dev-bin (2.13-38+deb7u8) ...
- Setting up linux-libc-dev:amd64 (3.2.73-2+deb7u2) ...
- Setting up libc6-dev:amd64 (2.13-38+deb7u8) ...
- Setting up manpages-dev (3.44-1) ...
- root@13922:/home# gcc -std=gnu11 -pedantic -Wall -Wextra -O2 -s -o mcrcon mcrcon.c
- root@13922:/home# ls
- mcrcon mcrcon.c
- root@13922:/home# ./mcrcon
- Usage: mcrcon [OPTIONS]... [COMMANDS]...
- Sends rcon commands to minecraft server.
- Option:
- -h Prints usage.
- -s Silent mode. Do not print data received from rcon.
- -t Terminal mode. Acts as interactive terminal.
- -p Rcon password. Default: "".
- -H Host address or ip.
- -P Port. Default: 25575.
- -c Do not print colors. Disables bukkit color printing.
- Invidual commands must be separated with spaces.
- Example:
- mcrcon -c -H 192.168.1.42 -P 9999 -p password cmd1 "cmd2 with spaces"
- minecraft rcon (mcrcon) 0.0.5.
- Report bugs to tiiffi_at_gmail_dot_com.
- root@13922:/home#
- root@13922:/home# ls
- mcrcon mcrcon.c
- root@13922:/home# rm mcrcon
- root@13922:/home# rm mcrcon.c
- root@13922:/home# ls
- root@13922:/home# ls
- root@13922:/home# cd ..
- root@13922:/# cd var
- root@13922:/var# cd www
- root@13922:/var/www# ls
- index.php
- root@13922:/var/www# cd ..
- root@13922:/var# ls
- backups cache lib local lock log mail opt run spool tmp www
- root@13922:/var# cd log
- root@13922:/var/log# ls
- alternatives.log auth.log debug dpkg.log fsck lpr.log mail.log mysql news upstart
- apache2 btmp dmesg faillog kern.log mail.err mail.warn mysql.err syslog user.log
- apt daemon.log dmesg.0 fontconfig.log lastlog mail.info messages mysql.log udev wtmp
- root@13922:/var/log# vim auth.log
- root@13922:/var/log# vim auth.log
- Jan 23 01:03:39 13922 saslauthd[1685]: detach_tty : master pid is: 1685
- Jan 23 01:03:39 13922 saslauthd[1685]: ipc_init : listening on socket: /var/run/saslauthd/mux
- Jan 23 01:03:39 13922 gpasswd[1736]: user smmta added by root to group sasl
- Jan 23 01:03:39 13922 gpasswd[1741]: user smmsp added by root to group sasl
- Jan 23 01:03:39 13922 saslpasswd2: error deleting entry from sasldb: DB_NOTFOUND: No matching key/data pair found
- Jan 23 01:03:39 13922 saslpasswd2: error deleting entry from sasldb: DB_NOTFOUND: No matching key/data pair found
- Jan 23 01:03:39 13922 saslpasswd2: error deleting entry from sasldb: DB_NOTFOUND: No matching key/data pair found
- Jan 23 01:03:39 13922 saslpasswd2: error deleting entry from sasldb: DB_NOTFOUND: No matching key/data pair found
- Jan 23 01:04:16 13922 sshd[1608]: Received signal 15; terminating.
- Jan 23 01:04:16 13922 sshd[6093]: Server listening on 0.0.0.0 port 22.
- Jan 23 01:09:12 13922 sshd[6378]: Accepted password for root from 82.130.29.184 port 59156 ssh2
- Jan 23 01:09:12 13922 sshd[6378]: pam_unix(sshd:session): session opened for user root by (uid=0)
- Jan 23 01:09:12 13922 sshd[6380]: error: lastlog_get_entry: Error reading from /var/log/lastlog: Expecting 292, got 1
- Jan 23 01:09:22 13922 sshd[6378]: pam_unix(sshd:session): session closed for user root
- Jan 23 01:09:57 13922 sshd[6387]: Accepted password for root from 82.130.29.184 port 59158 ssh2
- Jan 23 01:09:57 13922 sshd[6387]: pam_unix(sshd:session): session opened for user root by (uid=0)
- Jan 23 01:12:50 13922 groupadd[7194]: group added to /etc/group: name=mysql, GID=110
- Jan 23 01:12:50 13922 groupadd[7194]: group added to /etc/gshadow: name=mysql
- Jan 23 01:12:50 13922 groupadd[7194]: new group: name=mysql, GID=110
- Jan 23 01:12:50 13922 useradd[7200]: new user: name=mysql, UID=106, GID=110, home=/nonexistent, shell=/bin/false
- Jan 23 01:12:50 13922 chage[7205]: changed password expiry for mysql
- Jan 23 01:12:50 13922 chfn[7208]: changed user 'mysql' information
- Jan 23 01:20:01 13922 CRON[9710]: pam_unix(cron:session): session opened for user smmsp by (uid=0)
- Jan 23 01:20:01 13922 CRON[9710]: pam_unix(cron:session): session closed for user smmsp
- Jan 23 01:26:01 13922 CRON[9732]: pam_unix(cron:session): session opened for user root by (uid=0)
- Jan 23 01:39:01 13922 CRON[9755]: pam_unix(cron:session): session opened for user root by (uid=0)
- Jan 23 01:39:01 13922 CRON[9755]: pam_unix(cron:session): session closed for user root
- Jan 23 01:40:01 13922 CRON[9768]: pam_unix(cron:session): session opened for user smmsp by (uid=0)
- Jan 23 01:40:01 13922 CRON[9768]: pam_unix(cron:session): session closed for user smmsp
- Jan 23 01:40:27 13922 sshd[9790]: Connection closed by 193.138.219.228 [preauth]
- Jan 23 01:40:31 13922 sshd[9793]: Connection closed by 193.138.219.228 [preauth]
- Jan 23 01:40:33 13922 sshd[9796]: Connection closed by 193.138.219.228 [preauth]
- Jan 23 01:41:20 13922 sshd[9800]: Connection closed by 193.138.219.228 [preauth]
- Jan 23 01:41:22 13922 sshd[9802]: Connection closed by 193.138.219.228 [preauth]
- Jan 23 01:41:24 13922 sshd[9804]: Connection closed by 193.138.219.228 [preauth]
- Jan 23 01:51:44 13922 sshd[13440]: Invalid user jimi_on_homo from 193.138.219.228
- Jan 23 01:51:44 13922 sshd[13440]: input_userauth_request: invalid user jimi_on_homo [preauth]
- Jan 23 01:51:46 13922 sshd[13440]: pam_unix(sshd:auth): check pass; user unknown
- 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
- Jan 23 01:51:48 13922 sshd[13440]: Failed password for invalid user jimi_on_homo from 193.138.219.228 port 38609 ssh2
- Jan 23 01:51:48 13922 sshd[13440]: pam_unix(sshd:auth): check pass; user unknown
- Jan 23 01:51:51 13922 sshd[13440]: Failed password for invalid user jimi_on_homo from 193.138.219.228 port 38609 ssh2
- Jan 23 01:51:52 13922 sshd[13440]: pam_unix(sshd:auth): check pass; user unknown
- Jan 23 01:51:54 13922 sshd[13440]: Failed password for invalid user jimi_on_homo from 193.138.219.228 port 38609 ssh2
- Jan 23 01:51:54 13922 sshd[13440]: Connection closed by 193.138.219.228 [preauth]
- 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
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- "auth.log" 47L, 4271C 1,0-1 All
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement