Skip to content
Snippets Groups Projects
Commit 35f04060 authored by rswindell's avatar rswindell
Browse files

For guest logins, when prompting for the user's email address and location,

check the trashcan files email.can and location.can (new). By adding "sh"
and "shell" to these files (without the quotes), you can reduce the number
of MIRAI-bot guest logins - the bot is immediately disconnected.
parent c6be6fb3
Branches
Tags
No related merge requests found
......@@ -39,17 +39,25 @@ if(user.security.restrictions&UFLAG_G) {
email=console.getstr(LEN_NETMAIL);
if(!email || !email.length)
continue;
if(bbs.trashcan("email", email)) {
bbs.hangup();
exit();
}
bbs.log_str(" " + email);
user.netmail=email;
user.settings|=USER_NETMAIL;
break;
}
while(bbs.online) {
printf("\1y\1hPlease enter your location (City, State): \1w");
location=console.getstr(LEN_LOCATION,K_UPRLWR);
if(!location || !location.length)
continue;
if(bbs.trashcan("location", email)) {
bbs.hangup();
exit();
}
bbs.log_str(" " + location);
user.location=location;
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment