Fourtune_ML_CTF_Challenge
📅 2026/6/23 10:18:09
👁️ 次浏览
搭建慢就用我的DockerfileFROM python:3.11-slim WORKDIR /app RUN apt-get update apt-get install -y --no-install-recommends ca-certificates rm -rf /var/lib/apt/lists/* RUN pip install --no-cache-dir --trusted-host mirrors.aliyun.com \ -i http://mirrors.aliyun.com/pypi/simple/ \ scikit-image requests COPY model.h5 server.py templates/ ./ EXPOSE 8080 CMD [python, server.py]Server.pyimport os os.environ[TF_CPP_MIN_LOG_LEVEL]2 from http.server import HTTPServer, BaseHTTPRequestHandler import ssl import sys import cgi import base64 import numpy as np # from skimage import io from io import BytesIO import requests import keras from PIL import Image import imghdr model keras.models.load_model(./model.h5) print(Welcome to .....\n) print(\ █▀▀ █▀█ █░█ █▀█ ▀█▀ █░█ █▄░█ █▀▀ █▀▄▀█ █░░ █▀▀ ▀█▀ █▀▀ █▀▀ █░█ ▄▀█ █░░ █░░ █▀▀ █▄░█ █▀▀ █▀▀ █▀░ █▄█ █▄█ █▀▄ ░█░ █▄█ █░▀█ ██▄ █░▀░█ █▄▄ █▄▄ ░█░ █▀░ █▄▄ █▀█ █▀█ █▄▄ █▄▄ ██▄ █░▀█ █▄█ ██▄ ) print(Created by: Alex Neelankavil Devassy) print(Access http://127.0.0.1 in host systemss browser) print(Press CtrlC to quit) with open(templates/AICorp.html,rb) as file: STATIC_HTML_PAGE file.read() #simple web server class SimpleHTTPRequestHandler(BaseHTTPRequestHandler): def do_GET(self): forwardedfor str(self.headers[X-Forwarded-For]) print(fGET {forwardedfor}) self.send_response(200) self.end_headers() self.wfile.write(STATIC_HTML_PAGE) def do_POST(self): content_length int(self.headers[Content-Length]) if int(content_length) 10000000: print(File too big) self.send_response(500, File too big) return form cgi.FieldStorage( fpself.rfile, headersself.headers, environ{REQUEST_METHOD:POST, CONTENT_TYPE:self.headers[Content-Type], }) filename str(form[file].filename) forwardedfor str(self.headers[X-Forwarded-For]) print(fPOST {forwardedfor} File: {filename} - , end .) data form[file].file.read() print(Checking image, end . ) #print(data) filetype imghdr.what(file, hdata) print(filetype) if filetype not in [png,jpeg,gif]: print(fUnsupported media type: {filetype}, end . ) self.send_response(415, Only png, jpg and gif are supported.) return image np.array(Image.open(BytesIO(data)).convert(L)) processedImage np.zeros([1, 28, 28, 1]) for yy in range(28): for xx in range(28): processedImage[0][xx][yy][0] float(image[xx][yy]) / 255 shownDigit np.argmax(model.predict(processedImage)) self.send_response(200) self.send_header(Content-Type, application/json) self.end_headers() if shownDigit 4: response { text: Welcome Mr. str(shownDigit) tune {BackPropogation Magic}} else: response { text: Access Denied} sys.stdout.flush() self.wfile.write(bytes(response,utf-8)) httpd HTTPServer((, 8080), SimpleHTTPRequestHandler) httpd.serve_forever()攻击流程样本对抗就好
新手必踩 Redis 10 个低级坑:过期时间、KEYS 命令、持久化误区Redis 用起来简单,踩起坑来要命。很多人以为自己会用 Redis,其实只是在"会用"和"会坑自己"之间反复横跳。以下这 10 个坑,每一个都是生产环境用真…
📅 2026/6/23 10:18:09
1. 项目概述:为什么这4个Agent高频场景值得单独拎出来讲最近两周,我几乎没怎么手动打开过浏览器的标签页,也没再复制粘贴过任何一段代码、会议纪要或邮件草稿。不是因为变懒了,而是手头四个固定流程——周报自动归档、跨平台会议纪…
📅 2026/6/23 10:18:09
终极指南:让老款Mac重获新生!OpenCore Legacy Patcher完整使用教程 【免费下载链接】OpenCore-Legacy-Patcher Experience macOS just like before 项目地址: https://gitcode.com/GitHub_Trending/op/OpenCore-Legacy-Patcher
还在为手中的老款M…
📅 2026/6/23 10:18:09
终极指南:如何用OpenCore Legacy Patcher让老旧Mac重获新生,安装最新macOS系统 【免费下载链接】OpenCore-Legacy-Patcher Experience macOS just like before 项目地址: https://gitcode.com/GitHub_Trending/op/OpenCore-Legacy-Patcher
你是否…
📅 2026/6/23 11:13:22
1. 项目概述:当函数式编程遇上时序预测如果你正在处理时间序列数据,无论是金融市场的波动、物联网传感器的读数,还是服务器集群的监控指标,你大概率已经体验过传统时序预测库的“甜蜜负担”。它们功能强大,但往往伴随着…
📅 2026/6/23 11:13:22
🗂️ 我的项目目录(12 个关键文件)text/root/message-board/
│
├── backend/ ← 【Docker 相关】打包后端用的
│ ├── Dockerfile ← 告诉 Docker 怎么打包后端
│ ├── package.jso…
📅 2026/6/23 11:13:22
时间过的真快,转眼就要到金九银十了,现在面临年初裁员,公司跳槽,不论是校招还是社招都避免不了各种面试,如何去准备面试就变得格外重要了,相信一些小伙伴也在为自己的技术,薪资,发展…
📅 2026/6/23 11:13:22
突发:量化公司的 AI 投资之问如果梁文锋掌管的幻方量化,没有去做大模型,而是去做了投资,会有怎样的结果?这是个很有意思的问题。华尔街一家量化交易公司 Jane Street,不仅净收益高达 396 亿美元,…
📅 2026/6/23 11:13:22
2020年以来,AI数字人行业经历了从概念炒作到场景落地的蜕变。然而,当众人聚焦于“表情更仿真”或“声音更自然”时,一个更深层的变革正在发生——AI智能体平台数字人正从单纯的视觉代言工具,进化为具备自主理解与决策能力的交互实…
📅 2026/6/23 11:08:20
1. GRIP模型:问答系统的新范式在自然语言处理领域,问答系统(QA)一直是最具挑战性的任务之一。传统方法要么依赖预训练语言模型的参数化知识,要么采用固定的检索-生成流程,都存在明显的局限性。GRIP(Grounded Retrieval with Itera…
📅 2026/6/23 0:51:59
1. 项目概述:一次对高危漏洞的深度剖析与实战复现最近在安全圈里,一个关于Atlassian Confluence的漏洞讨论热度很高,编号是CVE-2023-22527。这个漏洞的标签是“远程代码执行”,对于任何使用Confluence作为知识管理和协作平台的企业…
📅 2026/6/23 0:51:59
1. 项目概述:为什么微信小程序也需要渗透测试? 你可能觉得,微信小程序运行在微信这个“超级App”的沙箱里,天然就比独立的App或网站更安全。这种想法在几年前或许还说得通,但随着小程序生态的爆炸式增长,它…
📅 2026/6/23 0:51:59
1. 从手册到实战:SLIDER与SPINBOX控件的深度解析在嵌入式GUI开发里摸爬滚打十几年,我见过太多项目因为界面交互的“小问题”而卡壳。参数调节不跟手、数值输入效率低下,这些看似不起眼的细节,往往是决定产品用户体验成败的关键。e…
📅 2026/6/23 3:33:35
暗黑2重获新生:D2DX如何让经典游戏在现代Windows系统上流畅运行 【免费下载链接】d2dx D2DX is a complete solution to make Diablo II run well on modern PCs, with high fps and better resolutions. 项目地址: https://gitcode.com/gh_mirrors/d2/d2dx
…
📅 2026/6/23 2:15:55
CompressO终极指南:免费开源的视频图像压缩神器 【免费下载链接】compressO Convert any video/image into a tiny size. 100% free & open-source. Available for Mac, Windows & Linux. 项目地址: https://gitcode.com/gh_mirrors/co/compressO
你…
📅 2026/6/23 3:43:12