Nmap简单使用
Nmap简单使用躲避防火墙,分组发送报文1nmap -f -v 127.0.0.1
设定最大传输单元,必须是8的倍数1nmap --mtu 16 127.0.0.1
指定多个诱饵1nmap -D 192.168.61.130 ME 127.0.0.1 #(ME 后面接目标地址)
源地址欺骗1namp -sI www.baidu.com:80 127.0.0.1
源端口欺骗1nmap --source-port 88 127.0.0.1
根据发包长度(tcp是40字节,icmp溢出是28字节)1nmap --data-length 30 127.0.0.1
MAC地址欺骗1nmap -sT -PN --spoof-mac 0 127.0.0.1
DDos攻击
DDos攻击12345git clone https://github.com/Ha3MrX/DDOs-Attack # 下载工具vim ddos-attack.py#!/usr/bin/python2chmod +777 ddos-attack.py #直接使用
centos7安装php
centos7安装php环境是apache2+mariadb+php
先安装php
1[root@cn7]/# yum -y install php
安装php相关组件
123[root@cn7]/# yum -y install php-mysql php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-bcmath php-mhash[root@cn7]/# systemctl restart mariadb[root@cn7]/# systemctl restart httpd
通过php -v 查看信息
1234[root@cn7]/var/www/html# php -vPHP 5.4.16 (cli) (built: Apr 1 2020 04:07:17)Copyright (c) 1997-2013 The PHP GroupZend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
进入/var/www/html目 ...
centos7安装mariadb
centos7安装mariadbmariadb是MYSQL的一个分支,语法基本和mysql一样,而且兼容mysql,centos7中自带了mariadb的软件包。
1234[root@cn7]/# cat /etc/redhat-releaseCentOS Linux release 7.9.2009 (Core)[root@cn7]/# uname -aLinux cn7 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
安装mariadb:1[root@cn7]/# yum -y install mariadb-server
开启mariadb并设置开机启动:123[root@cn7]/# systemctl start mariadb[root@cn7]/# systemctl enable mariadbCreated symlink from /etc/systemd/system/multi-user.target.wants/mariadb ...
centos7安装apache
centos7 安装Apache实验准备:vmware上安装的centos71234[root@cn7]/# uname -aLinux cn7 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux[root@cn7]/# cat /etc/redhat-releaseCentOS Linux release 7.9.2009 (Core)
安装Apache:1[root@cn7]/# yum -y install httpd
查看http状态:123456[root@cn7]/# systemctl status httpd● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) Active: inactive (dead) Docs: ...
first-blog
Test for my first blog这是正文。
11