-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Another "Generator Expressions" improvements #130
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -180,15 +180,15 @@ def parse_settings_args(cls, args): | |
Color.pl('{+} {C}option:{W} targeting BSSID ' + | ||
'{G}%s{W}' % args.target_bssid) | ||
|
||
if args.five_ghz == True: | ||
if args.five_ghz: | ||
cls.five_ghz = True | ||
Color.pl('{+} {C}option:{W} including {G}5Ghz networks{W} in scans') | ||
|
||
if args.show_bssids == True: | ||
if args.show_bssidS: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be "if args.show_bssids:" with small "s" at the end - don't know why it come with capital letter from my code.. |
||
cls.show_bssids = True | ||
Color.pl('{+} {C}option:{W} showing {G}bssids{W} of targets during scan') | ||
|
||
if args.no_deauth == True: | ||
if args.no_deauth: | ||
cls.no_deauth = True | ||
Color.pl('{+} {C}option:{W} will {R}not{W} {O}deauth{W} clients ' + | ||
'during scans or captures') | ||
|
@@ -207,7 +207,7 @@ def parse_settings_args(cls, args): | |
Color.pl('{+} {C}option:{W} {O}ignoring ESSIDs that include {R}%s{W}' % ( | ||
args.ignore_essid)) | ||
|
||
if args.clients_only == True: | ||
if args.clients_only: | ||
cls.clients_only = True | ||
Color.pl('{+} {C}option:{W} {O}ignoring targets that do not have ' + | ||
'associated clients') | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,9 +134,9 @@ def to_str(self, show_bssid=False): | |
power = Color.s('{%s}%s' % (color, power)) | ||
|
||
wps = Color.s('{O} n/a') | ||
if self.wps == True: | ||
if self.wps: | ||
wps = Color.s('{G} yes') | ||
elif self.wps == False: | ||
elif not self.wps: | ||
wps = Color.s('{O} no') | ||
elif self.wps is None: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This if-statement would never run, because There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmmmm, i have just made a quick test to resolve the situation and find possible solution - please try Yourself replacing the WPS value with "True/False/None":
|
||
wps = Color.s('{R}lock') | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awkward... I recently changed
Target.wps
from abool
(binary) tobool + None
(ternary).True
: Target is WPS and unlockedFalse
: Target is not WPS.None
: Target is WPS but lockedSee
wifite2/wifite/tools/tshark.py
Lines 199 to 204 in 838ea43
I wanted to allow people to see Locked WPS targets, and still attack them if desired.
I should have added another field to
model.target
(such astarget.wps_locked
), but I was lazy & overloaded whatwps
meant.