BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡

±Û¾´ÀÌ: sys anonymous ftp Á¶È¸¼ö: 7334


anonymous FTP install

* ½±°Ô ¼³Ä¡Çϱâ À§ÇÑ ¹æ¹ý : prompt»ó¿¡¼­ "man ftpd"Çϸé FTPDÀÇ ¼³¸í°ú ÇÔ²² Example·Î Æ÷ÇÔµÈ
ScriptºÎºÐÀÌ ÀÖ´Ù.
ÀÌ ºÎºÐÀ» ÃàÃâÇÏ¿© ½ÇÇàScript·Î ¸¸µé°í, man page ¿¡ ¼³¸íµÈ ¼³Ä¡¹æ¹ý¿¡ µû¶ó ¼öÇàÇϸé,
°£´ÜÈ÷ Anonymous FTP¸¦ ¼³Ä¡ ÇÒ ¼ö°¡ ÀÖ´Ù.

!) ftp server¸¦ ¼³Ä¡Çسõ°í, anonymous·Î Á¢¼ÓÇϸé ls,get..µî ±âº»¸í·ÉÀÌ ¾ÈµÈ´Ù.
can't create data socket(0.0.0.0,20) : no such file or directory
- device or library ÀÇ ¹®Á¦ÀÏ °¡´É¼º

´ÙÀ½Àº ~ftp¾Æ·¡¿¡ ÀÖ¾î¾ßÇÒ ¸ñ·ÏµéÀÌ´Ù.
ftpmgrÀº ftp°ü¸®¿ë °èÁ¤ÀÌ°í, ÀÓÀÇÀÇ °É·Î Çصµ µÊ.
°¢ directory Æ۹̼ǿ¡ ÁÖÀÇÇÒ°Í.

~ftp/etc
>ls -al
drwxr-xr-x 9 ftpmgr adm 512 Apr 19 09:58 ./
drwxr-xr-x 5 root root 512 Mar 31 15:08 ../
d--x--x--x 2 root root 512 Apr 19 09:56 bin/
dr-xr-xr-x 2 root root 512 Apr 19 09:49 dev/
dr-xr-xr-x 2 root root 512 Apr 19 09:45 etc/
drwxrwxrwt 3 ftpmgr adm 512 Apr 16 09:57 incoming/
drwxr-xr-x 2 root root 512 Apr 19 09:58 outgoing/
drwxr-xr-x 9 ftpmgr adm 512 Apr 17 16:33 pub/
drwxr-xr-x 4 root root 512 Apr 19 09:51 usr/

> ls -al bin
d--x--x--x 2 root root 512 Apr 19 09:56 ./
drwxr-xr-x 9 ftpmgr adm 512 Apr 19 09:58 ../
lrwxrwxrwx 1 root root 13 Apr 19 09:56 ls -> ../usr/bin/ls*

> ls -al dev
dr-xr-xr-x 2 root root 512 Apr 19 09:49 ./
drwxr-xr-x 9 ftpmgr adm 512 Apr 19 09:58 ../
crw-r--r-- 1 root root 11, 42 Apr 19 09:47 tcp
crw-r--r-- 1 root root 99, 1 Apr 19 09:49 ticotsord
crw-r--r-- 1 root root 11, 41 Apr 19 09:47 udp
crw-r--r-- 1 root root 13, 12 Apr 19 09:47 zero

À§´Â device ÆÄÀϵéÀÌ°í, ¾Æ·¡Ã³·³ mknod ¸í·ÉÀ¸·Î ¸¸µé¾îÁØ´Ù.

mknod [ÆÄÀϸí] [type] [major] [minor]

¿¹) mknod zero c 13 12
mknod tcp c 11 42
....

>ls -al usr
drwxr-xr-x 4 root root 512 Apr 19 09:51 ./
drwxr-xr-x 9 ftpmgr adm 512 Apr 19 09:58 ../
d--x--x--x 2 root root 512 Apr 19 09:51 bin/
dr-xr-xr-x 2 root root 512 Apr 19 09:54 lib/

> ls -al usr/bin
total 16
d--x--x--x 2 root root 512 Apr 19 09:51 ./
drwxr-xr-x 4 root root 512 Apr 19 09:51 ../
-r-xr-xr-x 1 root root 13400 Apr 19 09:51 ls*

/usr/bin/ls¸¦ cpÇÏ¸é µÇ°í, º¸´Ù ¾ö¹ÐÇÏ°Ô´Â »õ·Î ÄÄÆÄÀÏ ÇÏ´Â°Ô ÁÁ´Ù.
¸¸¾à ÄÄÆÄÀϽà CFLAGS ¿Í LDFLAGS ¿É¼Ç¿¡ -Bstatic (or -static in gcc) ·Î ÇÑ´Ù.
ls ¿Ü¿¡µµ gzip, gtar,,, µîÀÇ À¯Æ¿¸®Æ¼ µµ ÀÖÀ¸¸é ÁغñÇØ ³õÀ»°Í.

> ls -al usr/lib
total 2652
dr-xr-xr-x 2 root root 512 Apr 19 09:54 ./
drwxr-xr-x 4 root root 512 Apr 19 09:51 ../
-rwxr-xr-x 1 root root 112104 Apr 19 09:52 ld.so.1*
-rwxr-xr-x 1 root root 621576 Apr 19 09:52 libc.so*
-rwxr-xr-x 1 root root 621576 Apr 19 09:52 libc.so.1*
-rwxr-xr-x 1 root root 2644 Apr 19 09:52 libdl.so*
-rwxr-xr-x 1 root root 2644 Apr 19 09:52 libdl.so.1*
-rwxr-xr-x 1 root root 14060 Apr 19 09:52 libintl.so*
-rwxr-xr-x 1 root root 14060 Apr 19 09:52 libintl.so.1*
-rwxr-xr-x 1 root root 473140 Apr 19 09:53 libnsl.so*
-rwxr-xr-x 1 root root 473140 Apr 19 09:53 libnsl.so.1*
-rwxr-xr-x 1 root root 67928 Apr 19 09:53 libsocket.so*
-rwxr-xr-x 1 root root 67928 Apr 19 09:53 libsocket.so.1*
-rwxr-xr-x 1 root root 44848 Apr 19 09:53 libw.so*
-rwxr-xr-x 1 root root 44848 Apr 19 09:53 libw.so.1*
-rwxr-xr-x 1 root root 10492 Apr 19 09:53 nss_dns.so.1*
-rwxr-xr-x 1 root root 20980 Apr 19 09:53 nss_files.so.1*
-rwxr-xr-x 1 root root 23344 Apr 19 09:54 nss_nis.so.1*
-rwxr-xr-x 1 root root 26680 Apr 19 09:54 nss_nisplus.so.1*
-rwxr-xr-x 1 root root 8068 Apr 19 09:54 straddr.so*
-rwxr-xr-x 1 root root 8068 Apr 19 09:54 straddr.so.2*

lib¿¡´Â ½Ã½ºÅÛ¿¡¼­ Á¦°øÇÏ´Â loader, shared library¸¦ º¹»çÇÏ¸é µÊ.
±âº»ÀûÀ¸·Î /usr/lib ¾Æ·¡¿¡ ÀÖ°í, cp ÇÏ¸é µÈ´Ù.

ÆÄÀÏÆ۹̼ǿ¡ ƯÈ÷ ÁÖÀÇÇÏ°í, incoming ¼­ºñ½º¸¦ ÇÑ´Ù¸é, "chmod 1777 incoming" ·Î
½ºÆ¼Å°ºñÆ®¸¦ »ç¿ëÇϸé anonymous·Î ¿Ã¸±¼ö´Â ÀÖµÇ Áö¿ìÁö´Â ¸øÇϵµ·Ï ÇÒ ¼ö ÀÖ´Ù.

ÆÄÀÏ°ú µð·ºÅ丮 ¼ÒÀ¯±Çµµ Áß¿ä.
ftp°¡ ¼ÒÀ¯±ÇÀ» °¡Áö°Ô µÇ¸é,, ¿î¾øÀ¸¸é(ÆÛ¹Ì¼Ç ¼³Á¤ À߸øÇϸé)
¾î´À³¯ ftp°¡ ¾ÈµÇ´Â »çÅ°¡ ¿Ã ¼öµµ ÀÖ´Ù.

¸¶Áö¸·À¸·Î, ftpd´Â /etc/inetd.conf¿¡¼­ Á¤ÀǵǴÏ, ¼³Ä¡ÈÄ inetd daemon¸¦ restartÇØ¾ß ÇÔ.



°ü·Ã±Û : ¾øÀ½ ±Û¾´½Ã°£ : 2002/05/12 17:15 from 61.82.164.84

  free inode¼ö¸¦ È®ÀÎ ÇÏ·Á¸é ¸ñ·Ïº¸±â »õ±Û ¾²±â Áö¿ì±â ÀÀ´ä±Û ¾²±â ±Û ¼öÁ¤ NVRAM(OK_mod Command)  
BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡