0ad9bdda8e
defining much of dhcp and feature functionality Avoid using Hidden Dragon
66 lines
2.7 KiB
Python
66 lines
2.7 KiB
Python
# Copyright (c) 2024 Anoduck
|
|
#
|
|
# This software is released under the MIT License.
|
|
# https://opensource.org/licenses/MIT
|
|
from .hidden_dragon.__main__ import HiddenDragon
|
|
from ctiger.dataframe import CtigerDataFrame
|
|
import os
|
|
|
|
|
|
class Dragon:
|
|
|
|
def __init__(self):
|
|
print("""
|
|
______ __ __ ______ ______ ______
|
|
/\ ___\ /\ "-.\ \ /\__ _\ /\ ___\ /\ == \
|
|
\ \ __\ \ \ \-. \ \/_/\ \/ \ \ __\ \ \ __<
|
|
\ \_____\ \ \_\\"\_\ \ \_\ \ \_____\ \ \_\ \_\
|
|
\/_____/ \/_/ \/_/ \/_/ \/_____/ \/_/ /_/
|
|
|
|
______ __ __ ______
|
|
/\__ _\ /\ \_\ \ /\ ___\
|
|
\/_/\ \/ \ \ __ \ \ \ __\
|
|
\ \_\ \ \_\ \_\ \ \_____\
|
|
\/_/ \/_/\/_/ \/_____/
|
|
______________
|
|
,===:'., `-._
|
|
`:.`---.__ `-._
|
|
`:. `--. `.
|
|
\. `. `.
|
|
(,,(, \. `. ____,-`.,
|
|
(,' `/ \. ,--.___`.'
|
|
, ,' ,--. `, \.;' `
|
|
`{D, { \ : \;
|
|
V,,' / / //
|
|
j;; / ,' ,-//. ,---. ,
|
|
\;' / ,' / _ \ / _ \ ,'/
|
|
\ `' / \ `' / \ `.' /
|
|
`.___,' `.__,' `.__,'
|
|
) (
|
|
( /( ( ( )\ )
|
|
)\()) ( )\ ) )\ ) ( (()/( ( ) ( (
|
|
((_)\ )\ (()/( (()/( ))\ ( /(_)) )( ( /( )\))( ( (
|
|
_((_)((_) ((_)) ((_))/((_) )\ ) (_))_ (()\ )(_))((_))\ )\ )\ )
|
|
| || | (_) _| | _| |(_)) _(_/( | \ ((_)((_)_ (()(_)((_) _(_/(
|
|
| __ | | |/ _` |/ _` |/ -_)| ' \)) | |) || '_|/ _` |/ _` |/ _ \| ' \))
|
|
|_||_| |_|\__,_|\__,_|\___||_||_| |___/ |_| \__,_|\__, |\___/|_||_|
|
|
|___/
|
|
""")
|
|
|
|
def hidden_dragon(self, ap_iface, netdb_file, results, config, log):
|
|
log.info('Starting Hidden Dragon')
|
|
netdb_file = os.path.abspath(netdb_file)
|
|
print("""
|
|
You have configured Hidden Dragon to run with these options:
|
|
ap_iface: {0}
|
|
ap_db: {1}
|
|
results: {2}
|
|
config_file: {3}
|
|
Have a good day, and thanks for all the fish!
|
|
""".format(ap_iface, netdb_file, results, config))
|
|
dataframe = CtigerDataFrame()
|
|
apnetwork_df = dataframe.load_apnetworks(netdb_file, log)
|
|
results_df = dataframe.gen_resdf(log)
|
|
HD = HiddenDragon()
|
|
HD.start(ap_iface=ap_iface, net_db=apnetwork_df,
|
|
results=results_df, config=config, log=log)
|