Skip to content

Commit fd98169

Browse files
committed
Update hackUtils.py
1 parent 930bcb4 commit fd98169

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

hackUtils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,15 +175,15 @@ def fetchUrls(se,wd,pg):
175175
print "[*] Output File: "+wooyun+"\n"
176176
links = open('wooyun.txt','r')
177177
for link in links:
178-
link = link.split("//")[1]
179-
if "www." in link:
180-
link=link.split("www.")[1]
181-
wd="inurl:"+link.strip()+"/"+wd.strip()
178+
site = link.split("//")[1]
179+
if "www." in site:
180+
site=site.split("www.")[1]
181+
kwd="inurl:"+site.strip()+"/"+wd.strip()
182182
print "\n[INFO] Scanned Site: "+wd.strip()
183183
for x in xrange(1,pg):
184184
rn=10
185185
pn=(x-1)*rn
186-
url='http://www.baidu.com/baidu?cl=3&tn=baidutop10&wd='+wd+'&rn='+str(rn)+'&pn='+str(pn)
186+
url='http://www.baidu.com/baidu?cl=3&tn=baidutop10&wd='+kwd+'&rn='+str(rn)+'&pn='+str(pn)
187187
html=getUrlRespHtml(url)
188188
urls=getLinksFromBaidu(html)
189189
links.close()

0 commit comments

Comments
 (0)