-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #150 from s0lst1c3/captive-portal-revamp
Captive portal revamp
- Loading branch information
Showing
42 changed files
with
2,418 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
__version__ = '1.12.3' | ||
__version__ = '1.13.0' | ||
__codename__ = 'Power Overwhelming' | ||
__author__ = '@s0lst1c3' | ||
__contact__ = 'gabriel@specterops.io' | ||
__tagline__ = 'Rogue AP attacks for operators.' | ||
__contact__ = 'gabriel<<at>>solstice(doT)me' | ||
__tagline__ = 'A nice shiny new access point.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import sys | ||
|
||
class Module(object): | ||
|
||
def __init__(self): | ||
|
||
self.required_attrs([ | ||
|
||
'name', | ||
'mtype', | ||
'author', | ||
'description', | ||
]) | ||
|
||
def required_attrs(self, attrs): | ||
|
||
if hasattr(self, '_required_attrs'): | ||
|
||
self._required_attrs += attrs | ||
|
||
else: | ||
|
||
self._required_attrs = attrs | ||
|
||
|
||
|
||
def validate(self): | ||
|
||
for ra in self._required_attrs: | ||
if not hasattr(self, ra): | ||
sys.exit('Missing attribute' + ra) | ||
|
||
def __str__(self): | ||
|
||
return f'{self.name:<16} - {self.description}' | ||
|
||
def __getitem__(self, key): | ||
|
||
for k,v in self.options.items(): | ||
|
||
if k.lower() == key.lower(): | ||
return self.options[k]['Value'] | ||
|
||
def __setitem__(self, key, value): | ||
|
||
for k,v in self.options.items(): | ||
|
||
if k.lower() == key.lower(): | ||
|
||
self.options[k]['Value'] = value | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.