/* mission for http://pulltheplug.org/wargames/vortex/level00.html */ #include #include #include #include #include #include #define IP "vortex.labs.pulltheplug.org" main() { int sockfd; sockfd=socket(PF_INET, SOCK_STREAM, 0); struct sockaddr_in remote; remote.sin_family=AF_INET; remote.sin_port=htons(5842); remote.sin_addr.s_addr=inet_addr(IP); memset(&(remote.sin_zero), '\0', 8); if((bind(sockfd, (struct sockaddr *)&remote, sizeof(struct sockaddr)))==-1) { printf("connection failed\n"); exit(EXIT_FAILURE); } else { printf("Connected successfully!\n"); exit(EXIT_SUCCESS); } } // but how do i read in 4 unsigned integers ? :( */