1

I want to "establish" a TCP connection to a server with a fake sender IP address by using Python 2.6 on Windows 7.

Is this possible without a proxy/Tor?

I understand that I won't get a response, I'm only interested in sending an HTTP GET request to mimic a DDOS attack on my web server.

Dor
  • 7,344
  • 4
  • 32
  • 45
  • If you just want to test on your own server, then what difference does it make whether the IP address is real or not? – Kylotan Jul 02 '13 at 19:43
  • 2
    This is called IP spoofing, but you're going to have some difficulties: http://stackoverflow.com/questions/1180878/spoofing-the-origination-ip-address-of-an-http-request – BlackBear Jul 02 '13 at 19:43
  • @Kylotan: Because that my web server has a feature that allows multiple clients to make a difference. – Dor Jul 02 '13 at 19:51

2 Answers2

2

You can only send packets with scapy library as described here. But packet will be drop by kernel or filter by NAT, FIREWAL or ISP.

Community
  • 1
  • 1
1

you can send TCP SYN packets to the server to initiate a handshake with the server to start a connection, but as you are using fake IPs the SYN-ACK packets sent from the server will be sent somewhere else and so you won't be able to acknowledge the server and finally start the connection. you better read more about the tcp handshake and the SYN cookies

Reader
  • 15
  • 9