├── FBGen.py ├── LICENSE └── README.md /FBGen.py: -------------------------------------------------------------------------------- 1 | #Imports 2 | import uuid 3 | import time 4 | import os 5 | from selenium import webdriver 6 | driver = webdriver.Firefox(executable_path=r'C:\Python39\geckodriver.exe') 7 | from selenium.webdriver.support.ui import Select 8 | from selenium.webdriver.common.by import By 9 | from selenium.webdriver.common.keys import Keys 10 | 11 | #Input your username 12 | firstname = "firstname" 13 | lastname = "lastname" 14 | #Input what accept cookies is in your language, look up at https://facebook.com/reg/ 15 | acceptCookiesText = "Alle Cookies gestatten" 16 | 17 | rand = str(uuid.uuid4()) 18 | 19 | #Generate Email 20 | emailLength = 18 21 | email = rand[:emailLength] + '@fyii.de' 22 | 23 | #Generate Password 24 | passwdLength = 9 25 | password = rand[:passwdLength] 26 | 27 | #fileNameEmails = "./users.txt" 28 | 29 | #f = open(fileNameEmails, "w+") 30 | #f.write(email + " " + password + "\n") 31 | #f.close() 32 | 33 | #Get Browser 34 | browser = webdriver.Firefox() 35 | browser.get("https://facebook.com/reg/") 36 | 37 | #Accept Cookies 38 | time.sleep(2) 39 | browser.find_element(By.XPATH, "//button[text()='" + acceptCookiesText + "']").click() 40 | 41 | #Input Data 42 | firstname = browser.find_element(By.NAME, "firstname").send_keys(firstname) 43 | browser.find_element(By.NAME, "lastname").send_keys(lastname) 44 | browser.find_element(By.NAME, "reg_email__").send_keys(email) 45 | browser.find_element(By.NAME, "reg_email_confirmation__").send_keys(email) 46 | browser.find_element(By.NAME, "reg_passwd__").send_keys(password) 47 | 48 | #Set birthday 49 | selDate = Select(browser.find_element(By.ID, "day")) 50 | time.sleep(0.1) 51 | selDate.select_by_visible_text("21") 52 | 53 | #Set birthmonth 54 | selMonth = Select(browser.find_element(By.ID, "month")) 55 | time.sleep(0.1) 56 | selMonth.select_by_visible_text("Jun.") 57 | 58 | #Set birthyear 59 | selYear = Select(browser.find_element(By.ID, "year")) 60 | time.sleep(0.1) 61 | selYear.select_by_visible_text("1989") 62 | 63 | #select gender and create account 64 | browser.find_element(By.NAME, "sex").click() 65 | browser.find_element(By.NAME, "websubmit").click() -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 TheMrOverload 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # FacebookAccountGenerator 2 | FAB is a Facebook-Account generating script, written in python 3 | 4 | ## Installation 5 | Use the package manager [pip](https://pip.pypa.io/en/stable) to install selenium 6 | 7 | ```bash 8 | pip install selenium 9 | ``` 10 | 11 | ## Usage 12 | Input your userdata for example first- and lastname into the variables 13 | Please make sure to update the Email provider, since fyii.de is getting banned from using Facebook-Accounts 14 | 15 | ## Contributing 16 | Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. 17 | 18 | ## License 19 | [Mit] (https://choosealicense.com/licenses/mit) 20 | --------------------------------------------------------------------------------