邪恶八进制信息安全团队技术讨论组's Archiver

EvilOctal 2006-4-15 18:48

[转载]Network Programming in C under Linux

文章作者:l0om
              __        __        __
  .-----.--.--.----.|  |.--.--.--|  |.-----.--|  |  .-----.----.-----.
  |  -__|_  _|  __||  ||  |  |  _  ||  -__|  _  |__|  _  |  _|  _  |
  |_____|__.__|____||__||_____|_____||_____|_____|__|_____|__| |___  |

  by l0om - member of excluded-team                  |_____|

Networkprogramming in C under Linux

An Introduction

V.1.2

Content

1.0 Preface

2.0 Introduction

3.0 Basic Functions (Client Side)

3.1 socket

3.2 connect

3.3 close

3.4 sockaddr_in Structur

3.5 Example Program (Portscanner)

4.0 Basic Functions (Server Side)

4.1 bind

4.2 listen

4.3 accept

4.4 Example Program (Fakeserver)

5.0 UDP

5.1 UDP Clients

5.1.1 sendto

5.1.2 recvfrom

5.1.3 connect with UDP?

5.2 UDP Server

5.3 UDP Client/Server Example (sysinfs.c sysinfs.c)

6.0 Sophisticated Server

6.1 fork

6.2 signal

6.3 Example Progam (Parallel-Server / Trojan Echoserver).

7.0 Introduction to Raw-Sockets

7.1 Header Overview

7.1.1 IP Header

7.1.2 TCP Header

7.1.3 UDPHeader

7.1.4 ICMPHeader

7.1.5 Pseudo Header

7.2 Example Program (TCP-Sniffer)

7.3 sendto

7.4 Example Program (Pong / Variety of Ping)

7.5 select

7.6 Improvement (Pong)

7.7 Functions for easy/fast Raw-Socket programming

8.0 Summary

9.0 Greets

1.0  Preface

In this tutorial we will deal with networkprogramming under LINUX (/UNIX). During this we
will only work with the Programminglanguage C. Precognition of C are needed. You should know
what a describtor or a string is.  # ;)

Furthermore the reader has to be intrested, so when you don

页: [1]
© 1999-2008 EvilOctal Security Team