2021-08-29web培训作业3(fckeditor判断,通达oa漏洞,渗透脑图)

本文介绍了如何通过Python脚本判断FCKeditor的版本,列举了多个存在FCKeditor的目标,并探讨了通达OA的靶机环境学习,包括端口扫描和漏洞总结。此外,还提到了一个XSS攻击的实施方法,并展示了渗透测试的思维导图。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

 

 欢迎大家一起来Hacking水友攻防实验室学习,渗透测试,代码审计,免杀逆向,实战分享,靶场靶机,求关注

 

Web3 作业

 

一、写一个脚本判断fck的版本

思路:找到“version”字段,向下取30个字符,其中规则匹配1.2   1.2.3  1.2.3.4  这样的。输出。

Python脚本:

import os

import re

import requests


def check(url):

    headers={

    'User-Agent':"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"

}

    res = requests.get(url)

    return res.text


def getans(aim):

    pattern = re.compile(r'((\d.){2,4})')

    res =  pattern.findall(aim)

    print('the version code is : ')

    print(res[0][0][0:-1])


def main():

    print('this message is from main function')

    res = check('http://www.yunusemre.net/trpanel/fckeditor/editor/dialog/fck_about.html')

    #print(len(res))

    firstposition = res.find('version')

    endposition = firstposition + 100

    aim = res[firstposition:endposition]

   # print(aim)

    getans (aim)


if __name__ == '__main__':

    main()

二、搜索至少10个fck的目标

这个简单,直接在fofa中,header:”/fckeditor/editor/dialog/fck_about.html”

或者直接googlehacking: inurl:“/fckeditor/editor/dialog/fck_about.html”

目标如下:

http://voies-hydrauliques.wallonie.be/opencms/resources/editors/fckeditor/editor/dialog/fck_about.html         2.3.2

egs-.*: src/fckeditor/editor/dialog/fck_about.html | Fossies       2.2

https://maybank-uum.angelfire.com/fckeditor/editor/dialog/fck_about.html     2.4.2

https://pokeyplay.com/libreria/fckeditor/editor/dialog/fck_about.html         2.4.2

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值