Skip to content

Commit 02f7c56

Browse files
cclauss0xInfection
cclauss
authored andcommitted
Use exec() and print() functions in both Python 2 and 3 (0xInfection#37)
* from __future__ import print_function * except IOError, ImportError: --> except (IOError, ImportError): * Added the missing strutsshock module
1 parent be83339 commit 02f7c56

File tree

306 files changed

+4984
-4719
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

306 files changed

+4984
-4719
lines changed

core/Auxillaries/auxil.py

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#This module requires TIDoS Framework
99
#https://github.com/theInfectedDrake/TIDoS-Framework
1010

11+
from __future__ import print_function
1112
import sys
1213
import os
1314
import time
@@ -25,50 +26,50 @@
2526
def auxil(web):
2627

2728
auxilban()
28-
print ''
29+
print('')
2930
time.sleep(0.3)
3031
v = raw_input(GR+' [#] \033[1;4mTID\033[0m'+GR+' :> ' + color.END)
31-
print ''
32+
print('')
3233
if v == '1':
33-
print ' [!] Type Selected : Generate Hashes'
34+
print(' [!] Type Selected : Generate Hashes')
3435
hashes()
35-
print '\n\n'
36+
print('\n\n')
3637
raw_input(O+' [+] Press '+GR+'Enter'+O+' to Continue...')
3738
auxilban()
3839
auxil(web)
3940

4041
elif v == '2':
41-
print ' [!] Type Selected : Encode Strings'
42+
print(' [!] Type Selected : Encode Strings')
4243
encodeall()
43-
print '\n\n'
44+
print('\n\n')
4445
raw_input(O+' [+] Press '+GR+'Enter'+O+' to Continue...')
4546
auxilban()
4647
auxil(web)
4748

4849
elif v == '3':
49-
print ' [!] Type Selected : Extract Metadata'
50+
print(' [!] Type Selected : Extract Metadata')
5051
imgext()
51-
print '\n\n'
52+
print('\n\n')
5253
raw_input(O+' [+] Press '+GR+'Enter'+O+' to Continue...')
5354
auxilban()
5455
auxil(web)
5556

5657
elif v == '4':
57-
print ' [!] Type Selected : Honeypot Detector'
58+
print(' [!] Type Selected : Honeypot Detector')
5859
honeypot()
59-
print '\n\n'
60+
print('\n\n')
6061
raw_input(O+' [+] Press '+GR+'Enter'+O+' to Continue...')
6162
auxilban()
6263
auxil(web)
6364

6465
elif v == '99':
65-
print GR+' [*] Going back!'
66+
print(GR+' [*] Going back!')
6667
time.sleep(0.7)
6768
os.system('clear')
6869

6970
else:
7071
dope = ['You high dude?','Shit! Enter a valid option','Whoops! Thats not an option','Sorry! You just typed shit']
71-
print dope[randint(0,3)]
72+
print(dope[randint(0,3)])
7273
time.sleep(0.7)
7374
os.system('clear')
7475
auxilban()

core/Auxillaries/auxilban.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,17 @@
88
#This module requires TIDoS Framework
99
#https://github.com/theInfectedDrake/TIDoS-Framework
1010

11+
from __future__ import print_function
1112
from colors import *
1213
import time
1314
import os
1415

1516
def auxilban():
1617

1718
os.system('clear')
18-
print " [!] Module Selected : Auxillary Modules\n"
19+
print(" [!] Module Selected : Auxillary Modules\n")
1920
time.sleep(0.4)
20-
print C+'''
21+
print(C+'''
2122
\033[1;37m
2223
' . + . . ' + ' . .
2324
. ' + . * .
@@ -36,16 +37,16 @@ def auxilban():
3637
. ' ' ' '
3738
' \033[1;33m-=[\033[1;31m A U X I L L A R I E S \033[1;33m]=-\033[1;34m . ' .
3839
. ' . . ' .
39-
'''
40+
''')
4041
time.sleep(0.3)
41-
print ''
42-
print B+' [1]'+C+' Generate Hashes from Strings'+W+'(4 Types) '
42+
print('')
43+
print(B+' [1]'+C+' Generate Hashes from Strings'+W+'(4 Types) ')
4344
time.sleep(0.1)
44-
print B+' [2]'+C+' Encode Payload or Strings'+W+' (7 Types)'
45+
print(B+' [2]'+C+' Encode Payload or Strings'+W+' (7 Types)')
4546
time.sleep(0.1)
46-
print B+' [3]'+C+' Extract Metadata from Images'+W+' (EXIF Data)\n'
47+
print(B+' [3]'+C+' Extract Metadata from Images'+W+' (EXIF Data)\n')
4748
time.sleep(0.1)
48-
print B+' [4]'+C+' HoneyPot Probability'+W+' (ShodanLabs HoneyScore)\n'
49+
print(B+' [4]'+C+' HoneyPot Probability'+W+' (ShodanLabs HoneyScore)\n')
4950
time.sleep(0.1)
50-
print B+' [99]'+C+' Back\n'
51+
print(B+' [99]'+C+' Back\n')
5152

core/Core/agree.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#This module requires TIDoS Framework
99
#https://github.com/theInfectedDrake/TIDoS-Framework
1010

11+
from __future__ import print_function
1112
import os
1213
import sys
1314
import platform
@@ -27,13 +28,13 @@ def agree():
2728

2829
a1 = raw_input(O+' [0x00] '+G+'Do you agree to these terms and conditions? :> '+C)
2930
if a1 == "yes" or a1 == 'y' or a1 == 'Y' or a1 == 'Yes' or a1 == 'yo' or a1 == 'YES' or a1 == 'yep' or a1 == 'Yep' or a1 == 'YEP':
30-
print G+' [0x01] '+O+'Thats awesome! Move on...'
31+
print(G+' [0x01] '+O+'Thats awesome! Move on...')
3132
time.sleep(3)
3233
FILE = open("agree","w")
3334
FILE.write('yes')
3435
FILE.close()
3536

3637
else:
37-
print O+' [0x0F] '+R+'You have to agree!'
38+
print(O+' [0x0F] '+R+'You have to agree!')
3839
time.sleep(1)
3940
sys.exit(0)

core/Core/agreement.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
#This module requires TIDoS Framework
99
#https://github.com/theInfectedDrake/TIDoS-Framework
1010

11+
from __future__ import print_function
1112
def agreement():
1213

13-
print """
14+
print("""
1415
\033[1;95m
1516
==========================================
1617
T I D O S F R A M E W O R K v1.6
@@ -26,4 +27,4 @@ def agreement():
2627
2728
P.S. - If you find any bugs with this tool, report it.
2829
29-
"""
30+
""")

core/Core/banner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#This module requires TIDoS Framework
99
#https://github.com/theInfectedDrake/TIDoS-Framework
1010

11+
from __future__ import print_function
1112
import os
1213
from random import randint
1314
from colors import *
@@ -139,6 +140,6 @@ def banner():
139140
"""
140141
headers = [header, oblique, modular, codesploit, fb, swan]
141142
os.system('clear')
142-
print headers[randint(0,5)]
143+
print(headers[randint(0,5)])
143144

144145

core/Core/bannerbelow.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,26 @@
88
#This module requires TIDoS Framework
99
#https://github.com/theInfectedDrake/TIDoS-Framework
1010

11+
from __future__ import print_function
1112
import time
1213
from time import sleep
1314
from colors import *
1415

1516
def bannerbelow():
1617

17-
print B+'[---] '+C+'The TIDoS Framework \033[36m| \033[1;37mVersion v1.6 \033[1;34m[---]'
18+
print(B+'[---] '+C+'The TIDoS Framework \033[36m| \033[1;37mVersion v1.6 \033[1;34m[---]')
1819
sleep(0.2)
19-
print B+'[---] [---]'
20-
print B+'[---] \033[1;31m~ Author \033[1;31m: \033[1;33m@_tID ~ \033[1;34m[---]'
20+
print(B+'[---] [---]')
21+
print(B+'[---] \033[1;31m~ Author \033[1;31m: \033[1;33m@_tID ~ \033[1;34m[---]')
2122
sleep(0.2)
22-
print B+'[---] '+O+'~ github.com / \033[1;32mtheInfectedDrake ~ \033[1;34m[---]'
23+
print(B+'[---] '+O+'~ github.com / \033[1;32mtheInfectedDrake ~ \033[1;34m[---]')
2324
sleep(0.2)
24-
print B+'[---] [---]'
25+
print(B+'[---] [---]')
2526
sleep(0.2)
26-
print B+'[---] \033[1;35m5 Phases | \033[1;31m14 Sub-Phases | \033[1;37m108 Modules \033[1;34m[---]'
27+
print(B+'[---] \033[1;35m5 Phases | \033[1;31m14 Sub-Phases | \033[1;37m108 Modules \033[1;34m[---]')
2728
sleep(0.2)
28-
print ''
29-
print B+' Welcome to '+C+'The TIDoS Framework (TTF)'
29+
print('')
30+
print(B+' Welcome to '+C+'The TIDoS Framework (TTF)')
3031
sleep(0.2)
31-
print GR+' The TIDoS Framework is a project by '+R+'Team CodeSploit\n'
32+
print(GR+' The TIDoS Framework is a project by '+R+'Team CodeSploit\n')
3233

core/Core/dispmenu.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
#This module requires TIDoS Framework
99
#https://github.com/theInfectedDrake/TIDoS-Framework
1010

11+
from __future__ import print_function
1112
import time
1213
from colors import *
1314

1415
def dispmenu():
1516

16-
print '''
17+
print('''
1718
1819
\033[1;37m . + \033[1;34m ______ \033[1;37m . .
1920
+. \033[1;34m / ==== \ \033[1;37m . + . .
@@ -31,19 +32,19 @@ def dispmenu():
3132
\033[1;33m-=[ \033[1;31mL E T S S T A R T\033[1;33m ]=-\033[1;37m
3233
+ . ' . + +
3334
* . + * . * .
34-
'''
35-
print O+'\n Choose from the options below :\n'
35+
''')
36+
print(O+'\n Choose from the options below :\n')
3637
time.sleep(0.2)
37-
print B+' [1] \033[1;36mReconnaissance & OSINT'+W+' (50 modules)'
38+
print(B+' [1] \033[1;36mReconnaissance & OSINT'+W+' (50 modules)')
3839
time.sleep(0.1)
39-
print B+' [2] \033[1;36mScanning & Enumeration'+W+' (16 modules)'
40+
print(B+' [2] \033[1;36mScanning & Enumeration'+W+' (16 modules)')
4041
time.sleep(0.1)
41-
print B+' [3] \033[1;36mVulnerability Analysis'+W+' (37 modules)'
42+
print(B+' [3] \033[1;36mVulnerability Analysis'+W+' (37 modules)')
4243
time.sleep(0.1)
43-
print B+' [4] \033[1;36mExploitation (beta)'+W+' (1 modules)'
44+
print(B+' [4] \033[1;36mExploitation (beta)'+W+' (1 modules)')
4445
time.sleep(0.1)
45-
print B+' [5] \033[1;36mAuxillary Modules'+W+' (4 modules)\n'
46+
print(B+' [5] \033[1;36mAuxillary Modules'+W+' (4 modules)\n')
4647
time.sleep(0.1)
47-
print B+' [99] \033[1;36mSay "alvida"! (Exit TIDoS)\n'
48+
print(B+' [99] \033[1;36mSay "alvida"! (Exit TIDoS)\n')
4849
time.sleep(0.1)
4950

core/Core/inputin.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#This module requires TIDoS Framework
99
#https://github.com/theInfectedDrake/TIDoS-Framework
1010

11+
from __future__ import print_function
1112
import sys
1213
import socket
1314
import time
@@ -32,26 +33,26 @@ def inputin():
3233
if str(web).endswith('/'):
3334
web = po[:-1]
3435
po = po[:-1]
35-
print GR+' [*] Checking server status...'
36+
print(GR+' [*] Checking server status...')
3637
time.sleep(0.6)
3738

3839
try:
3940
ip = socket.gethostbyname(po)
40-
print G+' [+] Site seems to be up...'
41+
print(G+' [+] Site seems to be up...')
4142
time.sleep(0.5)
42-
print G+' [+] IP Detected : '+O+ip
43+
print(G+' [+] IP Detected : '+O+ip)
4344
time.sleep(0.5)
44-
print ''
45+
print('')
4546
os.system('cd tmp/logs/ && rm -rf '+po+'-logs && mkdir '+po+'-logs/')
4647
return web
4748

4849
except socket.gaierror:
49-
print R+' [-] Site seems to be down...'
50+
print(R+' [-] Site seems to be down...')
5051
sys.exit(1)
5152

5253
except KeyboardInterrupt:
53-
print R+' [-] Exiting...'
54+
print(R+' [-] Exiting...')
5455
time.sleep(0.7)
55-
print C+' [#] Alvida, my friend!'
56+
print(C+' [#] Alvida, my friend!')
5657
sys.exit(1)
5758

core/Core/loadstyle.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#This module requires TIDoS Framework
88
#https://github.com/theInfectedDrake/TIDoS-Framework
99

10+
from __future__ import print_function
1011
import os
1112
import time
1213
from colors import *
@@ -21,13 +22,13 @@ def loadstyle():
2122
while action < 1:
2223
for i,char in enumerate(loading):
2324
if i == 0:
24-
print "%s%s%s%s" %(red_bold,char.upper(),reset,loading[1:])
25+
print("%s%s%s%s" %(red_bold,char.upper(),reset,loading[1:]))
2526
elif i == 1:
2627
old_loading = loading[0].lower()
27-
print "%s%s%s%s%s" %(old_loading,red_bold,char.upper(),reset,loading[2:])
28+
print("%s%s%s%s%s" %(old_loading,red_bold,char.upper(),reset,loading[2:]))
2829
elif i == i:
2930
old_loading = loading[-0:i].lower()
30-
print "%s%s%s%s%s" %(old_loading,red_bold,char.upper(),reset,loading[i+1:])
31+
print("%s%s%s%s%s" %(old_loading,red_bold,char.upper(),reset,loading[i+1:]))
3132
time.sleep(0.1)
3233
os.system('clear')
3334
action += 1

core/Enumeration/Crawling/crawlers.py

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#This script is a part of TIDoS Framework
99
#https://github.com/theInfectedDrake/TIDoS-Framework
1010

11+
from __future__ import print_function
1112
import sys
1213
import platform
1314
import os
@@ -27,57 +28,57 @@
2728
def crawlers(web):
2829

2930
time.sleep(0.3)
30-
print ' [!] Module Selected : Crawlers'
31+
print(' [!] Module Selected : Crawlers')
3132
time.sleep(0.4)
3233
crawlersban() # banner
3334
v = raw_input(O+' [#] TID :> ')
3435

3536
if v.strip() == '1': # level 1 crawler
36-
print B+' [!] Module Selected :'+C+' Crawler (Depth 1)'
37+
print(B+' [!] Module Selected :'+C+' Crawler (Depth 1)')
3738
crawler1(web)
3839
time.sleep(1)
3940
crawlers(web)
4041

4142
elif v.strip() == '2': # level 2 crawler
42-
print B+' [!] Module Selected :'+C+' Crawler (Depth 2)'
43+
print(B+' [!] Module Selected :'+C+' Crawler (Depth 2)')
4344
crawler2(web)
4445
time.sleep(1)
4546
crawlers(web)
4647

4748
elif v.strip() == '3': # level 3 crawler
48-
print B+' [!] Module Selected :'+C+' Crawler (Depth 3)'
49+
print(B+' [!] Module Selected :'+C+' Crawler (Depth 3)')
4950
crawler3(web)
5051
time.sleep(1)
5152
crawlers(web)
5253

5354
elif v.strip() == '99': # to go back
54-
print GR+' [*] Going back...'
55+
print(GR+' [*] Going back...')
5556
time.sleep(0.5)
5657
os.system('clear')
5758

5859
elif v.strip() == 'A':
59-
print W+'\n [!] Module Automater Initialized...'
60+
print(W+'\n [!] Module Automater Initialized...')
6061
sleep(0.5)
61-
print B+' [*] Initializing Scan Type :'+C+' Crawler (Depth 1)'
62+
print(B+' [*] Initializing Scan Type :'+C+' Crawler (Depth 1)')
6263
crawler1(web) # unleash level 1
6364

64-
print B+'\n [!] Scan Type Completed :'+C+' Crawler 1\n'
65+
print(B+'\n [!] Scan Type Completed :'+C+' Crawler 1\n')
6566
sleep(0.5)
66-
print B+' [!] Initializing Scan Type :'+C+' Crawler (Depth 2)'
67+
print(B+' [!] Initializing Scan Type :'+C+' Crawler (Depth 2)')
6768
crawler2(web) # unleash level 2
6869

69-
print B+'\n [!] Scan Type Completed :'+C+' Crawler 2\n'
70+
print(B+'\n [!] Scan Type Completed :'+C+' Crawler 2\n')
7071
sleep(0.5)
71-
print B+' [!] Initializing Scan Type :'+C+' Crawler (Depth 3)'
72+
print(B+' [!] Initializing Scan Type :'+C+' Crawler (Depth 3)')
7273
crawler3(web) # unleash level 3
7374

74-
print B+'\n [!] Scan Type Completed :'+C+' Crawler 3\n\n'+G+' [+] All modules successfully completed!'
75+
print(B+'\n [!] Scan Type Completed :'+C+' Crawler 3\n\n'+G+' [+] All modules successfully completed!')
7576
raw_input(GR+' [+] Press '+O+'Enter '+GR+'to continue...') # for the user to take a breadth :/
7677
crawlers(web) # get back to menu
7778

7879
else:
7980
dope = ['You high dude?','Shit! Enter a valid option','Whoops! Thats not an option','Sorry! You just typed shit']
80-
print ' [-] '+dope[randint(0,3)] # troll stuffs :p
81+
print(' [-] '+dope[randint(0,3)]) # troll stuffs :p
8182
sleep(1)
8283
crawlers(web)
8384

0 commit comments

Comments
 (0)