mirror of
https://github.com/DanMcInerney/LANs.py.git
synced 2025-07-12 16:13:55 -07:00
added requirements.txt
This commit is contained in:
parent
e5984233e9
commit
cf27da06cc
2 changed files with 7 additions and 11 deletions
15
LANs.py
15
LANs.py
|
@ -37,28 +37,21 @@ def module_check(module):
|
|||
exit('[-] Exiting due to missing dependency')
|
||||
|
||||
import os
|
||||
|
||||
try:
|
||||
import nfqueue
|
||||
except Exception:
|
||||
raise
|
||||
module_check('nfqueue')
|
||||
import nfqueue
|
||||
import logging
|
||||
|
||||
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
|
||||
try:
|
||||
from scapy.all import *
|
||||
except Exception:
|
||||
module_check('scapy')
|
||||
from scapy.all import *
|
||||
from scapy.all import *
|
||||
conf.verb = 0
|
||||
# Below is necessary to receive a response to the DHCP packets because we're sending to 255.255.255.255 but receiving from the IP of the DHCP server
|
||||
conf.checkIPaddr = 0
|
||||
try:
|
||||
from twisted.internet import reactor
|
||||
except Exception:
|
||||
module_check('twisted')
|
||||
from twisted.internet import reactor
|
||||
from twisted.internet import reactor
|
||||
from twisted.internet import reactor
|
||||
from twisted.internet.interfaces import IReadDescriptor
|
||||
from twisted.internet.protocol import Protocol, Factory
|
||||
from sys import exit
|
||||
|
|
3
requirements.txt
Normal file
3
requirements.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
scapy
|
||||
twisted
|
||||
requests
|
Loading…
Add table
Add a link
Reference in a new issue