Skip to content

[Bug]: Wifite2 fails to execute due to unsupported command-line arguments #1685

Description

@Riyasarab

Name of Bug

Wifite2 fails to execute due to unsupported command-line arguments

What Happened?

I tested the Wifite2 tool using the following configuration:
Target Network: TestNetwork
Custom Dictionary Path: /usr/share/wordlists/rockyou.txt
Timeout: 60 seconds
WPS Only: Enabled

Image

After clicking Start Wifite2, the application correctly requested administrator authentication.

Image

After entering the administrator password, Wifite2 failed to execute and displayed the following error:

wifite: error: unrecognized arguments: TestNetwork --timeout 60

Although the scan did not start, the application displayed:

Process completed successfully.

Image

This is misleading because the scan never starts successfully.

Expected Result

  • With the chosen configuration, Wifite2 should run successfully.
  • A legitimate Wifite2 command ought to be produced by the GUI.
  • Instead of showing that the process was successful, the GUI should show a suitable error message if the command fails.

Suggested Fix

  • Before running Wifite2, make sure the command-line options are correct.
  • From the chosen options, create the proper Wifite2 command syntax.
  • Find execution errors and appropriately report them.
  • When execution fails, replace the deceptive "Process completed successfully." message with a suitable failure message.

Steps to Reproduce

  1. Open the Deakin Detonator Toolkit.
  2. Open Tools → Wifite2.
  3. Enter TestNetwork as the Target Network.
  4. Enter /usr/share/wordlists/rockyou.txt as the Custom Dictionary Path.
  5. Set Timeout to 60.
  6. Enable WPS Only.
  7. Click Start Wifite2.
  8. Enter the administrator password.
  9. Observe the output.

Observed Output
wifite: error: unrecognized arguments: TestNetwork --timeout 60
Process completed successfully.
The scan did not start even though the application reported "Process completed successfully."

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions