Created
February 11, 2020 19:26
-
-
Save dreygur/fdc8bdf6f6997271b6862a260be89fde to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import sys | |
| import random | |
| import string | |
| import requests | |
| # Change this value only | |
| form_id = '1FAIpQLSdFzC5XLmWejcrp8d8sgBK9GleYn6WZSeVi73Cqg3ERSZB9GA' | |
| url = 'https://docs.google.com/forms/d/e/' + form_id + '/formResponse' | |
| def name(): | |
| return random.choice(string.ascii_uppercase) + text(random.randint(3, 5)) + ' ' + random.choice(string.ascii_uppercase) + text(random.randint(3, 5)) | |
| def text(length=5): | |
| letters = string.ascii_lowercase | |
| return ''.join(random.choice(letters) for i in range(length)) | |
| def phone(): | |
| # return '+8801' + str(random.randint(555555555, 999999999)) | |
| phone = ["01712061506", "01775649499", "01711538987", "01712225417", "01711331697", "01711563322", "01711535331", "01717817803", "01712271429", "01716314195", "01711317562", "01716747905", "01712126372", "01716194053", "01714000055", "01711566974", "01711536464", "01711630045", "01711525701", "01713205324", "01911249123", "01711524809", "01819666999", "01712870372", "01711875291", "01711894823", "01712090509", "01711412227", "01715138844", "01711848508", "01711819247", "01711395527", "01716034721", "01711528346", "01711524823", "01711828336", "01711061051", "01711333708", "01711520002", "01912955534", "01711566789", "01711591138", "01714035230", "01841666111", "01733557733", "01711134371", "01712512345", "01715111510", "01711819526", "01715005313", "01732888437", "01746104414", "01717495578", "01713082046", "01713012095", "01824999541", "01711524560", "01714070990", "01711404473", "01711934732", "01712238645", "01715048138", "01715004290", "01711192637", "01710000017", "01715549590", "01711347920", "01933330330", "01711217548", "01715268075", "01713003000", "01730441817", "01712009804", "01715016030", "01711337244", "01711528375", "01717718541", "01714005566", "01711333285", "01729298888", "01711526238", "01733597156", "01741115656", "01711181577", "01775465712", "01199810646", "01711563366", "01711849363", "01726069207", "01711548233", "01716748818", "01746165254", "01714046158", "01711524616", "01711882464", "01711234048", "01711311269", "01711289492", "01726111484", "01714040188", "01711686608", "01711383702", "01711018365", "01716799507", "01714119465", "01715403945", "01711606419", "01720308291", "01711530711", "01917214683", "01711522305", "01711523007", "01711615695", "01711697353", "01671575446", "01819229679", "01713011330", "01817565764", "01712150347", "01791171717", "01819259929", "01711818975", "01711523403", "01811483600", "01617555555", "01711541569", "01817026551", "01711531777", "01711533868", "01552398513", "01711637923", "01711680815", "01711562266", "01819253153", "01733632555", "01711548080", "01711562019", "01711643870", "01711541123", "01726891992", "01712290290", "01933390000", "01977727779", "01713047155", "01715564484", "01711605310", "01772371222", "01711564644", "01713010537", "01713001764", "01711549799", "01841227777", "01713032231", "01711638198", "01715040983", "01715020833", "01711890202", "01715039307", "01726899499", "01711568139", "01711327689", "01820151315", "01715342277", "01736053200", "01712164424", "01711835803", "01711209847", "01711835515", "01711592213", "01713037107", "01199853727", "01711522965", "01819212324", "01711527220", "01711335002", "01711564571", "01711538696", "01713123455", "01711897034", "01745780998", "01674769621", "01819225903", "01711560907", "01713011893", "01715307080", "01711524024", "01713000566", "01817211113", "01713210140", "01731254320", "01717601717", "01715408052", "01711144233", "01711810410", "01713012949", "01711725242", "01726000480", "01917740545", "01711406526", "01813716015", "01711351777", "01819076756", "01816614015", "01713120220", "01819365277", "01711979038", "01720000048", "01713462788", "01556744788", "01711704141"] | |
| return random.choice(phone) | |
| def uni_name(): | |
| name = ['University of Dhaka', | |
| 'University of Rajshahi', | |
| 'Bangladesh Agricultural University', | |
| 'Bangladesh University of Engineering & Technology', | |
| 'University of Chittagong', | |
| 'Jahangirnagar University', | |
| 'Islamic University, Bangladesh', | |
| 'Shahjalal University of Science and Technology', | |
| 'Khulna University', | |
| 'Bangabandhu Sheikh Mujib Medical University', | |
| 'Bangabandhu Sheikh Mujibur Rahman Agricultural University', | |
| 'Hajee Mohammad Danesh Science & Technology University', | |
| 'Mawlana Bhashani Science and Technology University', | |
| 'Patuakhali Science and Technology University', | |
| 'Sher-e-Bangla Agricultural University', | |
| 'Noakhali Science and Technology University', | |
| 'Chittagong University of Engineering & Technology', | |
| 'Rajshahi University of Engineering & Technology', | |
| 'Khulna University of Engineering & Technology', | |
| 'Dhaka University of Engineering & Technology', | |
| 'Jagannath University', | |
| 'Jatiya Kabi Kazi Nazrul Islam University', | |
| 'Chittagong Veterinary and Animal Sciences University', | |
| 'Sylhet Agricultural University', | |
| 'Comilla University', | |
| 'Jessore University of Science & Technology', | |
| 'Pabna University of Science and Technology', | |
| 'Bangladesh University of Professionals', | |
| 'Begum Rokeya University', | |
| 'Bangladesh University of Textiles', | |
| 'University of Barisal', | |
| 'Bangabandhu Sheikh Mujibur Rahman Science and Technology University', | |
| 'Rangamati Science and Technology University', | |
| 'Bangabandhu Sheikh Mujibur Rahman Maritime University', | |
| 'Rajshahi Medical University', | |
| 'Chittagong Medical University', | |
| 'Rabindra University, Bangladesh', | |
| 'Bangabandhu Sheikh Mujibur Rahman Digital University', | |
| 'Sheikh Hasina University', | |
| 'Sheikh Fazilatunnesa Mujib University of Science & Technology', | |
| 'Sylhet Medical University', | |
| 'Khulna Agricultural University', | |
| 'Bangabandhu Sheikh Mujibur Rahman Aviation and Aerospace University', | |
| 'Islamic University of Technology', | |
| 'Asian University for Women', | |
| 'Bangladesh Open University', | |
| 'National University of Bangladesh', | |
| 'Islamic Arabic University', | |
| 'International University of Business Agriculture and Technology', | |
| 'North South University', | |
| 'University of Science & Technology Chittagong', | |
| 'Central Women\'s University', | |
| 'Independent University, Bangladesh', | |
| 'American International University-Bangladesh', | |
| 'Ahsanullah University of Science and Technology', | |
| 'Dhaka International University', | |
| 'The University of Comilla, Bangladesh', | |
| 'Asian University of Bangladesh', | |
| 'East West University', | |
| 'Gono Bishwabidyalay', | |
| 'People\'s University of Bangladesh', | |
| 'Queens University', | |
| 'University of Asia Pacific (Bangladesh)', | |
| 'BGMEA University of Fashion & Technology', | |
| 'Chittagong Independent University (CIU)', | |
| 'Bangladesh University', | |
| 'BGC Trust University Bangladesh', | |
| 'BRAC University', | |
| 'Manarat International University', | |
| 'Premier University, Chittagong', | |
| 'Pundra University of Science and Technology', | |
| 'Southern University, Bangladesh', | |
| 'Sylhet International University', | |
| 'City University, Bangladesh', | |
| 'Daffodil International University', | |
| 'Green University of Bangladesh', | |
| 'IBAIS University', | |
| 'I Love You Tisha' | |
| ] | |
| return random.choice(name) | |
| def trxid(): | |
| tr = 'TrxID ' + text(random.randint(1, 2)) + \ | |
| str(random.randint(1, 9999)) + \ | |
| text(random.randint(1, 2)) + \ | |
| str(random.randint(1, 9999)) + \ | |
| text(random.randint(1, 2)) + \ | |
| str(random.randint(1, 9999)) + \ | |
| text(random.randint(1, 2)) + str(random.randint(1, 9999)) | |
| return tr[:16].upper() | |
| def data(): | |
| form_data = { | |
| 'entry.1878931720': name(), | |
| 'entry.677420939.other_option_response': random.choice(['Male', 'Female', 'Aso Babu', 'Ei Dustu!']), | |
| 'entry.677420939': '__other_option__', | |
| # 'entry.677420939': random.choice(['Male', 'Female', 'Aso Babu', 'Ei Dustu!']), | |
| 'entry.1397406343': text() + '@' + random.choice(['gmail', 'yahoo', 'outlook', 'yandex', 'hotmail']) + '.com', | |
| 'entry.119036340': name(), | |
| # 'entry.773910481': 'sem ' + str(random.randint(1, 8)), | |
| 'entry.412086663': uni_name(), | |
| 'entry.207153954': phone(), | |
| # 'entry.56430144': random.choice(['M', 'L', 'XL', 'XXL']), | |
| # 'entry.2114743164': text() + '@' + random.choice(['gmail', 'yahoo', 'outlook', 'yandex', 'hotmail']) + '.com', | |
| 'entry.1185155048': random.choice([name(), 'Pias', 'Rahman Pias']), | |
| # 'entry.373845006': 'sem ' + str(random.randint(1, 8)), | |
| 'entry.1157825823': random.randint(0, 2), | |
| 'entry.458366690_sentinel': '', | |
| 'entry.458366690': "I agree to the terms and conditions by Robi 10 Minute School", | |
| # 'entry.2001288836': random.choice(['M', 'L', 'XL', 'XXL']), | |
| # 'entry.1288976591': phone(), | |
| # 'entry.1617483818': trxid(), | |
| # 'entry.1206724994': random.randint(1, 3), | |
| 'fvv': 1, | |
| 'draftResponse': ['', '', '-1670199250331000581'], | |
| 'pageHistory': 0 | |
| } | |
| return form_data | |
| def main(target = 1): | |
| # print(form_data) | |
| agent = "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0" | |
| user_agent = {'Referer': 'https://docs.google.com/forms/d/e/' + form_id + '/viewform', | |
| 'User-Agent': agent} | |
| for i in range(target): | |
| r = requests.post(url, data = data(), headers = user_agent) | |
| print(f'[+] {i+1}-> Result -> ', r.status_code) | |
| if __name__ == '__main__': | |
| # print(uni_name()) | |
| # target = int(sys.argv[1]) | |
| # main(target) | |
| try: | |
| target = int(sys.argv[1]) | |
| main(target) | |
| except IndexError: | |
| print('[*] Please provide your target number of sumissions as argument...') | |
| except KeyboardInterrupt: | |
| print('\n[*] Yes sir!\n[*] I\'m Exiting...') | |
| except Exception as e: | |
| print(e) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment