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

print a helpful breadcrumb when we print the chooser #1962

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 23 additions & 5 deletions src/aircrack-ng.c
Original file line number Diff line number Diff line change
Expand Up @@ -5970,7 +5970,7 @@ int main(int argc, char *argv[])
{
if (!opt.is_quiet)
{
printf("Reading packets, please wait...\r");
printf("Generating summary for target selection, please wait...\n");
fflush(stdout);
}

Expand Down Expand Up @@ -6179,11 +6179,18 @@ int main(int argc, char *argv[])
{
// no access points
}

printf("\n");

// Release memory of all APs we don't care about currently.
ap_avl_release_unused(ap_cur);
if (!opt.is_quiet)
{
printf("Use %s -b %02X:%02X:%02X:%02X:%02X:%02X to load this target faster\n", argv[0],
ap_cur->bssid[0],
ap_cur->bssid[1],
ap_cur->bssid[2],
ap_cur->bssid[3],
ap_cur->bssid[4],
ap_cur->bssid[5]);
}

memcpy(opt.bssid, ap_cur->bssid, 6);
opt.bssid_set = 1;
Expand Down Expand Up @@ -6283,7 +6290,6 @@ int main(int argc, char *argv[])
c_avl_iterator_destroy(it);
it = NULL;

printf("%d potential targets\n\n", c_avl_size(targets));
ap_cur = get_first_target();

if (ap_cur == NULL)
Expand All @@ -6294,6 +6300,18 @@ int main(int argc, char *argv[])
goto exit_main;
}

if (!opt.is_quiet)
{
printf("%d potential targets\n\n", c_avl_size(targets));
printf("essid: \"%s\" bssid: \"%02X:%02X:%02X:%02X:%02X:%02X\"\n", ap_cur->essid,
ap_cur->bssid[0],
ap_cur->bssid[1],
ap_cur->bssid[2],
ap_cur->bssid[3],
ap_cur->bssid[4],
ap_cur->bssid[5]);
}

if (ap_cur->crypt < 2)
{
switch (ap_cur->crypt)
Expand Down