Skip to content

Vendor list update and lazy scan call #1763

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

Open
wants to merge 1 commit into
base: v3
Choose a base branch
from
Open
Show file tree
Hide file tree
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
38 changes: 36 additions & 2 deletions esp8266_deauther/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,10 @@ namespace cli {
debugln();

{ // Command
while (!(res == "scan" || res == "beacon" || res == "deauth" || res == "probe" || res == "alias" || res == "results")) {
while (!(res == "scan" || res == "scand" || res == "beacon" || res == "deauth" || res == "probe" || res == "alias" || res == "results")) {
CLI_READ_RES("What can I do for you today?\r\n"
" scan: Search for WiFi networks and clients\r\n"
" scand: Search for WiFi networks and clients (using all defaults)\r\n"
" ---------\r\n"
" beacon: Send WiFi network advertisement beacons (spam network scanners)\r\n"
" deauth: Disrupt WiFi connections\r\n"
Expand All @@ -251,7 +252,8 @@ namespace cli {
" results: Display and filter scan results\r\n"
"Remember that you can always escape by typing 'stop'");
}
cmd += res;
if (res == "scand") cmd += "scan";
else cmd += res;
}

if (res == "scan") {
Expand Down Expand Up @@ -299,6 +301,38 @@ namespace cli {
(res == String('y') || res == String('n')));
if (res == String('y')) cmd += " -r";
}


} else if (res == "scand") {
{ // Scan mode, default values
res = "ap+st";
cmd += " -m " + res;
}

// Scan time and channel(s)
if (res != "ap") {
{ // Scan time
res = "20";
cmd += " -t " + res;
}

{ // Scan on channel(s)
res = "all";
cmd += " -ch " + res;
}

{ // Channel scan time
res = "284";
cmd += " -ct " + res;
}
}

{ // Retain scan results
res = String('n');
if (res == String('y')) cmd += " -r";
}


} else if (res == "beacon") {
{ // SSIDs
CLI_READ_RES("Which network names do you wish to advertise?\r\n"
Expand Down
Loading