mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-05-14 13:41:07 +00:00
Update server.py
This commit is contained in:
parent
ed91362515
commit
d8dd92f9c0
|
@ -144,6 +144,12 @@ def conn_string(conn: socket.socket, data: bytes, addr: bytes):
|
||||||
# will be close by the client
|
# will be close by the client
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# Check a preludes in connectors
|
||||||
|
connector = test_connectors(data)
|
||||||
|
if connector:
|
||||||
|
logger.info("[*] Connecting...")
|
||||||
|
connector.connect(conn, data)
|
||||||
|
|
||||||
# parse first data (header)
|
# parse first data (header)
|
||||||
webserver, port, scheme, method, url = parse_first_data(data)
|
webserver, port, scheme, method, url = parse_first_data(data)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user