1600, 1/80 ȸ¿ø°¡ÀÔ  ·Î±×ÀΠ 
   h41d35
   Sendmail ¼Ò½º·Î ¼³Ä¡Çϱâ

http://www.hackerschool.org/HS_Boards/zboard.php?id=Free_Lectures&no=49 [º¹»ç]


/********************************************************************************/
Á¦  ¸ñ : Sendmail ¼Ò½º ¼³Ä¡Çϱ⠠                
ÀÛ¼ºÀÚ : h41d35@Realskulls.Team                                                  
/********************************************************************************/

1. Sendmail À̶õ?
  ¼¾µå¸ÞÀÏÀ̶õ.. ÀÎÅͳݿ¡¼­ ¸ÞÀÏÀ» ÁÖ°í ¹ÞÀ»¼ö ÀÖ´Â Á߰迪ÇÒÀ» ÇÏ´Â ¼­¹öµ¥¸ó Áï
ÀÏÁ¾ÀÇ ÀÎÅͳݿ¡¼­ ¸ÞÀÏÀ» ÁÖ°í ¹Þ´Â ÇÁ·Î±×·¥ÀÌ´Ù.


2. ÀÌÀü ¹öÀü Á¦°Å

[root@bitLab root]# rpm -qa | grep sendmail //¼³Ä¡µÇ¾î ÀÖ´Â ¼¾µå¸ÞÀÏÀ» º¸¿©Áà
sendmail-cf-8.12.5-7
sendmail-8.12.5-7
sendmail-devel-8.12.5-7

// Àڱ⠽ýºÅÛ¿¡ ´Ù¸¥ ¹öÀüÀÇ ¼¾µå¸ÞÀÏÀÌ ¼³Ä¡ µÇ¾î ÀÖÀ» ¼ö ÀÖ½À´Ï´Ù.
// '8.12.5-7' ¿ä°Ô ¹öÀüÀÓ...^^

[root@bitLab root]# rpm -e --nodeps sendmail-8.12.5-7  //Á¦°Å ¸í·É¾î
[root@bitLab root]# rpm -e --nodeps sendmail-cf-8.12.5-7
[root@bitLab root]# rpm -e --nodeps sendmail-devel-8.12.5-7

  
3.Sendmail ¼Ò½º ´Ù¿î ¹Þ±â

[root@bitLab root]# ncftp
[root@bitLab root]# open ftp.sendmail.org
[root@bitLab root]# cd /pub/sendmail
[root@bitLab root]# get sendmail.8.12.9.tar.gz


4.Sendmail ½ÇÇà ÆÄÀÏ »ý¼º

[root@bitLab work]# tar xvfz sendmail.8.12.9.tar.gz //ÀÔÃàÇ®°í..Go~~
[root@bitLab work]# cd sendmail-8.12.9
[root@bitLab work]# make
[root@bitLab sendmail-8.12.9]# make install       //½ÇÇàÆÄÀÏ ÀνºÅç


5.Sendmail ¼³Á¤ÆÄÀÏ »ý¼º
  
[root@bitLab sendmail-8.12.9]# cd cf/cf           //µð·ºÅ丮 À̵¿
[root@bitLab cf]# mv generic-linux.mc sendmail.mc //À̸§ ¹Ù²ãÁÖ°í..Go~~
[root@bitLab cf]# sh Build sendmail.cf            //¼³Á¤ÆÄÀÏ »ý¼º
[root@bitLab cf]# make install-cf                 //¼³Á¤ÆÄÀÏ ÀνºÅç


6.Sendmail ±âŸ ¼³Á¤ÆÄÀÏ ¼³Á¤

[root@bitLab cf]# cd /etc/mail
[root@bitLab mail]# ls
  helpfile  sendmail.cf  statistics  submit.cf

[root@bitLab mail]# vi access
  192.168.25      RELAY                            //Áß°è ¾ÆÀÌÇÇ ¼³Á¤
  127.0.0.1       RELAY
  localhost       RELAY
  localhost.localdomain   RELAY

  
[root@bitLab mail]# vi aliases
  webmaster:  root

[root@bitLab mail]#touch local-host-names          //ºóÆÄÀÏ »ý¼º


[root@bitLab mail]# makemap hash access < access   //access.db ¸¦ °»½Å
[root@bitLab mail]# newaliases                     //aliases.db ¸¦ °»½Å

[root@bitLab sbin]# mkdir /var/spool/mqueue        //µð·ºÅ丮 »ý¼º
[root@bitLab sbin]# chmod 775 /var/spool/mqueue    //±ÇÇѼ³Á¤


7.Sendmail ½ÇÇà

[root@bitLab sbin]# /usr/sbin/sendmail -Ac -q1h    //Áß°è¿ë µ¥¸ó
[root@bitLab sbin]# /usr/sbin/sendmail -bd -q1h    //Á¦Ãâ¿ë µ¥¸ó


8.Sendmail µ¿ÀÛ Å×½ºÆ®

  [root@bitLab root]# telnet localhost 25
  mail from : [º¸³»´ÂÀÌ ¸ÞÀÏ ÁÖ¼Ò] Enter
  rcpt to :   [¹Þ´ÂÀÌ ¸ÞÀÏ ÁÖ¼Ò]   Enter
  data        Enter
  [³»¿ë]
  .       Enter   // Á¡À» Âï°í Enter ÃÄ¾ß ºüÁ® ³ª°¨....^^
  quit        Enter

  Hit : 13739     Date : 2003/09/12 07:34



    
lawsoul ÁÁÀºÁ¤º¸ °¨»çÇÕ´Ï´Ù.

¼¾µå¸ÅÀÏ. ¸»±×´ë·Î ¸ÞÀÏÀ»º¸³½´Ù±º¿ä.

Áö±ÝÀº ¸®´ª½º¸¦ ±ò¾Æ³õ±â¸¸ ÇÑ»óŶó.

Çò°¥¸®´Â ºÎºÐÀÌ ¸¹³×¿ä. Áö±Ýµµ ¾²ÀÌ´ÂÁöµµ ±À±ÀÇÏ°í¿ä.

´ÙÀ½¿¡ Áß±ÞÀÚ¼öÁØÀÌ µÇ¸é ´Ù½ÃÇѹø º¸·¯¿Í¾ß°Ú³×¿ä.

¿À·¡µÈ ±ÛÀÌÁö¸¸ °¨»çÇÕ´Ï´Ù.
2012/01/16  
     [°øÁö] °­Á¸¦ ¿Ã¸®½Ç ¶§´Â ¸»¸Ó¸®¸¦ ´Þ¾ÆÁÖ¼¼¿ä^¤Ñ^ [29] ¸Û¸Û 02/27 19536
1599   [overthewire.org] - leviathan1     ÇØÅ·ÀßÇÏ°í½Í´Ù
01/14 15
1598   [overthewire.org] - leviathan0     ÇØÅ·ÀßÇÏ°í½Í´Ù
01/14 13
1597   [Write Up] Crypto Cat's CTF 2024 - BabyFlow     ÇØÅ·ÀßÇÏ°í½Í´Ù
12/29 96
1596   [pwnable.kr] bof     ÇØÅ·ÀßÇÏ°í½Í´Ù
12/25 91
1595   [pwnable.kr] Shellshock[1]     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/23 221
1594   ShellshockÀÇ ±âº» ¿ä¾à     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/23 189
1593   [pwnable.kr] fd     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/23 181
1592   VPNÀÌ ¿¬°áµÇ¾ú´Ù°¡ µµÁß¿¡ ²¨µµ À¥ ºê¶ó¿ìÀú»ó¿¡¼­ À¯ÁöµÇ´Â ÀÌÀ¯     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/22 182
1591   ÇØÄ¿µéÀÌ ÇØÅ·½Ã »ç¿ëÇÏ´Â µð·ºÅ丮 °ø°£[1]     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/22 225
1590   Keyboard Hooking -part2 - (Python3 ver)     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/20 199
1589   [Windows API] Keyboard Hooking     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/20 175
1588   [pwnable.kr] cmd1 °ø·«     ÇØÅ·ÀßÇÏ°í½Í´Ù
10/23 357
1587   netdiscover ÆÄÀ̽ãÀ¸·Î ±¸ÇöÇϱ⠠   ÇØÅ·ÀßÇÏ°í½Í´Ù
08/13 627
1586   ÆÄÀ̽ãÀ» ÀÌ¿ëÇÑ ½ÉÇà À¥ Å©·Ñ·¯     ÇØÅ·ÀßÇÏ°í½Í´Ù
08/13 506
1585   ÆÄÀ̽ã random¸ðµâÀ» ÀÌ¿ëÇÑ ¼ýÀÚ¸ÂÃ߱⠰ÔÀÓ ±¸Çö     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/30 1059
1584   ÆÄÀ̽ã äÆà ÇÁ·Î±×·¥ ±¸Çö     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/28 959
1583   ÆÄÀ̽㠼ÒÄÏ ÇÁ·Î±×·¡¹ÖÀÇ ±âÃÊ     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/26 1110
1582   ¸®´ª½º À¥ ·Î±× ºÐ¼®     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/20 735
1581   ¸®´ª½º/À©µµ¿ì º¸¾È Àåºñ ·Î±×     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/20 894
1 [2][3][4][5][6][7][8][9][10]..[80]

Copyright 1999-2025 Zeroboard / skin by Hackerschool.org / Secure Patch by Hackerschool.org