B / Y / U / S
HOME À¥ È£½ºÆà µµ¸ÞÀÎ ¸Å´º¾ó °í°´Áö¿ø ¼³Á¤Á¤º¸ °èÁ¤½Åû 2024-12-25 Wednesday 
À¥ È£½ºÆÃ
# °øÁö »çÇ×
# ÀÚÁÖ ¹¯´Â Áú¹®
# Áú¹®°ú ´äº¯
# °¡ÀÔ ¹®ÀÇ
Ä¿¹Â´ÏƼ
# ÀÚÀ¯°Ô½ÃÆÇ
# ¸®´ª½ºÆÁ
# ¾ÆÀÌÅ¥ Å×½ºÆ®
# ³»È¨ ¼Ò°³
# °Ö·¯¸®
# ÀÚ·á½Ç

  ¸®´ª½ºÆÁ  Go Unix Power Tools Online Book Go Bash Guide
Read No. 192 article 2004-03-29 17:27:07
NickName   Ç®ºñ´©
Subject   ¼Ò½ºÀÇ ¹®ÀÚ¿­ ÀÏ°ý º¯°æ
ÇöÀç Æú´õ¿Í Æú´õ ÇϺΠÀÚ·á ÀÏü¿¡ ´ëÇÏ¿©, ¼Ò½ºÀÇ ¹®ÀÚ¿­ º¯°æ ó¸®..



¿¹1 ) id.byus.net À¸·Î ¼Ò½º ÀÛ¾÷ÇÑ °ÍÀ» °³ÀÎ µµ¸ÞÀÎÀ¸·Î ¼Ò½º ÀÏ°ý
      º¯°æ ÇÏ°í ½ÍÀ»¶§

ÀÔÁÖ¼­¹ö¿¡ ÅÚ³Ý Á¢¼ÓÀ» ÇÑÈÄ¿¡, ½© ¸Þ´ÏÁ® Á¾·á¸¦ ÇÏ¿©
½©·Î ºüÁ®³ª¿Â ´ÙÀ½ 

cd public_html [¿£ÅÍ]
----> public_html Æú´õ·Î À̵¿

grep "yourid.byus.net" * -r |less [¿£ÅÍ] 
----> public_html Æú´õ¾È¿¡ ¼Ò½ºÁß yourid.byus.net ÀÇ ³»¿ëÀÌ µé¾îÀÖ´Â ÆÄÀÏ °Ë»ö

userfind ./ -type f \( -iregex ".*\.php3?" -o -iregex ".*\.html?" -o -iregex ".*\.css" \
-o -iregex ".*\.cgi" \) -exec perl -p -i -e 's|yourid.byus.net|YOURODMAIN|g' {} \; [¿£ÅÍ]
-> µÎÁÙÀÔ´Ï´Ù. [ùÁÙ ³¡¿¡ \ ÀÌ µÎÁÙÀ» ÇÑÁÙ·Î À̾îÁÖ´Â ¿ªÇÒ]

----> public_html Æú´õ¾È¿¡ ¼Ò½ºÁß yourid.byus.net ÀÇ ³»¿ëÀ» YOURDOMAIN À¸·Î º¯°æ

(ºñ´©³Ý ³»ºÎ ȯ°æ : userfind ´Â find ¸í·ÉÀÇ alias)




¿¹Á¦ 2)

abc.byus.net À» abc.com À¸·Î ¼Ò½º ³»¿ë ÀÏ°ý º¯°æ

1. ÅÚ³Ý Á¢¼Ó ÈÄ ½© ¸Þ´ÏÁ®¿¡¼­ ºüÁ®³ª¿È
2. cd public_html [¿£ÅÍ]
3. grep "abc.byus.net" * -r |less [¿£ÅÍ] 
4. 
userfind ./ -type f \( -iregex ".*\.php3?" -o -iregex ".*\.html?" -o -iregex ".*\.css" \
-o -iregex ".*\.cgi" \) -exec perl -p -i -e 's|abc.byus.net|abc.com|g' {} \; [¿£ÅÍ]
-> µÎÁÙÀÔ´Ï´Ù. [ùÁÙ ³¡¿¡ \ ÀÌ µÎÁÙÀ» ÇÑÁÙ·Î À̾îÁÖ´Â ¿ªÇÒ]

-> php, php3, htm, html, cgi µîÀÇ È®ÀåÀÚ¿¡ ´ëÇؼ­ ¼Ò½º º¯°æµÇ´Â ¸í·É
Regist Addr [ 211.112.113.111 ] ¸ñ·Ïº¸±â À­±Û ¾Æ·§±Û
Á¤±ÔÇ¥Çö½Ä [ »ó¼¼ °Ë»ö ]
Page Loading [ 0.03 Sec ] SQL Time [ 0 Sec ]

Copyleft 1999-2024 by JSBoard Open Project
Theme Designed by IDOO And follow GPL2

°³ÀÎÁ¤º¸ Ãë±Þ¹æħ ÀÌ¿ë ¾à°ü »çÀÌÆ® ¸Ê ¾îµå¹Î °ü¸®