Skip to content

Commit

Permalink
print() as a function
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Jul 16, 2017
1 parent b068364 commit ad93522
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions cloudflare_enum.py
Expand Up @@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
# Created using Metafidv2 by Matthew Bryant (mandatory)
# Unauthorized use is stricly prohibited, please contact mandatory@gmail.com with questions/comments.
from __future__ import print_function
import requests
import getpass
import json
Expand Down Expand Up @@ -76,7 +77,7 @@ def get_domain_dns( self, domain ):
data = json.loads( r.text )
success = data['success']
if not success:
print r.text
print( r.text )
return False

request_id = data['result']['id']
Expand Down Expand Up @@ -135,7 +136,7 @@ def get_spreadsheet( self, domain ):

def print_banner( self ):
if self.verbose:
print """
print("""
`..--------..`
.-:///::------::///:.`
Expand All @@ -161,23 +162,22 @@ def print_banner( self ):
Cloudflare DNS Enumeration Tool v1.3
Created by mandatory
Modified by yamakira
"""

""" )

def pprint( self, input_dict ):
print json.dumps(input_dict, sort_keys=True, indent=4, separators=(',', ': '))
print( json.dumps(input_dict, sort_keys=True, indent=4, separators=(',', ': ')) )

def statusmsg( self, msg ):
if self.verbose:
print "[ STATUS ] " + msg
print( "[ STATUS ] " + msg )

def errormsg( self, msg ):
if self.verbose:
print "[ ERROR ] " + msg
print( "[ ERROR ] " + msg )

def successmsg( self, msg ):
if self.verbose:
print "[ SUCCESS ] " + msg
print( "[ SUCCESS ] " + msg )

def find_between_r( self, s, first, last ):
try:
Expand Down Expand Up @@ -214,7 +214,7 @@ def get_creds(self):

if __name__ == "__main__":
if len( sys.argv ) < 2:
print "Usage: " + sys.argv[0] + " username@email.com domain.com"
print( "Usage: " + sys.argv[0] + " username@email.com domain.com" )
else:
cloud = cloudflare_enum()
username,password = cloud.get_creds()
Expand Down

0 comments on commit ad93522

Please sign in to comment.