Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Coded by RHD
- # LICENSE : https://github.com/annai1991/Genmail/blob/master/LICENSE
- # Created : 19 October 2018
- # Last Modified by: RH Dyar Aryana Putra
- # Last Modified time: Tuesday/October/22/2018 09:13 AM
- ### Daftar warna ###
- m='\033[0;31m'
- c='\033[0;36m'
- k='\033[1;33m'
- o='\033[0;33m'
- u='\033[0;35m'
- h="\e[32m"
- p="\e[37m"
- n='\033[0m'
- Install(){
- apt-get install aptitude
- apt-get install gem
- aptitude install pwgen
- apt install lolcat
- }
- ###### Header ######
- Dialog(){
- printf "${u}Enter your name : ${n}"| lolcat -d 5
- read name
- echo -e "${m}Welcome ${h}$name, ${m}Happy nice day${n}"| lolcat -d 5
- sleep 2
- clear
- echo -e " ${m}WARNING!!!${n}"| lolcat -d 5
- echo -e "${o}I don't Accept any responsibility for any illegal usage${n}"| lolcat -d 5
- }
- Banner() {
- echo ""
- printf " ${u}____ __ __ ____ ${n}\n"| lolcat -d 5
- printf " ${u}/ __ \ / / / / / __ \ ${n}\n"| lolcat -d 5
- printf " ${u}/ /_/ / / /_/ / / / / /${n}\n"| lolcat -d 5
- printf " ${h}/ _, _/ / __ / / /_/ /${n}\n"| lolcat -d 5
- printf "${h}/_/ |_| /_/ /_/ /_____/ ${n}\n"| lolcat -d 5
- printf "${u}=============${c}[Generator Mail v1.1 (BETA)]${u}=============${n}\n"| lolcat -d 5
- printf "${u}===============${c}[Contact fb.com/annai23]${u}==============${n}\n"| lolcat -d 5
- }
- #### Call header ######
- ##Install
- clear
- Dialog
- Banner
- ####### Input nama/email/pass for generate######
- if [ $# -eq 0 ]; then
- echo -e $u"Masukan Jumlah email: "$n | lolcat -d 5
- read numacct
- else
- numacct=$1
- fi
- printf $h"First name: "$n | lolcat -d 5
- read fname
- printf $h"Last name: "$n | lolcat -d 5
- read lname
- printf $o"Mail name: "$n | lolcat -d 5
- read user
- printf $o"Random char: "$n | lolcat -d 5
- read choice
- printf $c"Domain name: "$n | lolcat -d 5
- read domain
- printf $m"Passowrd: "$n | lolcat -d 5
- read password
- echo -e $h"Please wait........." | lolcat -d 5
- echo -e "${h}creating ${o}$numacct ${h}accounts${n}" | lolcat -d 5
- echo "First Name [Required],Last Name [Required],Email Address [Required],Password [Required],Password Hash Function [UPLOAD ONLY],Org Unit Path [Required],New Primary Email [UPLOAD ONLY],Home Secondary Email,Work Secondary Email,Work Phone,Home Phone,Mobile Phone,Work Address,Home Address,Employee ID,Employee Type,Employee Title,Manager Email,Department,Cost Center,Building ID,Floor Name,Floor Section,Change Password at Next Sign-In" > result.csv
- for ((i=1; i<=$numacct; i++));
- do
- random=$(pwgen -c -n -s $choice 1)
- #! email="[email protected]"
- #! password=$(pwgen -c -n -s -y 8 1 -r "^\`/<>\"'|\[\]\&*_\@#%\.~(),;{}:=")
- printf "${o}[+][CREATED]=> ${n}"| lolcat -d 5
- printf "${p}$user$random@$domain${n}"| lolcat -d 5
- printf "${h}[SUCSES]${n}\n"| lolcat -d 5;
- echo "$fname,$lname,$user$random@$domain,$password,,/,,,,,,,,,,,,,,,,,,FALSE" >> result.csv
- done
- echo -e "${o}Selesai Bosqu! ${h}Silahkan cek file result.csv${n}"| lolcat -d 5
Advertisement
Add Comment
Please, Sign In to add comment