Want to manually send SYN ACK packets to establish TCP connection (in PHP if possible)

How can I send my own SYN and ACK packets to a server in php. I do not want the system to do anything, I would like to create my own packets, and send them myself to establish the TCP connection. Can this be done in php, or do I have to use C++ for this, or maybe python, or bash (shell script), which ever is easiest. And can some one direct me to a good place to learn what the contents of a SYN and ACK packet is exactly. I know a SYN packet has the IP address, and other details on where to send the server's ACK reply to.

Thanks,

macintosh264

-------------Problems Reply------------

Sounds like you're looking for a raw network library for PHP. A quick search turned up prnl. Support is likely to be uneven across operating systems, though; so-called "raw sockets" are sometimes considered to be sensitive items.

Category:php Views:0 Time:2011-11-03
Tags: php tcp ack

Related post

  • What does no timestamps option in SYN-ACK packet mean? 2011-01-06

    I'm working on a tool to test a tcp proxy and I see the following: Client sends a SYN to the server with timestamps option (TSval=12345, TSecr=0). Server sends a SYN-ACK and omits the timestamps option. The problem is that I'm not sure if a TCP is su

  • Does TCP send a SYN/ACK on every packet or only on the first connection? 2010-08-30

    I have a TCP server that listens for an incoming client, then sends it one packet of data every second. I was wondering, does the SYN/ACK packet only get sent on initial connection, so it looks like this: <client connect> SYN ACK DATA DATA DATA

  • Why on receiving SYN/ACK, a RST packet is sent with certain sites 2011-07-23

    I'm running ArchLinux, and recently run into this weird problem. After some time, connecting to Google will time out because my system keeps sending a RST packet on receiving SYN/ACK packet from the server. It is the same with other IPs and port numb

  • Outlook Express emits SYN, gets no SYN-ACK back but telnet works fine 2014-03-05

    I Use Wireshark to monitor the network traffic while Outlook Express tries to send a mail. OE (or the kernel, if you like) emits TCP "SYN" datagrams to establish a connection to the server. The IP address is correct, see below. There are three such S

  • Building an http packet in libnet(tcp packet), Please help us as soon as posible. we are stuck! 2010-05-31

    we are building a NAT program,we change each packet that comes from our internal subnet, change it's source IP address by libnet functions.( catch the packet with libpcap, put it sniff structures and build the new packet with libnet) over TCP, the sy

  • How do you send multiple files over a TCP connection with Perl? 2011-07-15

    I'm testing out a proof-of-concept that sends two files over a TCP connection to a remote server, all using Perl. I'm running into a problem, however, with sending multiple files over. Currently, I have the client (hosted on Windows, running ActiveSt

  • python / dpkt: Find out if packet is a tcp packet or a udp packet , 2012-01-13

    I have a python scripts that captures the packets on the ethernet using dpkt, but how do i differentiate between which packets are tcp and which ones are for udp. Eventually i would like to have a list of packets for each tcp connection that was esta

  • TCP: Server sends [RST, ACK] immediately after receiving [SYN] from Client 2011-03-11

    Host_A tries to send some data to Host_B over TCP. Host_B is listening on port 8181. Both Host_A & Host_B are Linux boxes (Red Hat Enterprise). The TCP layer is implemented using Java NIO API. Whatever Host_A sends, Host_B is unable to receive. S

  • How to send SYN packet using C# or Java 2011-03-12

    I want to send SYN packet to a remote host, now the problem is that if I use any of the classes of .NET framework then I cannot to do this; e.g. TCP Client takes Host ip and port number and establishes connection, same is the case with ClientSocket c

  • How can manual get ip address of a website throw Google DNS, OpenDNS- by send and receive packet 2011-05-31

    I want write a small program to get IP Address of some websites by manual send and receive data packet from Google DNS, Open DNS. How can help me. I wrote this but not work properly. public static void main(String args[]) throws Exception { String st

  • Recv with TCP packet stream not sending ACK packet 2010-11-30

    Hi I am writing a application that uses TCP to communicate with a HTTP server. However I am seeing that I don't respond with an ACK packet after each data packet is received. Is this handled by the RECV routine? --------------Solutions------------- Y

  • Why does this connection keep closing - SYN->SYN,ACK->ACK->RST,ACK 2011-04-27

    I have an application that is sending web requests and after some variable period of time we start getting connection timeout errors. Analysis of the TCP/IP packets reveals the following occurring for each connection attempted: No. Time Source Destin

  • SYN and SYN+ACK not blocked by firewall 2012-03-22

    I came across this scenario : I have blocked all my INBOUND ports , excepting (tcp 53 and udp 53 - DNS , 2 internals ip classes, and ICMP) and I tried to connect to google without succes which is good. But, using a packet capture software (Microsoft

  • When does a Java socket send an ack? 2010-01-31

    My question is that when a socket at the receiver-side sends an ack? At the time the application read the socket data or when the underlying layers get the data and put it in the buffer? I want this because I want both side applications know whether

  • Android Emulator (qemu) does not allow certain tcp connections (RST,ACK as answer to SYN) 2011-01-19

    Although Internet browsing works in the emulator, my app who also runs in the emulator, is unable to connect to a server on the internet on port 5222 via TCP. I'm pretty sure that there is no firewall involved on my router or on my pc, as I can telne

  • How to get NSOutputStream to send or flush packets immediately 2011-06-29

    I am having an issue with latency when connecting to a bluetooth accessory using the External Accessory Framework. When sending data I get the following custom output in the console: if( [stream hasSpaceAvailable] ) { NSLog( @"Space avail" ); } else

  • Block TCP-send till ACK returned 2011-08-24

    I am programming a client application sending TCP/IP packets to a server. Because of timeout issues I want to start a timer as soon as the ACK-Package is returned (so there can be no timeout while the package has not reached the server). I want to us

  • Win7 TCP client sends RST/ACK 2012-03-03

    Win-7 TCP sends [RST/ACK] after ~90 sec of traffic all the time. Repeatable 100% on multiple Win-7 PC's. Same TCP App on Win-XP works just fine. TCP socket in both cases connected to Linux Ubuntu machine. Any suggestions how to debug TCP layer ? Chee

  • How to send UDP multicast packets through Silverlight? 2009-07-14

    I'm trying to find a way to send a udp broadcast packets through a silverlight application. Most of the research i've done lists that this is not possible through silverlight due to the support for sockets being limited to tcp only. But is there some

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.195 (s). 11 q(s)