-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
24 lines (20 loc) · 859 Bytes
/
main.py
File metadata and controls
24 lines (20 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from web import WebPot
from ftp import FtpPot
from telnet import TelnetPot
from dotenv import dotenv_values
import threading
env = dotenv_values('.env')
host = env['IP']
web_port = int(env['WEB_PORT'])
web_pot = threading.Thread(None, WebPot(host, web_port).run)
web_pot.start()
ftp_port = int(env['FTP_PORT'])
ftp_connection_message = env['FTP_CONNECTION_MESSAGE'] + '\n\r'
ftp_bait_message = env['FTP_BAIT_MESSAGE'] + '\n\r'
ftp_pot = threading.Thread(None, FtpPot(host, ftp_port, ftp_connection_message, ftp_bait_message).run)
ftp_pot.start()
telnet_port = int(env['TELNET_PORT'])
telnet_connection_message = env['TELNET_CONNECTION_MESSAGE']
telnet_bait_message = env['TELNET_BAIT_MESSAGE']
telnet_pot = threading.Thread(None, TelnetPot(host, telnet_port, telnet_connection_message, telnet_bait_message).run)
telnet_pot.start()