免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 5747 | 回复: 22
打印 上一主题 下一主题

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

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-01-30 18:58 |只看该作者 |倒序浏览
可能我说的不是很清楚
是这样的

有一个论坛 它设置了不同的IP只能在规定时间内注册一次 我想抢一个比较好的ID序列号

呵呵

所以想自己做一个 可以改变发送注册包的IP 的程序 也就是自己封装一个注册包 把IP改了

再 发过去

我是这样想的 我只发送注册消息给服务器 不管它是否注册成功

然后再发登陆包给服务器 看它能否登陆成功 不知道可行否


还有就是 我也用代理试过的 注册时它说 :"不能使用代理注册"
不知道它是怎么知道我用的代理...

我现在在网上找了一些资料 用Ethereal抓了一些包 正在学习


听说好像在Linux下可以改变IP地址 请问是怎么做的呢

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
2 [报告]
发表于 2007-01-31 11:24 |只看该作者
本版精华里就有一篇关于raw socket的文章.
你可以做个参考.

论坛徽章:
0
3 [报告]
发表于 2007-01-31 11:49 |只看该作者
方法1:使用raw socket
方法2:直接编程操作网卡

论坛徽章:
0
4 [报告]
发表于 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
5 [报告]
发表于 2007-02-01 09:35 |只看该作者
用raw sockt估计是不行了 因为要先建立TCP连接 才能POST http报文  

我把IP改了的话 就收不到 服务器发来的回复 也就建立不起连接了

直接编程操作网卡 是什么意思呢 能否说的详细一些 ?谢谢

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
6 [报告]
发表于 2007-02-01 16:46 |只看该作者
那么返回的数据怎么走

论坛徽章:
0
7 [报告]
发表于 2007-02-01 17:56 |只看该作者
--

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

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

--

论坛徽章:
0
8 [报告]
发表于 2007-02-03 02:58 |只看该作者
楼主的思路不可行,违背了 TCP 原理
即使你可以实现修改 IP,但这样的数据包也不会合法

论坛徽章:
0
9 [报告]
发表于 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
10 [报告]
发表于 2007-02-03 12:38 |只看该作者
弄好了.介绍给我哦.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP