1600, 1/80 ȸ¿ø°¡ÀÔ  ·Î±×ÀΠ 
   X-line
   ¸®´ª½º¿¡¼­ cÇÁ·Î±×·¥ ½Ç½ÀÇϱâ

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


(1)¸®´ª½º¿¡¼­ c ÇÁ·Î±×·¥À» ÀÛ¼ºÇÏ°í ½ÇÇàÇϱâ±îÁöÀÇ °úÁ¤À» µû¶óÇغ¾½Ã´Ù.

ÇÁ·Î±×·¥À» ÀÛ¾÷ÇÒ programX-lineÀ̶ó´Â µð·ºÅ丮¸¦ ¸¸µé¾îº¾´Ï´Ù.

µð·ºÅ丮¸¦ ¸¸µå´Â ¸í·É¾î´Â mkdirÀÌ°í ¸¸µé°íÀÚÇÏ´Â µð·ºÅ丮 À̸§À» ¸í·É¾î

µÚ¿¡ ½áÁÖ°í ¿£Å͸¦ ´©¸¨´Ï´Ù.

[k@localhost k]#mkdir programX-line

(2)programX-line µð·ºÅ丮¸¦ ¸¸µé¾úÀ¸¸é cd¸í·É¾î¸¦ ÀÌ¿ëÇÏ¿© À̵¿À» ÇÕ´Ï´Ù.

[k@localhost k]#cd programX-line

(3)ÀÛ¼ºÇÒ ÆÄÀÏÀÌ X-line.c ¶ó¸é vi X-line.c ÀÌ·¸°Ô ¸í·ÉÇÏ´Â°Ô ÆíÇÕ´Ï´Ù.

  ¿©±â¼­ vi¿¡µðÅÍ°¡ ³ª¿É´Ï´Ù. ³»¿ëÀ» ÀÔ·ÂÇÏ·Á¸é 'i'Å°¸¦ ´©¸¨´Ï´Ù.
  
  È­¸éÁÂÃø ÇÏ´Ü¿¡ '-- INSERT --'¶ó°í ³ª¿À¸é ³»¿ëÀ» ÀÔ·ÂÇÒ¼öÀÖ´Ù´Â ¶æÀÔ´Ï´Ù.
  
  ±×¸®¸é ¾Æ·¡¿Í °°ÀÌ ÀÛ¼ºÀ» ÇÕ´Ï´Ù.

[k@localhost programX-line]#vi X-line.c

  #include <stdio.h>
  main()
  {
          printf("Àú´Â X-line ÀÔ´Ï´Ù.");
  }

(5)ÀÔ·ÂÀ» ´ÙÇßÀ¸¸é ÀúÀåÇÏ°í vi¸¦ ºüÁ®³ª¿Í¾ß Çϴµ¥ ¸í·É ¸ðµå·Î ÀüȯÇϱâ À§ÇØ

escÅ°¸¦ ´©¸¥ÈÄ ÀúÀåÇÑÈÄ¿¡ Á¾·á½ÃÅ°·Á¸é ÄÝ·Ð(:)À» ´©¸£°í ÀúÀåÀ» ÀǹÌÇÏ´Â wÅ°¿Í

Á¾·á¸¦ ÀǹÌÇÏ´Â q Å°¸¦ ´©¸¥ÈÄ¿¡ ¿£ÅÍÅ°¸¦ ´©¸¨´Ï´Ù.

(ex)     :wq  -----> ÀÌ·¯°Ô Çϸé ÀúÀå°ú Á¾·á°ú µ¿½Ã¿¡ µË´Ï´Ù.

(6) vi¸¦ Á¾·áÇϸé ÇÁ·ÒÇÁÆ®¿Í Ä¿¼­°¡ ³ª¿É´Ï´Ù.

[k@localhost programX-line]#|

(7)ÆÄÀÏÀÌ »ý¼ºµÇ¾ú´ÂÁö ls¸í·É¾î·Î È®ÀÎÇغ»´Ù.

[k@localhost programX-line]#ls
X-line.c      //»ý¼ºÀÌ ‰ç´Ù.

(8)ÀÌÁ¦ ÀÛ¼ºÇÑ ÆÄÀÏÀ» ÄÄÆÄÀÏ ÇؾßÇϴµ¥ gcc·Î ÄÄÆÄÀÏÀ» ÇÑ´Ù.

[k@localhost programX-line]#gcc X-line.c

(9)a.outÀÌ »ý¼ºµÇ¾îÀÖ´ÂÁö È®ÀÎÀ» Çغ¸ÀÚ

[k@localhost programX-line]#ls
X-line.c    a.out    //»ý¼ºÀ̉ç´Ù.

(10)./a.out À̶ó°í ÀÔ·ÂÇÏ°í ¿£¤¼¸¦ ´©¸£¸é "Àú´Â X-line ÀÔ´Ï´Ù."°¡ Ãâ·ÂµÈ´Ù.

[k@localhost programX-line]#./a.out
Àú´Â X-line ÀÔ´Ï´Ù.

(11) ¸í·É¾î ¾Õ¿¡ ./¸¦ ¾´ ÀÌÀ¯´Â ÇöÀç µð·ºÅ丮°¡ path·Î ¼³Á¤µÇÁö ¾Ê¾Æ ¸í·É¾î¸¦

ãÀ»¼ö ¾ø±â¶§¹®ÀÌ´Ù.

³¡.

  Hit : 10246     Date : 2005/12/14 11:55



    
blackdong Áú¹®ÀÓ´Ï´Ù..C++µµ °¡´ÉÇÑ°Ç°¡¿ä?? *.cppÈ®ÀåÀÚ·Î 2006/01/24  
jardin ÁÁÀº°­Á °¨»çµå¸³´Ï´Ù. 2007/04/05  
     [°øÁö] °­Á¸¦ ¿Ã¸®½Ç ¶§´Â ¸»¸Ó¸®¸¦ ´Þ¾ÆÁÖ¼¼¿ä^¤Ñ^ [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 220
1594   ShellshockÀÇ ±âº» ¿ä¾à     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/23 188
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