This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

how to reconstruct a complete HTML page with graphics includes using packets captured

0

Need to reconstruct the complete webpage included all GUI

asked 26 Dec '14, 06:49

Wiresharker's gravatar image

Wiresharker
1111
accept rate: 0%


One Answer:

1

you can do that with Wireshark, but it would require a lot of manual work. If you need that feature, you could implement it yourself (and donate to code to the project) or file an enhancement bug at https://bugs.wireshark.org and hope someone likes it and implements it for you.

Alternatively you can use a tool that is able to do that right now, like Xplico.

http://www.xplico.org/

Regards
Kurt

answered 27 Dec '14, 07:07

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

1

I know there are many other tools can do that, but I'm just trying to use wireshark to do that. Now I can either reconstruct the html page without images or get the image from the page by using the method File - Export object - HTTP - save the target webpage or image

But I cannot reconstruct the completed one (the page with text and images). Do you have any suggestion?

(30 Dec '14, 10:43) Wiresharker
  • Extract the HTML code
  • Extract the images
  • Save everything in a local directory
  • Edit the saved HTML code to change the path of the images to your local directory
  • open the page with a browser

If the page does not look "right", there is something missing, like CSS, Javascript, etc. Repeat the steps for the missing parts.

As I said: You can do that with Wireshark, but it would require a lot of manual work.

(30 Dec '14, 14:10) Kurt Knochner ♦

@Wiresharker "Now I can either reconstruct the html page without images" - How did you do that? Can you guide me a bit about how you reconstructed the HTML page?

(18 Aug '16, 02:42) Jesss