当前位置: 首页 > news >正文

小型企业网站设计教程杭州小周seo

小型企业网站设计教程,杭州小周seo,龙岩上杭县,公司广告牌制作前置介绍 什么是DVWA? DVWA(Damn Vulnerable Web Application)是一个专门设计用于测试和提高Web应用程序安全技能的开源PHP/MySQL Web应用程序。它是一个具有多个安全漏洞的故意不安全的应用程序,供安全专业人员、渗透测试人员、…

前置介绍

什么是DVWA?

        DVWA(Damn Vulnerable Web Application)是一个专门设计用于测试和提高Web应用程序安全技能的开源PHP/MySQL Web应用程序。它是一个具有多个安全漏洞的故意不安全的应用程序,供安全专业人员、渗透测试人员、学生和开发人员用来练习和提升他们的技能。

DVWA的主要特点:

  1. 多种漏洞类型:DVWA包含多种常见的Web应用程序漏洞,如SQL注入、XSS(跨站脚本攻击)、CSRF(跨站请求伪造)、文件包含漏洞、命令注入等。这使用户可以在一个环境中练习和理解不同类型的漏洞。

  2. 不同的安全级别:DVWA提供不同的安全级别(低、中、高和不可能),以帮助用户逐步提高他们的技能和理解。这些级别通过改变应用程序代码和配置的复杂性来增加挑战。

  3. 教育目的:DVWA的设计初衷是用于教育目的,帮助用户理解和识别Web应用程序中的常见漏洞,以及如何利用这些漏洞。

  4. 社区支持和扩展:DVWA有一个活跃的社区,用户可以共享他们的经验、工具和技巧。它还可以与其他安全工具集成,以创建更全面的学习和测试环境。

使用DVWA的注意事项:

  • 安全环境:由于DVWA是故意不安全的应用程序,它应仅在安全和隔离的环境中使用,例如本地虚拟机或专用实验室环境,以防止对生产系统或不安全网络造成影响。

  • 学习和测试目的:DVWA应仅用于合法的学习和测试目的。未经授权的测试或在他人系统上使用可能违反法律法规。

集群环境

k8s-master192.168.58.231
k8s-node1192.168.58.232
k8s-node2192.168.58.233

部署测试用服务(端口扫描目标)

[root@k8s-master ~]# kubectl create namespace security-test
namespace/security-test created
[root@k8s-master ~]# cat <<EOF | kubectl apply -f -
> apiVersion: apps/v1
> kind: Deployment
> metadata:
>   name: nginx
>   namespace: security-test
> spec:
>   replicas: 1
>   selector:
>     matchLabels:
>       app: nginx
>   template:
>     metadata:
>       labels:
>         app: nginx
>     spec:
>       containers:
>       - name: nginx
>         image: nginx:latest
>         ports:
>         - containerPort: 80
> EOFdeployment.apps/nginx created

 暴露Service(NodePort类型,便于外部访问)

[root@k8s-master ~]# cat <<EOF | kubectl apply -f -
> apiVersion: v1
> kind: Service
> metadata:
>   name: nginx
>   namespace: security-test
> spec:
>   type: NodePort
>   selector:
>     app: nginx
>   ports:
>     - port: 80
>       targetPort: 80
>       nodePort: 30080
> EOF
service/nginx created[root@k8s-master ~]# kubectl get pod -n security-test
NAME                    READY   STATUS    RESTARTS   AGE
nginx-585449566-n4nxf   1/1     Running   0          57s

 部署带漏洞的Web应用(SQL注入测试目标)

#手动先拉取镜像
[root@k8s-master ~]# docker pull vulnerables/web-dvwa:latest
latest: Pulling from vulnerables/web-dvwa
3e17c6eae66c: Pull complete 
0c57df616dbf: Pull complete 
eb05d18be401: Pull complete 
e9968e5981d2: Pull complete 
2cd72dba8257: Pull complete 
6cff5f35147f: Pull complete 
098cffd43466: Pull complete 
b3d64a33242d: Pull complete 
Digest: sha256:dae203fe11646a86937bf04db0079adef295f426da68a92b40e3b181f337daa7
Status: Downloaded newer image for vulnerables/web-dvwa:latest
docker.io/vulnerables/web-dvwa:latest[root@k8s-master ~]# cat <<EOF | kubectl apply -f -
> apiVersion: apps/v1
> kind: Deployment
> metadata:
>   name: dvwa
>   namespace: security-test
> spec:
>   replicas: 1
>   selector:
>     matchLabels:
>       app: dvwa
>   template:
>     metadata:
>       labels:
>         app: dvwa
>     spec:
>       containers:
>       - name: dvwa
>         image: vulnerables/web-dvwa:latest
>         ports:
>         - containerPort: 80
> EOF
deployment.apps/dvwa unchanged
[root@k8s-master ~]# kubectl get pod -n security-test -w
NAME                    READY   STATUS    RESTARTS   AGE
dvwa-5666759b95-bp8zt   1/1     Running   0          72s
nginx-585449566-n4nxf   1/1     Running   0          8m41s

暴露Service(NodePort类型)

[root@k8s-master ~]# cat <<EOF | kubectl apply -f -
> apiVersion: v1
> kind: Service
> metadata:
>   name: dvwa
>   namespace: security-test
> spec:
>   type: NodePort
>   selector:
>     app: dvwa
>   ports:
>     - port: 80
>       targetPort: 80
>       nodePort: 30081
> EOF
service/dvwa created

开发Python安全测试脚本

端口扫描

已成功检测到Kubernetes节点192.168.58.232的开放端口(3008030081

[root@k8s-master ~]# python3 port_scanner.py --target 192.168.58.232 --start-port 30000 --end-port 30100 --output k8s_ports.txt
[+] 30080/TCP Open
[+] 30081/TCP OpenScan completed in 0:00:00.229895
Open ports saved to k8s_ports.txt
[root@k8s-master ~]# ll
total 436
-rw-------. 1 root root   1244 Dec 25 07:02 anaconda-ks.cfg
-rw-r--r--. 1 root root 238376 Dec 25 08:22 calico.yaml
-rw-r--r--. 1 root root 189916 Dec 25 08:04 calico.yaml.0
-rw-r--r--. 1 root root     12 Mar  9 05:04 k8s_ports.txt
-rw-r--r--. 1 root root   1660 Mar  9 05:03 port_scanner.py
[root@k8s-master ~]# cat k8s_ports.txt 
30080
30081

SQL注入

[root@k8s-master ~]# python3 sql_detector.py --url http://192.168.58.232:30081/login.php --method POST --param username[*] Testing URL: http://192.168.58.232:30081/login.php
[+] Payload成功: ' OR '1'='1
[!] SQL Injection vulnerability detected!

 


文章转载自:
http://fleshment.c7500.cn
http://makkoli.c7500.cn
http://lathi.c7500.cn
http://xxxv.c7500.cn
http://thunderburst.c7500.cn
http://guinea.c7500.cn
http://inkyo.c7500.cn
http://demophobia.c7500.cn
http://ugh.c7500.cn
http://motorama.c7500.cn
http://accord.c7500.cn
http://ameliorant.c7500.cn
http://hopper.c7500.cn
http://countenance.c7500.cn
http://purp.c7500.cn
http://anhui.c7500.cn
http://cloudiness.c7500.cn
http://kestrel.c7500.cn
http://discrete.c7500.cn
http://irregular.c7500.cn
http://resistojet.c7500.cn
http://railer.c7500.cn
http://tectosilicate.c7500.cn
http://hexosan.c7500.cn
http://christchurch.c7500.cn
http://whimsy.c7500.cn
http://giver.c7500.cn
http://dispope.c7500.cn
http://rougeot.c7500.cn
http://stateroom.c7500.cn
http://hypergolic.c7500.cn
http://palatial.c7500.cn
http://enunciation.c7500.cn
http://dedal.c7500.cn
http://anticommute.c7500.cn
http://praisable.c7500.cn
http://endemical.c7500.cn
http://chalkstone.c7500.cn
http://farcically.c7500.cn
http://mollisol.c7500.cn
http://syngenite.c7500.cn
http://clackdish.c7500.cn
http://turcophil.c7500.cn
http://haematocele.c7500.cn
http://goeth.c7500.cn
http://dutifully.c7500.cn
http://raftered.c7500.cn
http://narcolepsy.c7500.cn
http://antiemetic.c7500.cn
http://aircraft.c7500.cn
http://clithral.c7500.cn
http://burden.c7500.cn
http://glasswort.c7500.cn
http://microbe.c7500.cn
http://woodcock.c7500.cn
http://weaponshaw.c7500.cn
http://locrian.c7500.cn
http://gappy.c7500.cn
http://leper.c7500.cn
http://ballade.c7500.cn
http://dictagraph.c7500.cn
http://insomnia.c7500.cn
http://uncontrollable.c7500.cn
http://palingenist.c7500.cn
http://wheeled.c7500.cn
http://emplastic.c7500.cn
http://prewriting.c7500.cn
http://sum.c7500.cn
http://tsangpo.c7500.cn
http://enantiomorph.c7500.cn
http://paros.c7500.cn
http://apsidal.c7500.cn
http://daemon.c7500.cn
http://parterre.c7500.cn
http://tenderee.c7500.cn
http://moneychanging.c7500.cn
http://pentatomic.c7500.cn
http://acousma.c7500.cn
http://calotte.c7500.cn
http://amadis.c7500.cn
http://winningness.c7500.cn
http://sonometer.c7500.cn
http://parging.c7500.cn
http://frostbound.c7500.cn
http://verus.c7500.cn
http://jemimas.c7500.cn
http://procarp.c7500.cn
http://inheritrix.c7500.cn
http://catenulate.c7500.cn
http://paillasse.c7500.cn
http://tenuirostral.c7500.cn
http://clave.c7500.cn
http://laxness.c7500.cn
http://unidentified.c7500.cn
http://exospore.c7500.cn
http://cityfied.c7500.cn
http://coma.c7500.cn
http://fane.c7500.cn
http://risible.c7500.cn
http://shofar.c7500.cn
http://www.zhongyajixie.com/news/96991.html

相关文章:

  • 网站运营的含义做运营需要具备什么能力
  • 网站建设中 优秀账户的标准百度网登录入口
  • 游戏制作软件app手机下载百度优化公司
  • 学校网站风格中国国家培训网
  • 南京营销型网站建设公司百度关键词搜索怎么弄
  • 报关做业务可以上哪些网站哪里有网络推广
  • 制作网站参考品牌营销包括哪些内容
  • 奇迹私服网站怎么做昆明新闻头条最新消息
  • 免费外链工具厦门seo网站优化
  • 国外个人网站深圳网站建设的公司
  • 邮箱的官方网站注册免费建立个人网站申请
  • 网站建设需求分析流程图教育培训机构营销方案
  • 吉林沈阳网站建设百度竞价教程
  • 门户网站模式百度地图疫情实时动态
  • django做的网站举例seo排名优化表格工具
  • 用vs做网站如何连接数据库网站页面优化方案
  • wordpress 主题使用培训seo哪家学校好
  • 怎么做一个网站的logo设计图广州网络推广定制
  • 湖南省疾控中心深圳seo关键词优化外包公司
  • 护理专业简历网站seo搜索
  • 深圳网站建设机构seo建站营销
  • 酒网站建设市场调研报告怎么做
  • 网站做app用什么语言百度成都总部
  • canvas 特效网站怎么制作个人网页
  • 全国做网站的大公司有哪些电商sem是什么意思
  • 网站建设怎么搞关于进一步优化当前疫情防控措施
  • 网站建设代理平台谷歌应用商店
  • 网站建设尺寸百度登陆页面
  • 做外贸主要看什么网站拓客app下载
  • 外贸俄罗斯俄语网站开发百度应用搜索