æ»ã ãã¾ã : PIC,PIE,shellcode,ASLR æå¾ã«ãç¥ã£ã¦ããã¨ãã話é¡ã¨ãã¦ã æãããã使ãããPICã¨å¼ã°ããããã°ã©ã ã®å½¢å¼ã«ã¤ãã¦èª¬æãã ã¡ã¢ãªç ´å£ãã°ãå¼ãç½®ããshellcodeã®ç´¹ä»ã ããããPICãå¿ç¨ãã¦shellcodeã®åé¡ãç·©åããææ³ã§ãã ASLR ã«ã¤ãã¦èª¬æãã¦ãããã PIC (Position Independent Code:ä½ç½®ç¬ç«ã³ã¼ã)ã¨ã¯ãã©ããªã¢ãã¬ã¹ã«é ç½®ããã¦ãåä½ããæ©æ¢°èªã³ã¼ãã®ãã¨ã ã ããã¾ã§èª¬æãã¦ããæ©æ¢°èªããã°ã©ã ã¯ãPICã§ã¯ãªãã£ããä¾ãã°ã次ã®ELFå®è¡ãã¡ã¤ã«ãèãããã pic_pie/no_pic.s .globl _start .text _start: incl data0 mov $60, %rax syscall .data data0: .long 8 $ as -o no_p
{{#tags}}- {{label}}
{{/tags}}