Author Topic: Mirroring  (Read 741 times)

TheQuirk

  • VIP
  • Member
  • ***
  • Posts: 2,154
  • Kudos: 315
Mirroring
« on: 14 October 2002, 02:59 »
I know there's a command (because I used it once) that downloads a whole webpage. I need to do this so I could mirror a website, and it has thousands of files (small ones, at that - ~5kb each).

Stryker

  • VIP
  • Member
  • ***
  • Posts: 1,258
  • Kudos: 41
Mirroring
« Reply #1 on: 14 October 2002, 06:30 »
If they are allowing you to mirror it, can't you just download the source and put it in your web directory?

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
Mirroring
« Reply #2 on: 14 October 2002, 06:42 »
wget -r website.com (i think)
make sure that you change /etc/wgetrc to allow wget to dl deeper than 5 directories.
read the man page for wget too
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

TheQuirk

  • VIP
  • Member
  • ***
  • Posts: 2,154
  • Kudos: 315
Mirroring
« Reply #3 on: 14 October 2002, 06:56 »
quote:
Originally posted by Stryker:
If they are allowing you to mirror it, can't you just download the source and put it in your web directory?


It's more convinient for the computer to do it for you.

Thanks Master of Reality.

Stryker

  • VIP
  • Member
  • ***
  • Posts: 1,258
  • Kudos: 41
Mirroring
« Reply #4 on: 15 October 2002, 02:24 »
quote:
Originally posted by TheQuirk:


It's more convinient for the computer to do it for you.

Thanks Master of Reality.



i know, but when you do wget you do not get the source code for any cgi, php, or any scripting involved.

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
Mirroring
« Reply #5 on: 15 October 2002, 02:58 »
why wouldnt you?
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

flap

  • Member
  • **
  • Posts: 1,268
  • Kudos: 137
Mirroring
« Reply #6 on: 15 October 2002, 03:10 »
quote:
Originally posted by Stryker:
I know, but when you do wget you do not get the source code for any cgi, php, or any scripting involved.


well there's typically no way to get that using http; you won't have read permissions on it. there's no way to get server side scripts unless the webmaster has specifically made them available somehow.
"While envisaging the destruction of imperialism, it is necessary to identify its head, which is none other than the United States of America." - Ernesto Che Guevara

http://counterpunch.org
http://globalresearch.ca


Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
Mirroring
« Reply #7 on: 15 October 2002, 03:16 »
I thought the scripts were 755 permissions which would make them Executable and readable?
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Mirroring
« Reply #8 on: 15 October 2002, 03:23 »
I use rsync over ssh to mirror web sites. rsync will only update files that have changed. Obviously the first time you run it it will have to pull the entire web site. You will need ssh access to both servers in question and those servers will need to have rsync installed if they do not already.
Someone please remove this account. Thanks...

flap

  • Member
  • **
  • Posts: 1,268
  • Kudos: 137
Mirroring
« Reply #9 on: 15 October 2002, 03:31 »
quote:
Originally posted by The Master of Reality / Bob:
I thought the scripts were 755 permissions which would make them Executable and readable?


For security reasons you don't want users of your website seeing the raw content of your scripts. The point is if you request a script from a web server it will parse that script and give you rendered html. How would you propose to get, for example, the ultimatebb.cgi script from this webserver?

[ October 14, 2002: Message edited by: flap ]

"While envisaging the destruction of imperialism, it is necessary to identify its head, which is none other than the United States of America." - Ernesto Che Guevara

http://counterpunch.org
http://globalresearch.ca


voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Mirroring
« Reply #10 on: 15 October 2002, 04:06 »
quote:
Originally posted by flap:


For security reasons you don't want users of your website seeing the raw content of your scripts. The point is if you request a script from a web server it will parse that script and give you rendered html. How would you propose to get, for example, the ultimatebb.cgi script from this webserver?



Not to mention all the other cool things you could do, like get the database passwords for the credit card databases.  
Someone please remove this account. Thanks...

KernelPanic

  • VIP
  • Member
  • ***
  • Posts: 1,878
  • Kudos: 222
Mirroring
« Reply #11 on: 15 October 2002, 21:54 »
I like
Code: [Select]


[1] Tux in no way edorses the infringing of copyright in any way. The usage of the above command is for getting the contents of your own website when you have no SSH access.

[ October 15, 2002: Message edited by: Tux ]

Contains scenes of mild peril.

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
Mirroring
« Reply #12 on: 16 October 2002, 00:58 »
quote:
Originally posted by Tux:
I like
Code: [Select]


[1] Tux in no way edorses the infringing of copyright in any way. The usage of the above command is for getting the contents of your own website when you have no SSH access.

[ October 15, 2002: Message edited by: Tux ][/b]

you especially dont condone its use to grab the entire contents of a  porno site  
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

TheQuirk

  • VIP
  • Member
  • ***
  • Posts: 2,154
  • Kudos: 315
Mirroring
« Reply #13 on: 16 October 2002, 07:56 »
Actually, I'm doing it to mirror textfile.com...