WPA::CLI

The great new WPA::CLI!
Download

WPA::CLI Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Zane C. Bowers
  • Publisher web site:
  • http://search.cpan.org/~vvelox/

WPA::CLI Tags


WPA::CLI Description

The great new WPA::CLI! WPA::CLI is the great new WPA::CLI class!SYNOPSIS use WPA::CLI; my $foo = WPA::CLI->new(); ...FUNCTIONSnewThis initializes the object to be used for making use of wpa_cli.It takes no arguements and returns undef upon failure.statusThis function gets the current status from wpa_cli.It takes no arguements and returns undef upon failure.save_configThis saves the current configuration. The user requesting this does not need write permissions to file being usedIt takes no arguements and returns undef upon failure.reassociateThis saves the current configuration. The user requesting this does not need write permissions to file being usedIt takes no arguements and returns undef upon failure.set_network $return=$obj->set_network($networkID, $variable, $value)This sets a variable for for a specific network ID.The return of undef indicates a error with running wpa_cli, other wise it is a true or false for if it worked.get_network $return=$obj->get_network($networkID, $variable)This gets a variable for for a specific network ID.The return of undef indicates a error with running wpa_cli or a failure is returned. Otherwise it is what ever the variable was set to.pin $return=$obj->pin($networkID, $value)This sets the pin for a network.The return of undef indicates a error with running wpa_cli or non-numeric network ID, other wise it is a true or false for if it worked.new_password $return=$obj->new_password($networkID, $value)This sets a new password for a network.The return of undef indicates a error with running wpa_cli or non-numeric network ID, other wise it is a true or false for if it worked.add_network $return=$obj->add_network()This adds a network.The returned value is the numeric ID of the new network. A return of UNDEF indicates some error.remove_network $return=$obj->remove_network($networkID)This sets a one-time-password a network.The return of undef indicates a error with running wpa_cli or non-numeric network ID, other wise it is a true or false for if it worked.select_network $return=$obj->select_network($networkID)This is the network ID to select, while disabling the others.The return of undef indicates a error with running wpa_cli or a non-numeric network ID, other wise it is a true or false for if it worked.enable_network $return=$obj->enable_network($networkID)This enables a network ID.The return of undef indicates a error with running wpa_cli or a non-numeric network ID, other wise it is a true or false for if it worked.disable_network $return=$obj->disable_network($networkID)This disables a network ID.The return of undef indicates a error with running wpa_cli or a non-numeric network ID, other wise it is a true or false for if it worked.reconfigure $return=$obj->reconfigure($networkID)This causes wpa_supplicant to reread it's configuration file.The return of undef indicates a error with running wpa_cli, other wise it is a true or false for if it worked.preauthenticate $return=$obj->preauthenticate($BSSID)Force preauthentication for a BSSID.The return of undef indicates a error with running wpa_cli or a non-numeric network ID, other wise it is a true or false for if it worked.preauthenticate $return=$obj->disconnect()Disconnect and wait for a reassosiate command.The return of undef indicates a error with running wpa_cli or a non-numeric network ID, other wise it is a true or false for if it worked.list_network %return=$obj->get_network($networkID, $variable)This lists the configured networks.The return of undef indicates a error with running wpa_cli or a failure is returned. Otherwise a hash is returned.They keys for the hash are the network IDs. The value of each is another hash. It contians the SSID, BSSID, and flag. All keys are lower case.mib %return=$obj->get_network($networkID, $variable)This lists the configured networks.The return of undef indicates a error with running wpa_cli or a failure is returned. Otherwise a hash is returned.They keys for the hash are the network IDs. The value of each is another hash. It contians the SSID, BSSID, and flag. All keys are lower case.run_TF_command $returned=$obj->run_TF_command($command, 0)This runs a arbirary command in which the expected values are either 'FAIL' or 'OK'. This function is largely intended for internal use by this module.It takes two arguement. The first is string containing the command and any arguements for it. The second is what to return on a unknown return.UNDEF is returned upon with running wpa_cli. Other wise a per boolean value is returned set to the corresponding success of the command.run_command $returned=$obj->run_command($command)This runs a arbirary command in which. This function is largely intended for internal use by this module.It takes arguement, which is string containing the command and any arguements for it.UNDEF is returned upon with running wpa_cli. Otherwise the return is the return from executed command. Requirements: · Perl


WPA::CLI Related Software