Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SecKit_geo_lookup.py "GeoIP2-Anonymous-IP.mmdb" if code to mat… #192

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions package/bin/SecKit_geo_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,10 @@ def main():
anonreader = geoip2.database.Reader(anon_file)
anon_response = anonreader.anonymous_ip(result[ipfield])
result["is_anonymous"] = anon_response.is_anonymous
result["is_anonymous_proxy"] = anon_response.is_anonymous_proxy
result["is_anonymous_vpn"] = anon_response.is_anonymous_vpn
result["is_hosting_provider"] = anon_response.is_hosting_provider
result["is_legitimate_proxy"] = anon_response.is_legitimate_proxy
result["is_public_proxy"] = anon_response.is_public_proxy
result[
"is_satellite_provider"
] = anon_response.is_satellite_provider
result["is_residential_proxy"] = anon_response.is_residential_proxy
result["is_tor_exit_node"] = anon_response.is_tor_exit_node
except geoip2.errors.AddressNotFoundError:
pass
Expand Down
3 changes: 2 additions & 1 deletion package/default/macros.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ is_public_proxy as $prefix$_is_public_proxy, \
is_tor_exit_node as $prefix$_is_tor_exit_node, \
is_anonymous_vpn as $prefix$_is_anonymous_vpn, \
is_hosting_provider as $prefix$_is_hosting_provider, \
is_anonymous as $prefix$_is_anonymous
is_anonymous as $prefix$_is_anonymous, \
is_residential_proxy as $prefix$_is_residential_proxy

iseval = 0

Expand Down
2 changes: 1 addition & 1 deletion package/default/transforms.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
[SecKitIPLocation]
python.version = python3
external_cmd = SecKit_geo_lookup.py ip
fields_list = ip,country,city,lat,long,connection_type,network,isp,isp_ip,isp_asn,isp_asn_organization,is_anonymous,is_anonymous_proxy,is_anonymous_vpn,is_hosting_provider,is_legitimate_proxy,is_public_proxy,is_satellite_provider,is_tor_exit_node
fields_list = ip,country,city,lat,long,connection_type,network,isp,isp_ip,isp_asn,isp_asn_organization,is_anonymous,is_anonymous_vpn,is_hosting_provider,is_public_proxy,is_residential_proxy,is_tor_exit_node