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

Function scanusers

hackerpro.py:187–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

185
186
187def scanusers():
188 site = raw_input('Enter a website : ')
189 try:
190 users = site
191 if 'http://www.' in users:
192 users = users.replace('http://www.', '')
193 if 'http://' in users:
194 users = users.replace('http://', '')
195 if '.' in users:
196 users = users.replace('.', '')
197 if '-' in users:
198 users = users.replace('-', '')
199 if '/' in users:
200 users = users.replace('/', '')
201 while len(users) > 2:
202 print users
203 resp = urllib2.urlopen(
204 site + '/cgi-sys/guestbook.cgi?user=%s' % users).read()
205
206 if 'invalid username' not in resp.lower():
207 print "\tFound -> %s" % users
208 pass
209
210 users = users[:-1]
211 except:
212 pass
213
214
215def brutex():

Callers 1

infoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected