Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Simple C server you can start on any port returns a message
C
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Makefile
README.md
annoying_server
annoying_server.c

README.md

To compile just run make from command line.

To compile this code you will need gcc and make.

debian: apt-get install build-essential centos: yum install make && yum install gcc

you@server:/folder/path/# make

To use run you@server:/folder/path/# ./annoying_server portnumber &

use jobs to see what servers you are running

to test the server use telnet to the port number

telnet 127.0.0.1 portnumber

example:

./annoying_server 21 & [1] 13682

you@server:/folder/path# telnet 127.0.0.1 21 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. what is it Here is the message: what is it

I got your messageConnection closed by foreign host.

YAH! You now have an annoying server to setup during ctf.

Use make clean to delete and binary so you can recompile

you@server:/folder/path# make clean

A great thing about this is it displays to the terminal what was sent by the remote connection so you can see what exploits people are using.

Something went wrong with that request. Please try again.