Skip to content

Commit f4ee23e

Browse files
committed
New print message type
1 parent 3d9cd9b commit f4ee23e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Output.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ def __init__(self, args):
2020
self.noColor = args['no-color']
2121
self.titlePos = 0
2222
self.subTitlePos = 0
23+
24+
def bigTitle (self, m):
25+
'''
26+
print a title
27+
'''
28+
self.titlePos = 0
29+
self.subTitlePos = 0
30+
formatMesg = '\n[+] {1}: {2}'.format(self.titlePos,'({0}:{1})'.format(self.args['host'],self.args['port']),m)
31+
if self.noColor == True or TERMCOLOR_AVAILABLE == False: print (formatMesg)
32+
else : print (colored(formatMesg, 'white',attrs=['bold']))
2333

2434
def title (self, m):
2535
'''

0 commit comments

Comments
 (0)