From 252cdb7151484a84321d3181ced0be7489e73609 Mon Sep 17 00:00:00 2001 From: Swastik2561 Date: Fri, 11 Oct 2019 13:27:37 +0530 Subject: [PATCH] Updated the Error Handeling --- .../0x01-PassiveReconnaissance/subnet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/0x01-OSINT+Footprinting/0x01-PassiveReconnaissance/subnet.py b/modules/0x01-OSINT+Footprinting/0x01-PassiveReconnaissance/subnet.py index 2729ab12..9a3e94c9 100644 --- a/modules/0x01-OSINT+Footprinting/0x01-PassiveReconnaissance/subnet.py +++ b/modules/0x01-OSINT+Footprinting/0x01-PassiveReconnaissance/subnet.py @@ -30,7 +30,7 @@ def subnet(web): text = requests.get('http://api.hackertarget.com/subnetcalc/?q=' + dom).text http = str(text) - if 'error' not in http: + if 'null' not in http: result = http.splitlines() for r in result: print(G+' '+r.split('=')[0]+'='+O+r.split('=')[1])