MCPcopy
hub / github.com/jaykali/hackerpro / getJoomla

Method getJoomla

hackerpro.py:1144–1167  ·  view source on GitHub ↗

get all joomla websites using bing search the attacker may bruteforce or scan them

(self)

Source from the content-addressed store, hash-verified

1142 print site
1143
1144 def getJoomla(self):
1145 """
1146 get all joomla websites using
1147 bing search the attacker may bruteforce
1148 or scan them
1149 """
1150 lista = []
1151 page = 1
1152 while page <= 101:
1153 bing = "http://www.bing.com/search?q=ip%3A" + self.serverip + \
1154 "+index.php?option=com&count=50&first=" + str(page)
1155 openbing = urllib2.urlopen(bing)
1156 readbing = openbing.read()
1157 findwebs = re.findall('<h2><a href="(.*?)"', readbing)
1158 for i in range(len(findwebs)):
1159 jmnoclean = findwebs[i]
1160 findjm = re.findall('(.*?)index.php', jmnoclean)
1161 lista.extend(findjm)
1162 page += 50
1163 lista = unique(lista)
1164 clearScr()
1165 print '[*] Found ', len(lista), ' Joomla Website\n'
1166 for site in lista:
1167 print site
1168############################
1169# find admin panels
1170

Callers 1

__init__Method · 0.95

Calls 2

uniqueFunction · 0.85
clearScrFunction · 0.85

Tested by

no test coverage detected