| skipped 72 lines |
73 | 73 | | url = urllib.parse.urlunparse(t_urlparse) |
74 | 74 | | doTest( url ) |
75 | 75 | | # convert get params to post |
76 | | - | t_urlparse = t_urlparse._replace(query='') |
77 | | - | url = urllib.parse.urlunparse(t_urlparse) |
| 76 | + | # t_urlparse = t_urlparse._replace(query='') |
| 77 | + | # url = urllib.parse.urlunparse(t_urlparse) |
78 | 78 | | # doTest( url, 'POST', new_query ) |
79 | 79 | | |
80 | 80 | | |
| skipped 34 lines |
115 | 115 | | |
116 | 116 | | def testURL( url ): |
117 | 117 | | time.sleep( 0.01 ) |
| 118 | + | t_multiproc['n_current'] = t_multiproc['n_current'] + 1 |
118 | 119 | | |
119 | 120 | | if _verbose <= 1: |
120 | 121 | | sys.stdout.write( 'progress: %d/%d\r' % (t_multiproc['n_current'],t_multiproc['n_total']) ) |
121 | | - | t_multiproc['n_current'] = t_multiproc['n_current'] + 1 |
| 122 | + | # t_multiproc['n_current'] = t_multiproc['n_current'] + 1 |
122 | 123 | | |
123 | 124 | | pool = Pool( 10 ) |
124 | 125 | | pool.map( partial(testPayload,url), t_payloads ) |
| skipped 4 lines |
129 | 130 | | def doTest( url, method='GET', post_params='' ): |
130 | 131 | | |
131 | 132 | | realDoTest( [url,method,post_params] ) |
| 133 | + | |
132 | 134 | | # t_realdotest.append( [url,method,post_params] ) |
133 | 135 | | return |
134 | 136 | | |
| skipped 7 lines |
142 | 144 | | |
143 | 145 | | if _verbose <= 1: |
144 | 146 | | sys.stdout.write( 'progress: %d/%d\r' % (t_multiproc['n_current'],t_multiproc['n_total']) ) |
145 | | - | t_multiproc['n_current'] = t_multiproc['n_current'] + 1 |
| 147 | + | # t_multiproc['n_current'] = t_multiproc['n_current'] + 1 |
146 | 148 | | |
147 | 149 | | t_urlparse = urllib.parse.urlparse( url ) |
148 | 150 | | t_params = [ method, url, post_params, _cookies, t_urlparse.netloc ] |
| skipped 95 lines |
244 | 246 | | fp.close() |
245 | 247 | | else: |
246 | 248 | | t_urls.append( args.urls ) |
| 249 | + | else: |
| 250 | + | while True: |
| 251 | + | try: |
| 252 | + | url = input() |
| 253 | + | except EOFError: |
| 254 | + | break |
| 255 | + | else: |
| 256 | + | t_urls.append( url ) |
| 257 | + | |
247 | 258 | | n_urls = len(t_urls) |
248 | 259 | | if _verbose < 4: |
249 | 260 | | sys.stdout.write( '%s[+] %d urls found: %s%s\n' % (fg('green'),n_urls,args.urls,attr(0)) ) |
| skipped 170 lines |