Sign in to follow this  
Followers 0
Bigmac

extract packet from wire shark and send it out on the network

4 posts in this topic

maybe i can get some help... i would like to recreate a packet and send it out... i have selected a http Get packet, i would like to see if i can send this packet out and dos my server... i have been searching for a simple example of how you would send a packet crafted in C but my search query's suck...

irongeek has posted a new video on wireshark and he mentioned this but i cant figure it out on my own... maybe a example code on how to send this packet out

wireshark.jpg

0

Share this post


Link to post
Share on other sites

You can't just extract an "http packet" and send it over the network. The machine receiving the packet will just reject it, as there's no open connection. You have to open a connection and go through the TCP three-way handshake before any protocol-level data can be exchanged, and even then the sequence and port numbers won't match what you have in your packet.

First, learn how to use netcat. It's really simple, but it'll give you easy TCP socket access to experiment. Then, learn HTTP. It's pretty simple as well, if you ignore the 99% of the protocol you're not going to use. Then practice doing some HTTP requests with netcat. After that, fire up your programming language of choice, open up a TCP socket and perform HTTP requests as they were intended to be performed. Wireshark really won't help you here, except in examining the HTTP protocol.

0

Share this post


Link to post
Share on other sites

The hexdump pictured in that screenshot is the data from the PNG image that your computer received. Not sure how it's relevant to what you're trying to do. "GET" is what your browser does every time you load a webpage; you could just have your brower request the same page repeatedly and it would accomplish what you want. There's no need to "replay packets" or anything else fancy. If you're trying to DDoS your server, install cURL on your computer and make a batch file that runs cURL infinitely.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0