void shell_set(char ** argv, int elem) {
- int n;
if (strncmp(argv[1], "name", 4) == 0) {
if (elem != 3) {
printf("set name [name]\n");
void password(void) {
if (settings.password == NULL) {
- printf("\033[91mWarning: As the protocol of the switch wants it that way, all configuration packets are send as broadcasts, meaning everyone on this net can sniff your password!\033[0m\n");
- settings.password = copyString(getpass("Password: "));
+ printf("\033[91mWarning: As the protocol of the switch wants it that way, all configuration packets are send as broadcasts. Even though Netgear is 'encrypting' the password it, the encryption used, is one step away from plaintext.\033[0m\n");
+ settings.password = copyString((char *)getpass("Password: "));
}
}