old_contents: #!/usr/bin/env python
  import requests
  import sys
  
  url = 'https://s3.amazonaws.com/'
  name = sys.argv[1].strip()
  
  common = ['test','dev','bucket','s3','aws','prd','prod','pub','public','production','development','testing','archive','backup','web','devops','sec','secure','hidden','secret','staging']
  connectors = ['-','_','']
  
  url = url + name
  
  def check_code(r, name):
    if r.status_code == 404: print "None",
    elif r.status_code == 403: print "Secure",
    elif r.status_code == 301: print "Redirect",
    elif r.status_code == 200: print "BINGO!",
    elif r.status_code == 400: print "BadName",
    else: print r.status_code,
    print name
    return
  
  '''
  def get_code(url, name):
    r = requests.get(url)
    check_code(r, name)
    if r.status_code == 403 or r.status_code == 200:
      for ext in common:
        r = requests.get(url + ext)
        check_code(r, name + ext)
  '''
  
  def get_code(url, name):
    r = requests.get(url)
    check_code(r, name)
    for ext in common:
      for i in connectors:
        r = requests.get(url + i + ext)
        check_code(r, name + i + ext)
  
  get_code(url, name)
  if '.' in name:
    n2 = 'www.' + name
    url = 'https://s3.amazonaws.com/' + n2
    get_code(url, n2)
    n2 = 's3.' + name
    url = 'https://s3.amazonaws.com/' + n2
    get_code(url, n2)
    n3 = name.split('.')[0]
    url = 'https://s3.amazonaws.com/' + n3
    get_code(url, n3)
    
  
  
  
  
new_contents: #!/usr/bin/env python
  import requests
  import sys
  
  url = 'https://s3.amazonaws.com/'
  name = sys.argv[1].strip()
  
  common = ['test','dev','bucket','s3','aws','prd','prod','pub','public','production','development','testing','archive','backup','web','devops','sec','secure','hidden','secret','staging','download']
  connectors = ['-','_','']
  
  url = url + name
  
  def check_code(r, name):
    if r.status_code == 404: print "None",
    elif r.status_code == 403: print "Secure",
    elif r.status_code == 301: print "Redirect",
    elif r.status_code == 200: print "BINGO!",
    elif r.status_code == 400: print "BadName",
    else: print r.status_code,
    print name
    return
  
  '''
  def get_code(url, name):
    r = requests.get(url)
    check_code(r, name)
    if r.status_code == 403 or r.status_code == 200:
      for ext in common:
        r = requests.get(url + ext)
        check_code(r, name + ext)
  '''
  
  def get_code(url, name):
    r = requests.get(url)
    check_code(r, name)
    for ext in common:
      for i in connectors:
        r = requests.get(url + i + ext)
        check_code(r, name + i + ext)
  
  get_code(url, name)
  if '.' in name:
    n2 = 'www.' + name
    url = 'https://s3.amazonaws.com/' + n2
    get_code(url, n2)
    n2 = 's3.' + name
    url = 'https://s3.amazonaws.com/' + n2
    get_code(url, n2)
    n3 = name.split('.')[0]
    url = 'https://s3.amazonaws.com/' + n3
    get_code(url, n3)
    
  
  
  
  
subject: add 'download' keyword, per https://www.upguard.com/breaches/cloud-leak-alteryx