18.118.1.232´Ô ·Î±×ÀÎ ÇØÁÖ¼¼¿ä

MY wikix
óÀ½À¸·Î
³»¼Ò°³
»çÁø¹æ
°øºÎ¸Ç
ÀϱâÀå
¿µÈ­±¤
µ¶¼­±¤
À⵿»ç´Ï
¹æ¸í·Ï
À§Å° ÆäÀÌÁö
¸ðµç ÆäÀÌÁö
Àαâ ÆäÀÌÁö
º¯°æ ÆäÀÌÁö
°Ë»öÇϱâ

Today : 263  Total : 334203
ViewSource | info | diff | files

sis13 

°ü¸®¹æ¾î °ø°£ 31-40  

°ü¸®¹æ¾î °ø°£ 31-40 / level 31 / level 32 / level 33 / level 34 / level 35 / level 36 / level 37 / level 38 / level 39 / level 40

level 31  

+ Ç®ÀÌ ¹æ¹ý

  1. /etc/inetd.conf ÆÄÀÏ ÆíÁý /usr/sbin/tcpd
  2. hosts.allow ¿Í hosts.deny ÆÄÀÏ ÆíÁý

- ½ÇÁ¦ Ç®ÀÌ
# vi /etc/inetd.conf

# Ftp and telnet are standard Internet services.
#
ftp     stream  tcp     nowait  root    /usr/sbin/tcpd          in.ftpd           // ÆíÁý ºÎºÐ
telnet  stream  tcp     nowait  root    /usr/sbin/tcpd          in.telnetd        // ÆíÁý ºÎºÐ
"inetd.conf" 147 lines, 5070 characters written

# vi /etc/hosts.allow

in.telnetd:211.241.82.54/255.255.255.0
in.ftpd:211.241.82.54/255.255.255.0
~
~
"hosts.allow" 3 lines, 76 characters written
#
# vi /etc/hosts.deny
ALL:ALL
~
~
"hosts.deny" 1 line, 8 characters written

# ps
   PID TTY      TIME CMD
 23422 pts/22   0:00 bash
 23589 pts/22   0:00 ps
 23425 pts/22   0:00 inetd
# kill -1 23425
# finish

> pass = wrapperimportant

level 32  

+ Ç®ÀÌ ¹æ¹ý

  1. /etc/system ÆÄÀÏÀº Ä¿³Î ±¸¼º ÇÁ·Î¼¼½º(kernel configuration process) º¯°æÀ» À§ÇØ ¸¸µé¾îÁü

- ½ÇÁ¦ Ç®ÀÌ
# vi system
*ident  "@(#)system     1.18    97/06/27 SMI" /* SVR4 1.5 */
*
// Áß°£ »ý·«

set swip:tcpidletimeout=200          //Ãß°¡ ºÎºÐ
~
~
"system" 78 lines, 1910 characters written

# finish

> pass = hackersbeware

level 33  

+ Ç®ÀÌ ¹æ¹ý

  1. ·Î±×Àΰú °ü·ÃµÈ /etc/default/login ÆÄÀÏ ÆíÁý

- ½ÇÁ¦ Ç®ÀÌ
# vi /etc/default/login

#ident  "@(#)login.dfl  1.8     96/10/18 SMI"   /* SVr4.0 1.1.1.1       */

# If CONSOLE is set, root can only login on that device.
# Comment this line out to allow remote login by root.
#
CONSOLE=/dev/console

# TIMEOUT sets the number of seconds (between 0 and 900) to wait before
# abandoning a login session.
#
TIMEOUT=600
~
~
"/etc/default/login" 46 lines, 1077 characters written
# finish

¡Ø CONSOLE º¯¼öÀÇ ÇüÅÂ
- CONSOLE=/dev/console°ú °°ÀÌ ¼³Á¤µÈ °æ¿ì ¼öÆÛÀ¯Àú ·Î±×ÀÎÀº Äֻܼ󿡼­¸¸ °¡´É
- #CONSOLE/dev/console°ú °°ÀΠÁÖ¼®Ã³¸®ÀÇ °æ¿ì ¾îµð¼­µçÁö ·Î±×ÀΠ°¡´É
- CONSOLE= ¿Í °°ÀÌ null·Î ±ÔÁ¤µÇ¾î Àִٸ頽´ÆÛÀ¯Àú·Î¼­ÀÇ ·Î±×ÀΠÇã¿ë ¾ÊµÊ ÀϹݠÀ¯Àú ·Î±×ÀÎÈÄ su¸í·É »ç¿ë

> pass = aboutrootlogin

level 34  

+ Ç®ÀÌ ¹æ¹ý

  1. __/etc/system ÆÄÀÏ ÆíÁý

- ½ÇÁ¦ Ç®ÀÌ
# vi /etc/system

*ident  "@(#)system     1.18    97/06/27 SMI" /* SVR4 1.5 */
*
* SYSTEM SPECIFICATION FILE
*
// Áß°£ »ý·«

// Ãß°¡ºÎºÐ
set noexec_user_stack=1
set noexec_user_stack_log=1
~
~
"/etc/system" 80 lines, 1935 characters written
# finish

> pass = BOFattack

level 35  

+ Ç®ÀÌ ¹æ¹ý

  1. /etc/default/login ÆÄÀÏ º¯°æ RETRIES º¯¼ö°ª ¼³Á¤
  2. touch »ç¿ë /var/adm/loginlog ÆÄÀÏ »ý¼º

- ½ÇÁ¦ Ç®ÀÌ
# vi /etc/default/login 

// Áß°£ »ý·«

RETRIES=5
~
~
"/etc/default/login" 52 lines, 1171 characters written
# touch /var/adm/loginlog

# finish

> pass = nologinover5try

level 36  

+ Ç®ÀÌ ¹æ¹ý

  1. ¶ó¿ìÅÍ~ ½ÇÁ¦ Ç®ÀÌ ÂüÁ¶

- ½ÇÁ¦ Ç®ÀÌ
Router# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)# logging 10.10.10.10
Router(config)# logging facility kern
Router(config)# logging trap debugging
Router(config)# access-list 101 permit tcp any any established
Router(config)# access-list 101 permit tcp any any eq www
Router(config)# access-list 101 deny ip any any log
Router(config)# int serial0
Router(config-if)# ip access-group 101 in
Router(config-if)# exit
Router(config)# exit
Router# sh logging 
Syslog logging: enabled (0 messages dropped, 0 messages rate-limited, 0 flushes, 
         0 overruns) 
        Console logging: level debugging, 4562521 messages logged 
        Monitor logging: level debugging, 0 messages logged 
        Buffer logging: level debugging, 0 messages logged 
        Logging Exception size (4096 bytes) 
        Trap logging: level debugging, 4562516 message lines logged 
        Logging to 10.10.10.10, 4562516 message lines logged 
Log Buffer (40960 bytes): 

        IP: sending v1 update to 255.255.255.255 via serial01/1 (10.1.1.1) 
        11w1d: RIP: build update entries 
        11w1d:  network 172.16.0.0 metric 1 
        11w1d:  network 211.252.150.0 metric 2 
        11w1d: RIP: Update contains 2 routes 
        11w1d: RIP: Update queued 
        11w1d: RIP: Update sent via serial0 
        11w1d: RIP: Update sent via serial0 
        11w1d: RIP: Update sent via serial0 
        11w1d: RIP: Update sent via serial0 
        4.90(60716), 1 packet 
        4.50(8080), 1 packet 
        4.90(60720), 1 packet 
        11w1d: RIP: received v1 update from 172.16.14.1 on serial0 
        11w1d:      0.0.0.0 in 1 hops 
        11w1d:      211.252.150.0 in 1 hops 
        11w1d:  network 172.16.0.0 metric 1 
        11w1d:  network 211.252.150.0 metric 2 
        11w1d: RIP: sending v1 update to 255.255.255.255 via serial00/0 (172.16.14.2) 
        11w1d: RIP: build update entries 
        11w1d:  network 10.0.0.0 metric 1 
Router# write
%SYS-5-CONFIG_I: Configured from console by console
Building configuration...
[OK]
Router# exit
exit from router
# finish

> pass = ienjoysis

level 37  

+ Ç®ÀÌ ¹æ¹ý

  1. ¶ó¿ìÅÍ ½ÇÁ¦ Ç®ÀÌ ÂüÁ¶
  2. class-map ¼³Á¤
  3. policy-mapdp class-map ¸ÅÇÎ
  4. ÀÌ´õ³ÝÀåÄ¡(serial0)¿¡ policy-map ¼­ºñ½º Ãß°¡
  5. ÀÌÈÄ ÇØÅ· ½Ãµµ ¹æÁö(¼ÖÁ÷È÷ ÀÌÇØ ¾Ê°¨)
  6. http://krcert.or.kr ±â¼ú¹®¼­ (³×Æ®¿öÅ© ÇÊÅ͸µ ±â¹ýÀ» ÅëÇÑ code Red ¿ú ´ëÀÀ ¹æ¹ý) Âü°í

- ½ÇÁ¦ Ç®ÀÌ
Router# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)# class-map match-any http-hacks
Router(config-cmap)# match protocol http url "*worm.exe*"
Router(config-cmap)# match protocol http url "*virus.exe*"
Router(config-cmap)# match protocol http url "*trojan.exe*" 
Router(config-cmap)# exit
Router(config)# policy-map mark-inbound-http-hacks
Router(config-pmap)# class http-hacks
Router(config-pmap-c)# set ip dscp 1
Router(config-pmap-c)# exit
Router(config-pmap)# exit
Router(config)# interface serial0
Router(config-if)# service-policy input mark-inbound-http-hacks
Router(config-if)# exit
Router(config)# access-list 106 permit ip any any dscp 1
Router(config)# route-map null-policy-route 10
Router(config-route-map)# match ip address 106
Router(config-route-map)# set interface Null0
Router(config-route-map)# exit
Router(config)# interface serial0
Router(config-if)# ip policy route-map null-policy-route
Router(config-if)# exit
Router(config)# exit
Router# write
%SYS-5-CONFIG_I: Configured from console by console
Building configuration...
[OK]
Router# exit
exit from router
# finish

> pass = securityplus+

level 38  

+ Ç®ÀÌ ¹æ¹ý

  1. setfacl ¸í·É »ç¿ë ÁöÁ¤
  2. chmod ¸í·É »ç¿ë ¦ÅüÀ¸·Î º¯°æ

- ½ÇÁ¦ Ç®ÀÌ
# getfacl -a /home0/cert/icert_solution.d 

# file: icert_solution.d
# owner: 2004
# group: other
user::rw-
group::r--              #effective:r--
mask:r--
other:r--
# setfacl -m user:itiger:6 icert_solution.d 
# chmod 640 /home0/cert/icert_solution.d 
# ls -l
ÃÑ 0
-rw-r-----+  1 root     other          0  8¿ù 31ÀÏ  18:58 icert_solution.d
# finish

> pass = controlspecificuser

level 39  

+ Ç®ÀÌ ¹æ¹ý

  1. /etc/mail/access ÆÄÀÏ º¯°æ
  2. makemap ¸í·É »ç¿ë µðºñ¸¦ »ý¼º(hash)ÈÄ Àû¿ë(dbm)

- ½ÇÁ¦ Ç®ÀÌ
# vi /etc/mail/access

hacker.com      REJECT
spam@hacker.com REJECT
useful.org      RELAY
172.16.5.0      RELAY
~
~
"/etc/mail/access" 5 lines, 76 characters written

# /etc/mail/makemap hash /etc/mail/access < /etc/mail/access 
# /etc/mail/makemap dbm /etc/mail/access < /etc/mail/access

# finish

> pass = redcode

level 40  

+ Ç®ÀÌ ¹æ¹ý

  1. /etc/syslog.conf ÆÄÀÏ ¼öÁ¤
  2. /etc/inetd.conf ÆÄÀÏ ¼öÁ¤
  3. inetd ¸í·É -s, -t ¿É¼Ç »ç¿ë

- ½ÇÁ¦ Ç®ÀÌ
# vi /etc/syslog.conf 
// Áß°£ »ý·«

daemon.notice                  /var/adm/inetdlogs         //Ãß°¡ ºÎºÐ
~
~
"/etc/syslog.conf" 37 lines, 1027 characters written
# vi /etc/inetd.conf
#
# Ftp and telnet are standard Internet services.
#
ftp     stream  tcp     nowait  root    /usr/sbin/tcpd  in.ftpd -ld   // Ãß°¡ ºÎºÐ
telnet  stream  tcp     nowait  root    /usr/sbin/tcpd  in.telnetd
#
"/etc/inetd.conf" 147 lines, 5072 characters written

# ps
   PID TTY      TIME CMD
 27565 pts/22   0:00 ps
 27551 pts/22   0:00 bash
 27554 pts/22   0:00 inetd
 27558 pts/22   0:00 syslogd
# kill -1 27558                     //  µ¥¸ó Àç½ÇÇà
# /usr/sbin/inetd -s -t
# finish

> pass = inetdservicelogging


Last : 2004-09-13 17:12:15   Who : 210.106.83.198
Version : v1
1368 hits