Git Product home page Git Product logo

paranoidtelnetd's People

Contributors

columpaget avatar

Watchers

 avatar  avatar

Forkers

laurentfough

paranoidtelnetd's Issues

Fix warnings for main and double free

Some warnings:

gcc -g -optelnetd Authenticate.o common.o telnet-protocol.o settings.o  main.c libUseful-3/libUseful-3.a -lm -lcrypt -lpam 
main.c: In function ‘RunTelnetSession’:
main.c:306:29: warning: passing argument 2 of ‘PseudoTTYSpawnFunction’ from incompatible pointer type [-Wincompatible-pointer-types]
 PseudoTTYSpawnFunction(&fd, LaunchPtyFunc, Session,  TTYFLAG_CANON | TTYFLAG_ECHO | TTYFLAG_IN_CRLF | TTYFLAG_OUT_CRLF | TTYFLAG_IGNSIG,  "");
                             ^~~~~~~~~~~~~
In file included from libUseful-3/libUseful.h:41:0,
                 from common.h:4,
                 from main.c:1:
libUseful-3/SpawnPrograms.h:92:7: note: expected ‘BASIC_FUNC {aka int (*)(void *, int)}’ but argument is of type ‘int (*)(void *)’
 pid_t PseudoTTYSpawnFunction(int *ret_pty, BASIC_FUNC Func, void *Data, int Flags, const char *Config);
       ^~~~~~~~~~~~~~~~~~~~~~
main.c: At top level:
main.c:632:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 main(int argc, char *argv[])
 ^~~~

I tried to close the telnet connection with ^D and got this:

login: �
login: �
Password: 
*** Error in `./ptelnetd 127.0.0.1': double free or corruption (out): 0x000055f66bf210d0 ***
                                                                                            Connection closed by foreign host.

Missing headers, make targets

I tried to build this. It seems to be missing some headers (ansi.h, openssl.h). Then the libUseful makefile also tries to build a bunch of targets that are missing (ansi.o, openssl.o, whirlpool.o, jh_ref.o). If you remove these targets from the makefile it then fails to build Hash.o, and of course finally these missing dependencies mean the whole lot wont link. Seems like it could be a useful tool if I could get it going...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.