Welcome![Sign In][Sign Up]
Location:
Search - sendto

Search list

[SourceCodesendto.zip

Description: 实现Linux发送功能
Platform: | Size: 632 | Author: | Hits:

[WinSock-NDISrawsocketping

Description: 创建原始套接字,构造ICMP协议ECHO数据头,发送数据sendto 接收数据recvfrom,分析返回IP数据头及ICMP数据头 程序代码极其简单,适合初学网络编程者参考- Founds the primitive sleeve joint character, structure ICMP the agreement ECHO data head, transmits data sendto receive data recvfrom, the analysis returns to the IP data and the ICMP data procedure code is extremely simple, suitablly begins studies the network programming reference
Platform: | Size: 4118 | Author: 唐富华 | Hits:

[WinSock-NDISudpservermoni

Description: 建立接收socket,将socket和指定的端口绑定 2、创建接收线程,在线程中调用ioctlsocket()判断是否接收到数据,接收到数据时调用OnReceive()(类似CSocket中的OnReceive()) 3、在OnReceive中申请空间调用recvfrom接收数据 4、建立发送socket,和INADDR_ANY绑定 5、调用sendto发送数据 -establishment receiving socket, the socket and designated ports bundled with two to create receive threads, Calling the threads ioctlsocket () to decide whether or not to receive data, to receive information call OnReceive () (similar to the OnReceive CSocket ()) 3, in which the application of space OnReceive call recvfrom four receive data, the establishment of this socket, and INADDR_ANY bundled 5, call sendto send data
Platform: | Size: 8290 | Author: 朱江涛 | Hits:

[CSharpEX11-1

Description: 用C#实现的UDP套接字编程--使用SendTo和ReceiveFrom.-achieve UDP socket programming -- and ReceiveFrom use SendTo.
Platform: | Size: 6118 | Author: 李立 | Hits:

[Game Hook Crack200611422613529

Description: 这里是使用说明: V1.1版修正了二次释放窗口会出错的问题。 运行主程序,先点“开始钩挂”然后在要抓包的游戏或者程序里面按小键盘的星号键呼叫。 然后点“开始”,就可以抓包了,点“停止”是停止抓包,回到游戏点“关闭本窗口”, 在在上面的筐筐里面可以写上保存的文件名,一般是TXT文件,要打完整的路径和名字 否则出错,退出前一定要点“释放本窗口”,不然会出错,然后再点“撤消钩挂”。 再有就是有些游戏会无发呼叫本窗口。 本程序源代码BCB 5.0通过。只用在NT,2000,XP 本程序只钩挂了\"send\",\"sendto\",\"recv\",\"recvfrom\"这4个函数,WSAsend等不钩挂, 因为是用API钩子写的抓包程序,而且小弟也是菜鸟,难免有BUG。源代码可以任意修改和发布。 你改得好的话请给我一份。小弟感激不尽。
Platform: | Size: 281316 | Author: fdsfsdf | Hits:

[TCP/IP stacktcp

Description: TCP数据包的填充并发送,考虑到课设并没有严格要求我们成功发送到目的地,所以利用函数sendto()来实现数据包的发送,这种方式不可靠,只能保证数据是否从源地发送出去,至于有没有到达目的地就不管了。
Platform: | Size: 8940 | Author: 伍衡 | Hits:

[WinSock-NDISIPPack

Description: 用VC 写的一个钩子程序,有可视话界面.可以给windows任务管理器下的进程挂钩,比如QQ.对ws_2.dll的send sendto,recv,recvfrom进行了挂钩,可以截获这些内容
Platform: | Size: 38389 | Author: linqj | Hits:

[WinSock-NDISSYNFlood_WINSOCK

Description: 网络syn Flood攻击的代码,需要的下载。本程序通过使用Winsock2原始套接字提供函数sendto(),手动构造TCP SYN帧,对目标主机进行SYN Flood攻击。
Platform: | Size: 2519 | Author: 许凡 | Hits:

[Internet-Network一个判断远程主机存活程序代码

Description: 一个判断远程主机存活程序代码(ping) #include #include #include #include #include "winsock.h" #pragma comment(lib,"Ws2_32"); #define SEND_SIZE 32 #define PACKET_SIZE 4096 #define ICMP_ECHO 8 #define ICMP_ECHOREPLY 0 struct icmp { unsigned char icmp_type; unsigned char icmp_code; unsigned short icmp_cksum; unsigned short icmp_id; unsigned short icmp_seq; unsigned long icmp_data; }; struct ip { unsigned char ip_hl:4; unsigned char ip_v:4; unsigned char ip_tos; unsigned short ip_len; unsigned short ip_id; unsigned short ip_off; unsigned char ip_ttl; unsigned char ip_p; unsigned short ip_sum; unsigned long ip_src; unsigned long ip_dst; }; unsigned char sendpacket[PACKET_SIZE]; unsigned char recvpacket[PACKET_SIZE]; struct sockaddr_in dest_addr; struct sockaddr_in from_addr; int sockfd; int pid; unsigned short cal_chksum(unsigned short *addr,int len); int pack(int pack_no); int unpack(unsigned char *buf,int len); void send_packet(void); void recv_packet(void); void main(int argc,char *argv[]) { struct hostent *host; struct protoent *protocol; WSADATA wsaData; int timeout=1000; int SEND_COUNT=4; int i; char *par_host; par_host=argv[argc-1]; //IP赋值 switch(argc) { case 2: break; case 3: if(strcmp(argv[1],"-t")==0) { SEND_COUNT=10000; break; } //fall through default: printf("usage: %s [-t] Host name or IP address\n",argv[0]); exit(1); } if(WSAStartup(0x1010,&wsaData)!=0) { printf("wsastartup error\n"); exit(1); } if( (protocol=getprotobyname("icmp") )==NULL) { printf("getprotobyname error\n"); exit(1); } /* printf("%s\n",protocol->p_name); printf("%s\n",protocol->p_aliases); printf("%d\n",protocol->p_proto); system("pause"); */ if( (sockfd=socket(AF_INET,SOCK_RAW,protocol->p_proto) )<0) { printf("socket error\n"); exit(1); } if(setsockopt(sockfd,SOL_SOCKET,SO_RCVTIMEO,(char*)&timeout,sizeof(timeout))h_length); //resolve address to hostname if(host=gethostbyaddr(host->h_addr,4,PF_INET)) par_host=host->h_name; // //printf("%s\n",par_host); // } else if( dest_addr.sin_addr.s_addr=inet_addr(par_host)==INADDR_NONE) { printf("Unkown host %s\n",par_host); exit(1); } pid=getpid(); /* printf("%d\n",pid); system("pause"); */ printf("Pinging %s [%s]: with %d bytes of data:\n\n",par_host,inet_ntoa(dest_addr.sin_addr),SEND_SIZE); for(i=0;i1) { sum+=*w++; nleft-=2; } if( nleft==1) { *(unsigned char *)(&answer)=*(unsigned char *)w; sum+=answer; } sum=(sum>>16)+(sum&0xffff); sum+=(sum>>16); answer=~sum; return answer; } //打包 int pack(int pack_no) { int packsize; struct icmp *icmp; packsize=8+SEND_SIZE; icmp=(struct icmp*)sendpacket; icmp->icmp_type=ICMP_ECHO; icmp->icmp_code=0; icmp->icmp_cksum=0; icmp->icmp_seq=pack_no; icmp->icmp_id=pid; icmp->icmp_data=GetTickCount(); icmp->icmp_cksum=cal_chksum( (unsigned short *)icmp,packsize); /*校验算法*/ return packsize; } //解包 int unpack(unsigned char *buf,int len) { struct ip *ip; struct icmp *icmp; double rtt; int iphdrlen; ip=(struct ip *)buf; iphdrlen=ip->ip_hl*4; icmp=(struct icmp *)(buf+iphdrlen); if( (icmp->icmp_type==ICMP_ECHOREPLY) && (icmp->icmp_id==pid) ) { len=len-iphdrlen-8; rtt=GetTickCount()-icmp->icmp_data; printf("Reply from %s: bytes=%d time=%.0fms TTL=%d icmp_seq=%u\n", inet_ntoa(from_addr.sin_addr), len, rtt, ip->ip_ttl, icmp->icmp_seq); return 1; } return 0; } //发送 void send_packet() { int packetsize; static int pack_no=0; packetsize=pack(pack_no++); if( sendto(sockfd,(char *)sendpacket,packetsize,0,(struct sockaddr *)&dest_addr,sizeof(dest_addr) )=0) success=unpack(recvpacket,n); else if (WSAGetLastError() == WSAETIMEDOUT) { printf("Request timed out.\n"); return; } }while(!success); } UID5380 帖子239 精华0 积分1289 阅读权限40 来自软件学院 在线时间81 小时 注册时间2006-5-22 最后登录2007-2-24 查看详细资料 TOP
Platform: | Size: 5881 | Author: shuiyuan313 | Hits:

[WinSock-NDISwar3对战器E源代码

Description: 服务客户端拿易写的 DLL是C++写的 拿易完全可以写 只是那时候刚学C++就拿来练手了 这个最多实现5个人对战 (人品差 测试的时候加我一共就找到3人...) 主要hook 4个函数: sendto函数 (发送房间信息) WSARecvFrom函数 (接受房间信息) connect函数 (连接玩家) GetAcceptExSockaddrs函数 (得到玩家地址|多人对战关键) 里面大部分源码都来自易友开源 结语: 凌晨孤星的APIHOOK很强大
Platform: | Size: 14259 | Author: 5826659@163.com | Hits:

[SourceCodesendto

Description: 实现Linux发送功能-Send to achieve Linux
Platform: | Size: 1024 | Author: | Hits:

[Internet-Networkrawsocketping

Description: 创建原始套接字,构造ICMP协议ECHO数据头,发送数据sendto 接收数据recvfrom,分析返回IP数据头及ICMP数据头 程序代码极其简单,适合初学网络编程者参考- Founds the primitive sleeve joint character, structure ICMP the agreement ECHO data head, transmits data sendto receive data recvfrom, the analysis returns to the IP data and the ICMP data procedure code is extremely simple, suitablly begins studies the network programming reference
Platform: | Size: 4096 | Author: 唐富华 | Hits:

[Internet-Networkudpservermoni

Description: 建立接收socket,将socket和指定的端口绑定 2、创建接收线程,在线程中调用ioctlsocket()判断是否接收到数据,接收到数据时调用OnReceive()(类似CSocket中的OnReceive()) 3、在OnReceive中申请空间调用recvfrom接收数据 4、建立发送socket,和INADDR_ANY绑定 5、调用sendto发送数据 -establishment receiving socket, the socket and designated ports bundled with two to create receive threads, Calling the threads ioctlsocket () to decide whether or not to receive data, to receive information call OnReceive () (similar to the OnReceive CSocket ()) 3, in which the application of space OnReceive call recvfrom four receive data, the establishment of this socket, and INADDR_ANY bundled 5, call sendto send data
Platform: | Size: 8192 | Author: 朱江涛 | Hits:

[Internet-Networkipv6_send-recv

Description: IPV6下的RAW_SOCK发送程序,以及基于组播和单播的UDP程序-IPV6 RAW_SOCK sent under the procedures, and based on the unicast and multicast UDP procedures
Platform: | Size: 3072 | Author: | Hits:

[CSharpEX11-1

Description: 用C#实现的UDP套接字编程--使用SendTo和ReceiveFrom.-achieve UDP socket programming-- and ReceiveFrom use SendTo.
Platform: | Size: 13312 | Author: 李立 | Hits:

[Game Hook Crack200611422613529

Description: 这里是使用说明: V1.1版修正了二次释放窗口会出错的问题。 运行主程序,先点“开始钩挂”然后在要抓包的游戏或者程序里面按小键盘的星号键呼叫。 然后点“开始”,就可以抓包了,点“停止”是停止抓包,回到游戏点“关闭本窗口”, 在在上面的筐筐里面可以写上保存的文件名,一般是TXT文件,要打完整的路径和名字 否则出错,退出前一定要点“释放本窗口”,不然会出错,然后再点“撤消钩挂”。 再有就是有些游戏会无发呼叫本窗口。 本程序源代码BCB 5.0通过。只用在NT,2000,XP 本程序只钩挂了"send","sendto","recv","recvfrom"这4个函数,WSAsend等不钩挂, 因为是用API钩子写的抓包程序,而且小弟也是菜鸟,难免有BUG。源代码可以任意修改和发布。 你改得好的话请给我一份。小弟感激不尽。
Platform: | Size: 280576 | Author: fdsfsdf | Hits:

[TCP/IP stacktcp

Description: TCP数据包的填充并发送,考虑到课设并没有严格要求我们成功发送到目的地,所以利用函数sendto()来实现数据包的发送,这种方式不可靠,只能保证数据是否从源地发送出去,至于有没有到达目的地就不管了。-TCP packet and send the filled, taking into account the lessons did not set strict demands of our success is sent to the destination, so the use of function sendto () to achieve the data packet to send, this method is unreliable and can only guarantee that the data from source sent out, as have not reach their destinations on and go on.
Platform: | Size: 1206272 | Author: 伍衡 | Hits:

[Internet-NetworkIPPack

Description: 用VC 写的一个钩子程序,有可视话界面.可以给windows任务管理器下的进程挂钩,比如QQ.对ws_2.dll的send sendto,recv,recvfrom进行了挂钩,可以截获这些内容-Using VC to write a hook procedure, if there are visual interface. Can give windows task manager process under the link, such as QQ. On ws_2.dll the send sendto, recv, recvfrom were linked, the content can be intercepted
Platform: | Size: 37888 | Author: linqj | Hits:

[Internet-NetworkUDPSocketDll

Description: UDP网络传输动态连接库,一个项目中使用的网络接口,封装Windows Sockets API为UDP数据报传输类。而不是对整个Sockets API进行封装,只是对socket(), bind(), sendto(), recvfrom()等常用的方法对行了封装,方便UDP网络传输。-UDP network transport dynamic link library, a project to use the network interface, package, Windows Sockets API for UDP datagrams transmission class. Rather than the Sockets API for the entire package, just right socket (), bind (), sendto (), recvfrom () and other commonly used methods of packaging lines to facilitate the UDP network transmission.
Platform: | Size: 263168 | Author: yuwei | Hits:

[Internet-Networksendto

Description: windows网络编程sendto程序实例-windows network programming instance sendto
Platform: | Size: 7608320 | Author: 左昱 | Hits:
« 12 3 »

CodeBus www.codebus.net