Skip to content

Commit

Permalink
Update GitDorker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
obheda12 authored Jul 13, 2020
1 parent 464f2cf commit cc922d7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions GitDorker.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/python3

# Credits: Modified GitHub Dorker using GitAPI and JHaddix Github Dorks List. API Integration code borrowed and modified from Gwendal Le Coguic's scripts.
# Credits: Modified GitHub Dorker using GitAPI and JHaddix Github Dorks List. API Integration code and structure borrowed and modified from Gwendal Le Coguic's scripts.
# Author: Omar Bheda
# Version: 1.1.2
print("""
Expand Down Expand Up @@ -47,6 +47,12 @@
TOKENS_FILE = os.path.dirname(os.path.realpath(__file__)) + '/.tokens'
GITHUB_API_URL = 'https://api.github.com'

#DECLARE LISTS
t_tokens = []
t_dorks = []
t_queries = []
t_orgs = []

#PARSER CONFIG
parser = argparse.ArgumentParser()
parser.add_argument("-d", "--dorks", help="dorks file (required)")
Expand All @@ -55,15 +61,9 @@
parser.add_argument("-q", "--query", help="query (required or -q)")
parser.add_argument("-o", "--org", help="organization (required or -o)")

parser.parse_args()
#ARGUMENTS CONFIG
args = parser.parse_args()

#DECLARE LISTS
t_tokens = []
t_dorks = []
t_queries = []
t_orgs = []

#ARGUMENT LOGIC
if args.token:
t_tokens = args.token.split(',')
Expand All @@ -79,10 +79,10 @@
parser.error('auth token is missing')

if args.query:
t_queries = args.query.split(',')
t_queries = args.query

if args.org:
t_orgs = args.org.split(',')
t_orgs = args.org

if args.threads:
threads = int(args.threads)
Expand Down

0 comments on commit cc922d7

Please sign in to comment.