Skip to content
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

net-wireless/wifite2 : No WPS networks show up in list #139

Closed
yuri-sevatz opened this issue Dec 20, 2016 · 4 comments
Closed

net-wireless/wifite2 : No WPS networks show up in list #139

yuri-sevatz opened this issue Dec 20, 2016 · 4 comments

Comments

@yuri-sevatz
Copy link

I think i unearthed a runtime conflict between the following packages:

-net-wireless/wifite2
-net-wireless/reaver-wps-fork-t6x

In net-wireless/reaver-wps-fork-t6x (Commit 63c5c02bfc44e732399118d844906b0708e8e28c in upstream's source code), it looks like they changed the meaning of the '-C' flag from net-wireless/reaver's old "Don't validate FCS" to the new "Do validate FCS".

-    set_validate_fcs(1);
+    set_validate_fcs(0); //mod by flatr0ze
             case 'C':
-                set_validate_fcs(0);
+                set_validate_fcs(1); //mod by flatr0ze

Yet in the python version of net-wireless/wifite2, the code that still passes '-C' does not seem to follow suit, despite the version of wifilite2 shipped with pentoo insisting on using the forked version of reaver-wps-fork-t6x:

        command = [
            'wash',
            '-f', capfile, # Path to cap file
            '-C'            # Ignore Frame Check Sum errors
        ]

This looks like it's why nothing shows up as WPS-capable in wifite2's scan output, because wifite2's command ends up seeing nothing but wash output that looks like this:

[!] Found packet with bad FCS, skipping...
[!] Found packet with bad FCS, skipping...
[!] Found packet with bad FCS, skipping...

So, either (A) the original commit changing the meaning of '-C' needs to be reverted in the forked version of reaver to maintain runtime compatibility with wifite2, or (B) pentoo's insistence on using the forked version of reaver needs to come with a corresponding patch to wash.py to remove the '-C' flag.

(I suspect the reason wifite2 does not want to do validation on FCS is because Linux driver code in doesn't pass the FCS information up to airodump. Everyone says you can get it from Kismet, because Kismet rebuilds the FCS, but not from airodump-ng!)

@blshkv
Copy link
Contributor

blshkv commented Dec 20, 2016

it sounds like either wifite2 or reaver-wps-fork bug. Let's see what devs of wifite2 have to say

P.S. 229f6d7

blshkv referenced this issue in t6x/reaver-wps-fork-t6x Dec 20, 2016
- reaver -g option
- reaver -p option
- Fix M7 Message
- Fix time out in M3 or M5 message
- FCS standart ignore

Credits
Change Log
@blshkv
Copy link
Contributor

blshkv commented Dec 20, 2016

These 2 projects such a mess. There are no stable releases, no properly defined dependences. Just some random forks where authors are free to change meanings of parameters to exact opposite.

@yuri-sevatz
Copy link
Author

I've opened a question with wifite2 in the WPS wifite2 issue (above), asking specifically which version of reaver wifite2 is meant to use.

From what I understand, the pixie attack was added in one of the forks. If we can prove the fork required has the broken '-C' flag, then we can pass the bug onto wifite2.

By the looks of it, wifite v1 used the original version of reaver, but that version didn't support the WPS pixie attack (added in one of the reaver forks). If that's the version they require, then we can blame wifite2 and expect them to fix upstream.

@blshkv
Copy link
Contributor

blshkv commented Dec 21, 2016

Let's just rename this new reverted parameter for now. Please re-open the issue if not fixed:
b8be56f

@blshkv blshkv closed this as completed Dec 21, 2016
@blshkv blshkv reopened this Dec 21, 2016
blshkv pushed a commit that referenced this issue Dec 21, 2016
@blshkv blshkv closed this as completed Dec 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants