I am a moderate programmer, just getting into network programming.
As an attempt to improve my understanding of networks in general, I am trying to perform several basic HTTP actions from the packet level. My question is this: How might I use a library such as SCAPY to build an HTTP GET request and assosciated items at the packet level? I realise this may sound odd, but I can't seem to find any information detailing it, and my own attempts with PAROS and Ethereal have been... Less than satisfactory.
Thanks for any offered help!
Trimiert
Have you had a look at the tutorial? Just copying and pasting, this looks like it's going to assemble an HTTP request:
If you want to do a full three-way handshake, you'll have to do it manually.
Start with your SYN packet:
Then receive the SYN-ACK packet from the server, sr1 works. Then send your HTTP GET request:
Then set your TCP sequence and ack numbers and send the GET: