Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Enabling Telnet Console on Certain Netgear Routers

  1. #11
    Senior Member
    Join Date
    Jan 2006
    Posts
    1,334

    Default Debug

    If you want to telnet into a "feature locked" Netgear router, such as Sky's Netgear DG836G routers, simply issue this call to the routers IP:

    Code:
    http://192.168.0.1/setup.cgi?todo=debug
    Now you can access Busybox in full, including telnet access

  2. #12
    fastboi
    Guest

    Default

    Quote Originally Posted by Re@lity View Post
    If you want to telnet into a "feature locked" Netgear router, such as Sky's Netgear DG836G routers, simply issue this call to the routers IP:

    Code:
    http://192.168.0.1/setup.cgi?todo=debug
    Now you can access Busybox in full, including telnet access
    Thanks for suggestion, but unfortunately it doesn't do the trick on WGR614v7 :|

  3. #13
    Senior Member
    Join Date
    Jan 2006
    Posts
    1,334

    Default

    I have only really tested it on the "DG" family of routers, but anything is always worth a shot

  4. #14
    Very good friend of the forum Virchanza's Avatar
    Join Date
    Jan 2010
    Posts
    863

    Default

    We can see that there are many warnings when you compile the program.
    That first warning you're getting is about an "implicit function declaration". Normally in C, you have to declare something before you can use it (be it a type, a variable, an object, or a function), otherwise you get an "unrecognised identifier" error. Unfortunately in the early days of C, somebody thought it would be a good idea to put in "implicit function declarations" whereby even if a function hasn't been declared yet, the compiler will act as if the function were declared as returning int and taking a variable amount of arguments (i.e. int Func(...)). This turned out to be a very bad idea. You're getting those warning because neither "memset" nor "memmove" have been declared. To declare these functions, you have to include <memory.h>. You should never ignore warnings about "implicit function declaration", they're such a nuisance that they've been outlawed in the latest standard of C, i.e. C99. There's a commandline switch for gcc to disable implicit function declarations, -Werror-implicit-function-declaration, it's just a shame that it's not turned on by default, it would save a lot of bother. You should never ignore this error, and I'm actually surprised your program works properly with those implicit function declarations.

    The second error you're getting is about an "incompatible pointer type". A function takes a "pointer to non-const" as its argument, and you're supplying it with a "pointer to const", so there's a conflict. For instance:

    Code:
    int Func(int *p)
    {
        return *p;
    }
    
    int main(void)
    {
        int const i = 5;
    
        Func(&i);  /* Giving a "pointer to const" instead of "pointer to non-const */
    }
    You'll get the same warning if you give a "pointer to volatile" instead of a "pointer to non-volatile".
    Ask questions on the open forums, that way everybody benefits from the solution, and everybody can be corrected when they make mistakes. Don't send me private messages asking questions that should be asked on the open forums, I won't respond. I decline all "Friend Requests".

  5. #15
    Just burned his ISO
    Join Date
    Mar 2006
    Posts
    12

    Default

    I am having trouble compiling it on the USB version of BT3. Any ideas?

    gcc -o telnetenable md5.c blowfish.c telnetenable.c
    md5.c:1: error: expected identifier or '(' before '<' token
    md5.c:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    md5.c:12:24: error: invalid suffix "px" on integer constant
    md5.c:13: error: stray '#' in program
    md5.c:17: error: expected identifier or '(' before '.' token
    md5.c:24:12: error: invalid preprocessing directive #sites
    md5.c:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
    md5.c:25: error: stray '#' in program
    md5.c:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
    md5.c:26:28: error: invalid suffix "px" on integer constant
    md5.c:26: error: stray '#' in program
    md5.c:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    md5.c:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    md5.c:28:22: error: invalid suffix "px" on integer constant
    md5.c:28:26: error: invalid suffix "px" on integer constant
    md5.c:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
    md5.c:29:28: error: invalid suffix "px" on integer constant
    md5.c:30: error: expected identifier or '(' before '}' token
    md5.c:31: error: expected identifier or '(' before '.' token
    md5.c:33:24: error: invalid suffix "px" on integer constant
    md5.c:34:22: error: invalid suffix "px" on integer constant
    md5.c:34:26: error: invalid suffix "px" on integer constant
    md5.c:34:30: error: invalid suffix "px" on integer constant
    md5.c:36: error: expected identifier or '(' before '.' token
    md5.c:37: error: stray '#' in program
    md5.c:37:21: error: invalid suffix "dbf" on floating constant
    md5.c:39: error: expected identifier or '(' before '.' token
    md5.c:40:25: error: invalid suffix "px" on integer constant
    md5.c:41:23: error: invalid suffix "px" on integer constant
    md5.c:42:22: error: invalid suffix "px" on integer constant
    md5.c:43:22: error: invalid suffix "px" on integer constant
    md5.c:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    md5.c:46:21: error: invalid suffix "px" on integer constant
    md5.c:46:27: error: invalid suffix "px" on integer constant
    md5.c:47:24: error: invalid suffix "px" on integer constant
    md5.c:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    md5.c:50:25: error: invalid suffix "px" on integer constant
    md5.c:52: error: expected identifier or '(' before '.' token
    md5.c:53:24: error: invalid suffix "px" on integer constant
    md5.c:54:22: error: invalid suffix "px" on integer constant
    md5.c:54:28: error: invalid suffix "px" on integer constant
    md5.c:57: error: expected identifier or '(' before '.' token
    md5.c:59:22: error: invalid suffix "px" on integer constant
    md5.c:61: error: expected identifier or '(' before '.' token
    md5.c:62:24: error: invalid suffix "px" on integer constant
    md5.c:64:12: error: invalid preprocessing directive #sites
    md5.c:65: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
    md5.c:65:28: error: invalid suffix "px" on integer constant
    md5.c:66: error: expected identifier or '(' before '}' token
    md5.c:67: error: expected identifier or '(' before '<' token
    blowfish.c:1: error: expected identifier or '(' before '<' token
    blowfish.c:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    blowfish.c:12:24: error: invalid suffix "px" on integer constant
    blowfish.c:13: error: stray '#' in program
    blowfish.c:17: error: expected identifier or '(' before '.' token
    blowfish.c:24:12: error: invalid preprocessing directive #sites
    blowfish.c:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
    blowfish.c:25: error: stray '#' in program
    blowfish.c:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
    blowfish.c:26:28: error: invalid suffix "px" on integer constant
    blowfish.c:26: error: stray '#' in program
    blowfish.c:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    blowfish.c:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    blowfish.c:28:22: error: invalid suffix "px" on integer constant
    blowfish.c:28:26: error: invalid suffix "px" on integer constant
    blowfish.c:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
    blowfish.c:29:28: error: invalid suffix "px" on integer constant
    blowfish.c:30: error: expected identifier or '(' before '}' token
    blowfish.c:31: error: expected identifier or '(' before '.' token
    blowfish.c:33:24: error: invalid suffix "px" on integer constant
    blowfish.c:34:22: error: invalid suffix "px" on integer constant
    blowfish.c:34:26: error: invalid suffix "px" on integer constant
    blowfish.c:34:30: error: invalid suffix "px" on integer constant
    blowfish.c:36: error: expected identifier or '(' before '.' token
    blowfish.c:37: error: stray '#' in program
    blowfish.c:37:21: error: invalid suffix "dbf" on floating constant
    blowfish.c:39: error: expected identifier or '(' before '.' token
    blowfish.c:40:25: error: invalid suffix "px" on integer constant
    blowfish.c:41:23: error: invalid suffix "px" on integer constant
    blowfish.c:42:22: error: invalid suffix "px" on integer constant
    blowfish.c:43:22: error: invalid suffix "px" on integer constant
    blowfish.c:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    blowfish.c:46:21: error: invalid suffix "px" on integer constant
    blowfish.c:46:27: error: invalid suffix "px" on integer constant
    blowfish.c:47:24: error: invalid suffix "px" on integer constant
    blowfish.c:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    blowfish.c:50:25: error: invalid suffix "px" on integer constant
    blowfish.c:52: error: expected identifier or '(' before '.' token
    blowfish.c:53:24: error: invalid suffix "px" on integer constant
    blowfish.c:54:22: error: invalid suffix "px" on integer constant
    blowfish.c:54:28: error: invalid suffix "px" on integer constant
    blowfish.c:57: error: expected identifier or '(' before '.' token
    blowfish.c:59:22: error: invalid suffix "px" on integer constant
    blowfish.c:61: error: expected identifier or '(' before '.' token
    blowfish.c:62:24: error: invalid suffix "px" on integer constant
    blowfish.c:64:12: error: invalid preprocessing directive #sites
    blowfish.c:65: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
    blowfish.c:65:28: error: invalid suffix "px" on integer constant
    blowfish.c:66: error: expected identifier or '(' before '}' token
    blowfish.c:67: error: expected identifier or '(' before '<' token
    telnetenable.c:1: error: expected identifier or '(' before '<' token
    telnetenable.c:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    telnetenable.c:12:24: error: invalid suffix "px" on integer constant
    telnetenable.c:13: error: stray '#' in program
    telnetenable.c:17: error: expected identifier or '(' before '.' token
    telnetenable.c:24:12: error: invalid preprocessing directive #sites
    telnetenable.c:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
    telnetenable.c:25: error: stray '#' in program
    telnetenable.c:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
    telnetenable.c:26:28: error: invalid suffix "px" on integer constant
    telnetenable.c:26: error: stray '#' in program
    telnetenable.c:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    telnetenable.c:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    telnetenable.c:28:22: error: invalid suffix "px" on integer constant
    telnetenable.c:28:26: error: invalid suffix "px" on integer constant
    telnetenable.c:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
    telnetenable.c:29:28: error: invalid suffix "px" on integer constant
    telnetenable.c:30: error: expected identifier or '(' before '}' token
    telnetenable.c:31: error: expected identifier or '(' before '.' token
    telnetenable.c:33:24: error: invalid suffix "px" on integer constant
    telnetenable.c:34:22: error: invalid suffix "px" on integer constant
    telnetenable.c:34:26: error: invalid suffix "px" on integer constant
    telnetenable.c:34:30: error: invalid suffix "px" on integer constant
    telnetenable.c:36: error: expected identifier or '(' before '.' token
    telnetenable.c:37: error: stray '#' in program
    telnetenable.c:37:21: error: invalid suffix "dbf" on floating constant
    telnetenable.c:39: error: expected identifier or '(' before '.' token
    telnetenable.c:40:25: error: invalid suffix "px" on integer constant
    telnetenable.c:41:23: error: invalid suffix "px" on integer constant
    telnetenable.c:42:22: error: invalid suffix "px" on integer constant
    telnetenable.c:43:22: error: invalid suffix "px" on integer constant
    telnetenable.c:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    telnetenable.c:46:21: error: invalid suffix "px" on integer constant
    telnetenable.c:46:27: error: invalid suffix "px" on integer constant
    telnetenable.c:47:24: error: invalid suffix "px" on integer constant
    telnetenable.c:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    telnetenable.c:50:25: error: invalid suffix "px" on integer constant
    telnetenable.c:52: error: expected identifier or '(' before '.' token
    telnetenable.c:53:24: error: invalid suffix "px" on integer constant

  6. #16
    Very good friend of the forum Virchanza's Avatar
    Join Date
    Jan 2010
    Posts
    863

    Default

    Looks like the compiler's trying to compile something that actually isn't C

    Post one of the files here and I'll be able to tell you.

    Just for kicks, see if anything different happens if you run it like this:

    Code:
    gcc md5.c blowfish.c telnetenable.c -o myprogram
    Ask questions on the open forums, that way everybody benefits from the solution, and everybody can be corrected when they make mistakes. Don't send me private messages asking questions that should be asked on the open forums, I won't respond. I decline all "Friend Requests".

  7. #17
    Junior Member
    Join Date
    Aug 2009
    Posts
    27

    Default

    I've just unlocked my router, through telnet how do I forward ports or enable remote management?

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •