MCPcopy Create free account
hub / github.com/Geeoon/asploit / send_loop

Function send_loop

src/PHPExploitProcessor.py:8–17  ·  view source on GitHub ↗
(conn: socket.socket,
              stopped,
              stopped_lock: threading.Lock)

Source from the content-addressed store, hash-verified

6from ExploitProcessor import ExploitProcessor
7
8def send_loop(conn: socket.socket,
9 stopped,
10 stopped_lock: threading.Lock):
11 stopped_lock.acquire()
12 while not stopped[0]:
13 stopped_lock.release()
14 command = sys.stdin.readline()
15 stopped_lock.acquire()
16 if not stopped[0]:
17 conn.send(command.encode())
18
19
20"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected