Skip to main content

test a single URL, or a list of URLs, against a Burp Suite-style JSON configuration file to determine in/out-of-scope status

Project description

scoper

test a single URL, or a list of URLs, against a Burp Suite-style JSON configuration file to determine in/out-of-scope status

importing and loading the external Burp-style configuration file

  • imports and loading the configuration file in your script
import json, sys
from scoper.scoper import ScoperList
from scoper.scoper import ScoperSingle
with open(sys.argv[1], "r") as conf:
	c = json.load(conf)
conf.close()
  • ScoperList: bulk-process a provided Python list structure "inputUrls" consisting of URLs, which only retrieves "inside-scope"
s = ScoperList(c, inputUrls) # note "c" is the config loaded above
s.check()
print(s.output) # list object
# generator, plain strings
for x in s.gen():
	print(x)
# generator, colorized strings for on-screen viewing
for x in s.colors():
	print(x)
# generator, JSON strings for on-screen viewing
for x in s.json():
	print(x)
  • ScoperSingle: check a single URL string for "inside-scope" or "ouside-scope" status
ss = ScoperSingle(c, "http://test.google.com/admin/stuff") # note "c" is the config loaded above
ss.check()
print(ss.output) # single plaintext string 
print(ss.colors()) # single colorized string
print(ss.json()) # single JSON string
  • ScoperSingle: loop over a Python list structure "inputUrls" consisting of URLs and process them one at a time for either "inside-scope" or "ouside-scope" status
for i in inputUrls:
	sss = ScoperSingle(c, i) # note "c" is the config loaded above
	sss.check()
	print(sss.output) # single plaintext string
	print(sss.colors()) # single colorized string
	print(ss.json()) # single JSON string

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scoper-1.0.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

scoper-1.0.0-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page