免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: wilbur_cy
打印 上一主题 下一主题

请问如何修改自己的IP包? [复制链接]

论坛徽章:
0
1 [报告]
发表于 2007-01-31 17:27 |显示全部楼层
原帖由 朱熹之 于 2007-1-31 11:49 发表于 3楼  
方法1:使用raw socket
方法2:直接编程操作网卡


听说有个 raw IP,不知道你说的是不是这个。

我所知道的访问链路层的方法:用 libpcap,很多平台上都能用,win32 上可以用 WinPCAP

Linux 上有 PF_PACKET

对于 raw IP,用 SOCK_RAW

--

论坛徽章:
0
2 [报告]
发表于 2007-02-01 17:56 |显示全部楼层
--

我本想说 bpf 的,后来想想只能用在 Berkeley Unix 上,所以说了 libpcap,这个是通用接口。

另外,似乎 UNIX 和 Unix 的含义不同?看来以后不能乱用了。

--

论坛徽章:
0
3 [报告]
发表于 2007-02-03 10:54 |显示全部楼层
原帖由 langue 于 2007-2-1 17:56 发表于 7楼  
--

我本想说 bpf 的,后来想想只能用在 Berkeley Unix 上,所以说了 libpcap,这个是通用接口。

另外,似乎 UNIX 和 Unix 的含义不同?看来以后不能乱用了。

--

3 definitions found for UNIX

From WordNet (r) 2.0 :

  UNIX
       n : trademark for a powerful operating system [syn: UNIX system,
            UNIX operating system]


From Jargon File (4.3.1, 29 Jun 2001) :

  Unix /yoo'niks/ n. [In the authors' words, "A weak pun on Multics";
     very early on it was `UNICS'] (also `UNIX') An interactive time-sharing
     system invented in 1969 by Ken Thompson after Bell Labs left the Multics
     project, originally so he could play games on his scavenged PDP-7.
     Dennis Ritchie, the inventor of C, is considered a co-author of the
     system. The turning point in Unix's history came when it was
     reimplemented almost entirely in C during 1972-1974, making it the first
     source-portable OS. Unix subsequently underwent mutations and expansions
     at the hands of many different people, resulting in a uniquely flexible
     and developer-friendly environment. By 1991, Unix had become the most
     widely used multiuser general-purpose operating system in the world -
     and since 1996 the variant called Linux has been at the cutting edge
     of the open source movement. Many people consider the success of Unix
     the most important victory yet of hackerdom over industry opposition
     (but see Unix weenie and Unix conspiracy for an opposing point of
     view). See Version 7, BSD, Linux.

     Some people are confused over whether this word is appropriately
     `UNIX' or `Unix'; both forms are common, and used interchangeably.
     Dennis Ritchie says that the `UNIX' spelling originally happened in
     CACM's 1974 paper "The UNIX Time-Sharing System" because "we had a new
     typesetter and troff had just been invented and we were intoxicated by
     being able to produce small caps." Later, dmr tried to get the spelling
     changed to `Unix' in a couple of Bell Labs papers, on the grounds that
     the word is not acronymic. He failed, and eventually (his words) "wimped
     out" on the issue. So, while the trademark today is `UNIX', both
     capitalizations are grounded in ancient usage; the Jargon File uses
     `Unix' in deference to dmr's wishes.




From The Free On-line Dictionary of Computing (27 SEP 03) :

  Unix
      
           /yoo'niks/ (Or "UNIX", in the authors'
          words, "A weak pun on Multics") Plural "Unices".  An
          interactive time-sharing operating system invented in 1969
          by Ken Thompson after Bell Labs left the Multics
          project, originally so he could play games on his scavenged
          PDP-7.  Dennis Ritchie, the inventor of C, is considered
          a co-author of the system.
      
          The turning point in Unix's history came when it was
          reimplemented almost entirely in C during 1972 - 1974, making
          it the first source-portable OS.  Unix subsequently
          underwent mutations and expansions at the hands of many
          different people, resulting in a uniquely flexible and
          developer-friendly environment.
      
          By 1991, Unix had become the most widely used multi-user
          general-purpose operating system in the world.  Many people
          consider this the most important victory yet of hackerdom over
          industry opposition (but see Unix weenie and Unix
          conspiracy for an opposing point of view).
      
          Unix is now offered by many manufacturers and is the subject
          of an international standardisation effort [called?].
          Unix-like operating systems include AIX, A/UX, BSD,
          Debian, FreeBSD, GNU, HP-UX, Linux, NetBSD,
          NEXTSTEP, OpenBSD, OPENSTEP, OSF, POSIX, RISCiX,
          Solaris, SunOS, System V, Ultrix, USG Unix, Version
          7, Xenix.
      
          "Unix" or "UNIX"?  Both seem roughly equally popular, perhaps
          with a historical bias toward the latter.  "UNIX" is a
          registered trademark of The Open Group, however, since it is
          a name and not an acronym, "Unix" has been adopted in this
          dictionary except where a larger name includes it in upper
          case.  Since the OS is case-sensitive and exists in many
          different versions, it is fitting that its name should reflect
          this.
      
          The UNIX Reference Desk
          http://www.geek-girl.com/unix.html)">(http://www.geek-girl.com/unix.html).
      
          Spanish fire extinguisher
         
       ftp://linux.mathematik.tu-darmst ... okir/unix_flame.gif)">(ftp://linux.mathematik.tu-darmst ... okir/unix_flame.gif ).
      
          [{Jargon File]
      
          (2001-05-14)

论坛徽章:
0
4 [报告]
发表于 2007-02-03 15:54 |显示全部楼层
--

tripp + libpcap/winpcap

--

论坛徽章:
0
5 [报告]
发表于 2007-02-04 09:41 |显示全部楼层
--

请教一下白金版主,discard 和 drop 的异同?谢谢。

--

论坛徽章:
0
6 [报告]
发表于 2007-02-04 10:17 |显示全部楼层
原帖由 platinum 于 2007-2-4 09:55 发表于 15楼  

我没有这方面的研究,这两个词是哪里来的?我只知道 drop


TCP/IP, Illustrated

--

论坛徽章:
0
7 [报告]
发表于 2007-02-04 10:54 |显示全部楼层
原帖由 platinum 于 2007-2-4 10:28 发表于 17楼  
请教 langue 版主,我 13 楼的理解是否存在问题?


你不妨直接告诉楼主,用匿名代理服务器上去,就行了。

天哪,这又要培养出一批广告专业户了。

--

论坛徽章:
0
8 [报告]
发表于 2007-02-04 11:04 |显示全部楼层
--

楼主陈述的情况说明他用的是非匿名代理,至少代理服务器向目标服务器发出请求的时候加上了 X-Forwarded-For 这个头信息。找一个不是这样的代理,就应该能通过。

--
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP