What is the syntax error in this code? Python 3.4
Question:
print ('t -m, --methodttHTTP Method to use 'get' or 'post' or 'random'tt(default: get)')
Syntax error : Invalid syntax
print (GOLDENEYE_BANNER)
print
print (' USAGE: ./goldeneye.py <url> [OPTIONS]')
print
print (' OPTIONS:')
print ('t FlagtttDescriptionttttttDefault')
print ('t -u, --useragentstFile with user-agents to usetttt(default: randomly generated)')
print ('t -w, --workersttNumber of concurrent workerstttt(default: {0})'.format(DEFAULT_WORKERS))
print ('t -s, --socketsttNumber of concurrent socketstttt(default: {0})'.format(DEFAULT_SOCKETS)
print ('t -m, --methodttHTTP Method to use 'get' or 'post' or 'random'tt(default: get)')
print ('t -d, --debugttEnable Debug Mode [more verbose output]ttt(default: False)')
print ('t -h, --helpttShows this help')
Answers:
The error is on line 553. You are missing a closing parenthesis.
Line 553 should be:
print('t -s, --socketsttNumber of concurrent socketstttt(default: {0})'.format(DEFAULT_SOCKETS))
print ('t -m, --methodttHTTP Method to use 'get' or 'post' or 'random'tt(default: get)')
Syntax error : Invalid syntax
print (GOLDENEYE_BANNER)
print
print (' USAGE: ./goldeneye.py <url> [OPTIONS]')
print
print (' OPTIONS:')
print ('t FlagtttDescriptionttttttDefault')
print ('t -u, --useragentstFile with user-agents to usetttt(default: randomly generated)')
print ('t -w, --workersttNumber of concurrent workerstttt(default: {0})'.format(DEFAULT_WORKERS))
print ('t -s, --socketsttNumber of concurrent socketstttt(default: {0})'.format(DEFAULT_SOCKETS)
print ('t -m, --methodttHTTP Method to use 'get' or 'post' or 'random'tt(default: get)')
print ('t -d, --debugttEnable Debug Mode [more verbose output]ttt(default: False)')
print ('t -h, --helpttShows this help')
The error is on line 553. You are missing a closing parenthesis.
Line 553 should be:
print('t -s, --socketsttNumber of concurrent socketstttt(default: {0})'.format(DEFAULT_SOCKETS))