Skip to content

Commit

Permalink
Merge pull request #46 from hougomartim/master
Browse files Browse the repository at this point in the history
Modify Target URL Creator ./
  • Loading branch information
s0md3v authored Jan 20, 2019
2 parents 9f3b08b + 337db79 commit c28a88a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions striker.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,15 @@
/ \| | | | \/ | <\ ___/| | \/
/_______ /|__| |__| |__|__|_ \\\\___ >__|
\/ \/ \/\033[1;m'''
target_input = raw_input('\033[1;34m[?]\033[1;m Enter the target: ')
target_input = raw_input('\033[1;34m[?]\033[1;m Enter the target: example( http://domain.com ) \n')
parsed_uri = urlparse(target_input)

if parsed_uri.scheme == '':
domain = parsed_uri.path
else:
domain = parsed_uri.netloc
target = '{}//{}'.format(parsed_uri.scheme, parsed_uri.netloc) #detect HTTP or HTTPs By UrlParse

target = '{}//{}'.format(parsed_uri.scheme, domain) #detect HTTP or HTTPs By UrlParse

def sqli(url):
print '%s Using SQLMap api to check for SQL injection vulnerabilities. Don\'t worry we are using an online service and it doesn\'t depend on your internet connection. This scan will take 2-3 minutes.' % run
Expand Down Expand Up @@ -86,7 +88,7 @@ def cms(domain):
detect = search(r'class="nowrap" title="[^<]*">', result)
WordPress = False
try:
r = br.open(target + '/robots.txt').read()
r = br.open('//' + domain + '/robots.txt').read()
if "wp-admin" in str(r):
WordPress = True
except:
Expand Down

0 comments on commit c28a88a

Please sign in to comment.