2019-9-17: penetration testing, based learning, apache acquaintance, mysql acquaintance and other notes

python -m SimpleHTTPServer

gedit text editor

apache2 default configuration file directory: / etc / apache2 /
apache2 default home page Source: / var / www / html

mysql database
sudo mysql -p-uroot-
Show Databases; View all databases
select user (); view current user

mysql default configuration file: /etc/mysql/mysql.conf.d/mysql.cnf
mysql remote connection: Edit the file, comment out the bind-address 127.0.0.1

php install apt install php7.0 php-pear libapache2- mod-php7.0 php7.0-mysql PHP7 installation and expansion
php assembly attachment assembly apt install php7.0-curl php7.0-json php7.0-cgi installed php of

win2008 service installation
1, iis, internet information service internet information service, providing web, ftp, smtp service
2003 XP IIS 6
08 7 IIS 7

asp + access Server or SQL
PHP + MySQL

FTP server, file transfer protocol, based on the C / S, working at the application layer, using 20 (transmission data) port 21 (transmission command), cleartext

Type
1, Non-Isolated account, the same account to access all server data types
2, isolated accounts, access data from different accounts is not the same

Server set up environmental requirements
1, ip address can be configured statically or dynamically acquire
2, FTP running on iis

Non-isolated accounts set up
1, install iis, and pay attention to the role of FTP installation
2, open Iis, right 'website' -> Click to add ftp site, the wizard settings

ftp commonly used commands
help help
delete delete
ls -l list a directory
close closed connection ftp
bye quit
dir to view the directory
cd into the folder
pwd view the directory
get filename: Download file
put the file path: Upload file
mdir create directory

Guess you like

Origin www.cnblogs.com/sym945/p/11580817.html