Crafting Standalone Python Proof of Concept Exploits
作者用Python演示了从零到英雄的漏洞利用概念证明,创建了一个存在不安全文件上传漏洞的PHP网站,展示了如何通过该漏洞实现远程代码执行,强调了教育用途和合法渗透测试的重要性。 2025-6-10 06:49:3 Author: infosecwriteups.com(查看原文) 阅读量:13 收藏

Pampuna

Lately I’ve been playing around with fully self-contained, zero-to-hero, proof of concept exploits in Python. To demonstrate this concept I’ve created a simple vulnerable PHP website which asks the user for an URL (its code is included at the end). It “scans” this endpoint and stores the file in a temporary folder, which also happens to be exposed through the web server. A bad practice, this results in a classic combination of an insecure file upload leading to remote code execution.

In this article we’ll explore how to set up a standalone proof of concept exploit for this fictitious website.

Not a member? Read this article for free on my site.

Server on fire (DALL·E 3)

Note that this article is written for educational purposes and is intended only for legal penetration testing and red teaming activities, where explicit permission has been granted. If you wish to test any of the scripts provided, please refer to the disclaimer at the end of this article.

Normally, when creating a proof of concept exploit, a regular workflow would look something like this:

  • Create a webserver and host your payload. This can easily be done by using Apache or a quick and dirty Python server (python3 -m http.server 80). Depending on the setup used, you could also tail the access log to keep track of…

文章来源: https://infosecwriteups.com/crafting-standalone-python-proof-of-concept-exploits-5e02317134db?source=rss----7b722bfd1b8d---4
如有侵权请联系:admin#unsafe.sh