I have a pc that shares internet connection to another device, which is configurated to access it's manufacturers website and get any updates available. Note that this internet sharing is made through my ethernet port and that the device isn't configurable to access any other website.
Are there any methods to get all the data that is passing through my ethernet port and then connect my pc to the device and reproduce exactly what the website sent to the device when I recorded it like making my pc the website?
An Example:
Device x Website
- device : get the website ID
- site : 0000000XX0Xx00xx0
- device : get date and time
- site : 12:30.31-12-2011GMT-4
- device : download updates if available
- site : pkg1.zip pkg2.iso pkg3.tar
Device x PC
- device : get the website ID
- pc : 0000000XX0Xx00xx0
- device : get date and time
- pc : 12:30.31-12-2011GMT-4
- device : download updates if available
- pc : pkg1.zip pkg2.iso pkg3.tar
So just reproduce the same thing the website sent to the device, but it'll be my pc that will be sending the data.
Thanks for the attention, Rodrigo.
Sure you can.
Step 1) Get the full site using wget ( see http://www.sonyjose.in/blog/?p=136 ).
2 ) Install and run a webserver like Apache ( https://help.ubuntu.com/10.04/serverguide/C/httpd.html )
3) Put the files downloaded from step 1 in /var/www
4) Ask your friend to access the site from your IP address through a browser. To get the IP address, use the connection information option in your network manager ( top right of your screen ) or use the command ifconfig
If the website you are trying to 'copy' is doing any dynamic processing on the server before rendering the HTML, you will not be able to accurately copy it. Without access to the back-end code, the best you would be able to do is to make a static snapshot of that site that would always return the same html response.