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

  ¸®´ª½ºÆÁ  Go Unix Power Tools Online Book Go Bash Guide
Read No. 11 article 2001-08-04 09:31:20
NickName   Ç®ºñ´©
Subject   À¥¿¡¼­.. °èÁ¤Ãß°¡Çϱâ..
Á¤¹Î¼®´ÔÀÇ ±ÛÀÔ´Ï´Ù.

¾ó¸¶Àü À¥¿¡¼­ »ç¿ëÀÚ Ãß°¡ÇÏ´Â °ÍÀÌ ²À ÇÊ¿äÇؼ­... 
¿©±â¼­ ÀڷḦ ã¾Ò½À´Ï´Ù.. 
±×·±µ¥ ´äÀº ¾ø°í...¶Ç´Â ´äÀº ÀÖÁö¸¸ ¹àÈú ¼ö´Â ¾ø´Ù°í ÀûÇô ÀÖ´õ¶ó±¸¿ä... 
¹¹... º¸¾È»ó Áß¿äÇؼ­ ¹àÈú ¼ö ¾ø´Ù°í... 
À½... 
Àú´Â ÇöÀç À¥¸ÞÀÏÀ» ¸¸µé°í Àִµ¥... 
»ç¿ëÀÚ°¡ °¡ÀÔÇÏ¸é °¡ÀÔó¸® ¹®Á¦°¡ °ñÄ¡°¡ ¾ÆÆͽÀ´Ï´Ù... 
qmailÀ» »ç¿ëÇÏ¸é ¹Ù·Î DB¿¡ ³ÖÀ¸¸é µÈ´Ù°í Çϴµ¥.. 
Àú´Â qmailÀ» »ç¿ëÇÏÁöµµ ¾Ê¾Ò°í ´ÜÁö sendmailÀ» »ç¿ëÇÏ°í Àִµ¥... 
±×·¡¼­ °ñÄ¡°¡ ¸Å¿ì ¾ÆÆͽÀ´Ï´Ù... 
ÀÌÁ¦ ¼­·ÐÀº ¿©±â±îÁö ÇÏ°í ÇϹø Çغ¾½Ã´Ù... 
php¿¡¼­ º¸¸é ¿ÜºÎ ½ÇÇàÆÄÀÏÀ» ½ÇÇà½ÃÅ°´Â exec¶ó´Â ÇÔ¼ö°¡ ÀÖÀݾƿä... 
À̳ðÀ» ÀÌ¿ëÇÏ°í ±×¸®°í Àú´Â shell ½ºÅ©¸³Æ® ÇÏ°í perl ½ºÅ©¸³Æ® µÎ°³¸¦ »ç¿ëÇß½À´Ï´Ù... 
³Ê¹« °Ì¸ÔÁö ¸¶¼¼¿ä.. ÄÚµå´Â ¸Å¿ì ªÀº´Ï±ñ..... 
¸ÕÀú useradd ¶ó´Â ½ÇÇà ÇÁ·Î±×·¥ÀÌ ¾Æ¸¶µµ ¸®´ª½º¿¡´Â 
/usr/sbin/ ¹Ø¿¡ ÀÖÀ» °Ì´Ï´Ù... 
À̳ðÀ» Àڱ⠵ð·ºÅ丮µµ copyÇؼ­.. 
chmod a+s useradd ·Î ¹Ù²Ù¾î ÁÖ¼¼¿ä.... ¸Å¿ì Áß¿äÇÕ´Ï´Ù... 
±×¸®°í ³ª¼­.. 
°¡ÀÔÀÚ ÆÄÀÏ¿¡¼­... 
exec (add $user $pass); 
ÀÌ·¸°Ô ÇÑ ÁÙ ³Ö½À´Ï´Ù.. 
¿©±â¼­ ½ÇÇà ÆÄÀÏÀº addÀÌ°í user¿Í pass´Â »ç¿ëÀÚ ¾ÆÀ̵ð¿Í Æнº¿öµåÀÌÁÒ... 
±×·¯¸é add ½ÇÇà ÆÄÀÏÀ» º¼±î¿ä..¾ÆÁÖ °£´Ü... 
#!/usr/sh 
perl add.pl $1 $2 
À§ÀÇ ¼Ò½º°¡ ³¡ÀÔ´Ï´Ù... 
Àμö·Î µÎ°³¸¦ ¹ÞÁÒ... 
Çϳª´Â $1¿¡´Â user¾ÆÀ̵ð..$2¿¡¼­´Â Æнº¿öµå... 
±×·³ ÀÌÁ¦´Â perl ¼Ò½º¸¦ º¼±î¿ä... 
#!/usr/bin/perl 
# Àμö üũ.. 
$check = @ARGV; 
if ($check != 2) { 
     print "Àμö°¡ Àß ¸øµÇ¾ú½À´Ï´Ù!" 
     exit; 
} 

# Ãß°¡½ÃŲ´Ù.. 
$user = $ARGV[0]; 
$pass = $ARGV[1]; 

$pass = crypt($pass,15);  ## linux Æнº¿öµå ¾Ïȣȭ ¹æ½Ä.. 
print (`/home/httpd/lib/useradd $user -M -s /bin/false -p $pass`); 
ÀÌ·¸°Ô ³¡... 
¿©±â¼­ Ãß°¡ ¹æ½ÄÀº Àú´Â »ç¿ëÀÚ°¡ ±×³É °èÁ¤¸¸ °¡Áö°í ÀÖ°í telnet Á¢¼ÓÀº ±ÝÁöÇϱâ À§Çؼ­.. 
À§Ã³·³..ÀÌ·¸°Ô »ç¿ëÇßÁÒ... 
±Ã±ÝÇÑ »çÇ×ÀÌ ÀÖÀ¸½Ã¸é Àú¿¡°Ô ¸ÞÀÏÀ» ÁÖ¼¼¿ä... 
±×·³...
Regist Addr [ 210.221.19.151 ] ¸ñ·Ïº¸±â À­±Û ¾Æ·§±Û
Á¤±ÔÇ¥Çö½Ä [ »ó¼¼ °Ë»ö ]
Page Loading [ 0.02 Sec ] SQL Time [ 0 Sec ]

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

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