X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=shell.c;h=922442e6cab16ac7dd4f1cc52a4bdf15a40831e8;hb=2d66233a4bcf319be993c1a3075711c15d9db878;hp=da91eb96aee2873730b9a4893567e1666be89bfa;hpb=11ae7c1958d87f75fb840c6556fa99abf85e6607;p=gsconf diff --git a/shell.c b/shell.c index da91eb9..922442e 100644 --- a/shell.c +++ b/shell.c @@ -86,8 +86,8 @@ char * copyString(char * data) { 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: ")); } } @@ -220,6 +220,10 @@ int shell (void) { shell_sys(argv, elem); } + if (strncmp(argv[0], "help", 4) == 0) { + printf("Available commands: \n"); + printf("[discover|select|nodev|ip|vlan|port|sys] \n"); + }