⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile.linux

📁 示范了Unix和Linux下如何利用Raw Socket构造伪装的TCP、IP、UDP的包
💻 LINUX
字号:
# Makefile for Linux (tested on 2.0.29)# Thamer Al-Herbish shadows@whitefang.com## Set your compiler hereCC = gcc# Set for Linux, and use the IP_LEN_HORDER bug work around# if it fails they might of fixed the bug, and you wont need the IP_LEN_HORDER# definition.DEFINES = -DLINUX -DIP_LEN_HORDER # Tweak these if you have toINCLUDE_DIR = -I.CFLAGS = -Wall -g -cLINK = $(CC) -oCOMPILE = $(CC) $(INCLUDE_DIR) $(DEFINES) $(CFLAGS) TARGETS = tcp udp ipicmp# The rest should work.all: $(TARGETS)tcp: tcp.o in_cksum.o tcp_gen.o ip_gen.o trans_check.o	$(LINK) tcp tcp.o in_cksum.o tcp_gen.o ip_gen.o trans_check.oudp: udp.o in_cksum.o udp_gen.o ip_gen.o trans_check.o	$(LINK) udp udp.o in_cksum.o udp_gen.o ip_gen.o trans_check.oipicmp: ipicmp.o in_cksum.o	$(LINK) ipicmp ipicmp.o in_cksum.o.c.o:	$(COMPILE) $<clean:	rm -rf *.o $(TARGETS)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -